bump 0.3.8 → 0.3.9
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 +1 -1
- data/spec/bump_spec.rb +9 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/bump.gemspec
CHANGED
data/lib/bump.rb
CHANGED
@@ -96,7 +96,7 @@ module Bump
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def self.version_from_lib_rb
|
99
|
-
file = find_version_file(
|
99
|
+
file = find_version_file("lib/**/*.rb")
|
100
100
|
return unless file && File.open(file).lines.grep(/^VERSION = (['"])#{VERSION_REGEX}['"]/i)
|
101
101
|
extract_version_from_file(file)
|
102
102
|
end
|
data/spec/bump_spec.rb
CHANGED
@@ -307,6 +307,15 @@ describe Bump do
|
|
307
307
|
bump("minor").should include("1.3.0")
|
308
308
|
read(gemspec).should include("version = '1.'+'2.3'")
|
309
309
|
end
|
310
|
+
|
311
|
+
context "that is nested" do
|
312
|
+
let(:version_file) { "lib/bar/baz/foo.rb" }
|
313
|
+
|
314
|
+
it "show current" do
|
315
|
+
bump("current").should include("1.2.3")
|
316
|
+
read(version_file).should include(' VERSION = "1.2.3"')
|
317
|
+
end
|
318
|
+
end
|
310
319
|
end
|
311
320
|
|
312
321
|
private
|
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.9
|
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:
|
12
|
+
date: 2013-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|