bumpy 0.1.3 → 0.1.4

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.
Files changed (3) hide show
  1. data/bin/bumpy +2 -2
  2. data/lib/bumpy/version.rb +1 -1
  3. metadata +3 -3
data/bin/bumpy CHANGED
@@ -17,14 +17,14 @@ EOS
17
17
  opt :no_git, "Don't automatically create git commit"
18
18
  end
19
19
 
20
- EXPR = %r{VERSION = ['"]((.*)(\d+))['"]}
20
+ EXPR = %r{VERSION = ['"](.+)['"]}
21
21
  opts[:new_version] = ARGV.shift
22
22
 
23
23
  Dir['./lib/**/version.rb'].each do |name|
24
24
  contents = File.read(name)
25
25
  if contents =~ EXPR
26
26
  opts[:new_version] ||= begin
27
- "#{$2}#{$3.to_i + 1}"
27
+ $1.next
28
28
  end
29
29
 
30
30
  puts "Bumping version number found in #{name} to #{opts[:new_version]}"
@@ -1,3 +1,3 @@
1
1
  module Bumpy
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
16
- requirement: &70314206406960 !ruby/object:Gem::Requirement
16
+ requirement: &70280387192280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70314206406960
24
+ version_requirements: *70280387192280
25
25
  description: Bumpy bumps your gem's version number.
26
26
  email:
27
27
  - hendrik@mans.de