+ /**
+ * Determines if the project is a development version or has an explicit release.
+ *
+ * @return boolean
+ * TRUE if the project is a dev release; FALSE otherwise.
+ */
+ function isDevVersion() {
+ // Grab the version string.
+ $version = $this->existing_version;
+
+ // Assume we have a dev version if the string ends with "-dev".
+ return (substr_compare($version, '-dev', -4, 4) === 0) ? TRUE : FALSE;
+ }
+