fedux_org-stdlib 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ namespace :version do
|
|
9
9
|
|
10
10
|
new_version = ENV['VERSION'] || ENV['version']
|
11
11
|
|
12
|
-
raise Exception, "You need to define a version via \"VERSION=<version>\" or \"version=<version>\"."
|
12
|
+
raise Exception, "You need to define a version via \"VERSION=<version>\" or \"version=<version>\"." unless new_version
|
13
13
|
|
14
14
|
raw_module_names = File.open(version_file, "r").readlines.grep(/module/)
|
15
15
|
module_names = raw_module_names.collect { |n| n.chomp.match(/module\s+(\S+)/) {$1} }
|