bump 0.3.11 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/bump.gemspec +1 -1
- data/lib/bump.rb +3 -3
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/bump.gemspec
CHANGED
data/lib/bump.rb
CHANGED
@@ -97,9 +97,9 @@ module Bump
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def self.version_from_lib_rb
|
100
|
-
|
101
|
-
return unless file
|
102
|
-
|
100
|
+
file = find_version_file("lib/**/*.rb")
|
101
|
+
return unless file && File.read(file) =~ /^\s+VERSION = ['"](#{VERSION_REGEX})['"]/i
|
102
|
+
[$1, file]
|
103
103
|
end
|
104
104
|
|
105
105
|
def self.version_from_chef
|