bump 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump (0.3.9)
4
+ bump (0.3.10)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new "bump" do |s|
2
- s.version = "0.3.9"
2
+ s.version = "0.3.10"
3
3
  s.author = "Gregory Marcilhacy"
4
4
  s.email = "g.marcilhacy@gmail.com"
5
5
  s.homepage = "https://github.com/gregorym/bump"
@@ -96,8 +96,8 @@ module Bump
96
96
  end
97
97
 
98
98
  def self.version_from_lib_rb
99
- file = find_version_file("lib/**/*.rb")
100
- return unless file && File.open(file).lines.grep(/^VERSION = (['"])#{VERSION_REGEX}['"]/i)
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
 
@@ -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
- RUBY
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.9
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-01-06 00:00:00.000000000 Z
12
+ date: 2013-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake