bump 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump (0.3.8)
4
+ bump (0.3.9)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/bump.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new "bump" do |s|
2
- s.version = "0.3.8"
2
+ s.version = "0.3.9"
3
3
  s.author = "Gregory Marcilhacy"
4
4
  s.email = "g.marcilhacy@gmail.com"
5
5
  s.homepage = "https://github.com/gregorym/bump"
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('lib/*.rb')
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.8
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: 2012-12-16 00:00:00.000000000 Z
12
+ date: 2013-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake