bump 0.3.9 → 0.3.10
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 +2 -2
- data/spec/bump_spec.rb +3 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/bump.gemspec
CHANGED
data/lib/bump.rb
CHANGED
@@ -96,8 +96,8 @@ module Bump
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def self.version_from_lib_rb
|
99
|
-
|
100
|
-
return unless file
|
99
|
+
files = Dir.glob("lib/**/*.rb")
|
100
|
+
return unless file = files.detect { |file| File.readlines(file).grep(/^VERSION = (['"])#{VERSION_REGEX}['"]/i) }
|
101
101
|
extract_version_from_file(file)
|
102
102
|
end
|
103
103
|
|
data/spec/bump_spec.rb
CHANGED
@@ -280,6 +280,8 @@ describe Bump do
|
|
280
280
|
|
281
281
|
before do
|
282
282
|
write_version_file
|
283
|
+
write("lib/random_other_file.rb", "foo")
|
284
|
+
write("lib/random/other/file.rb", "foo")
|
283
285
|
end
|
284
286
|
|
285
287
|
it "show current" do
|
@@ -339,6 +341,6 @@ describe Bump do
|
|
339
341
|
module Foo
|
340
342
|
VERSION = #{version}
|
341
343
|
end
|
342
|
-
|
344
|
+
RUBY
|
343
345
|
end
|
344
346
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|