bump 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Gemfile.lock +1 -1
  2. data/bump.gemspec +1 -1
  3. data/lib/bump.rb +3 -3
  4. metadata +1 -1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump (0.3.11)
4
+ bump (0.3.12)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/bump.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new "bump" do |s|
2
- s.version = "0.3.11"
2
+ s.version = "0.3.12"
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
@@ -97,9 +97,9 @@ module Bump
97
97
  end
98
98
 
99
99
  def self.version_from_lib_rb
100
- files = Dir.glob("lib/**/*.rb")
101
- return unless file = files.detect { |file| File.readlines(file).grep(/^VERSION = (['"])#{VERSION_REGEX}['"]/i) }
102
- extract_version_from_file(file)
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
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.11
4
+ version: 0.3.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: