bumpy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/bumpy +2 -4
- data/lib/bumpy/version.rb +1 -1
- metadata +31 -53
data/bin/bumpy
CHANGED
@@ -17,16 +17,14 @@ EOS
|
|
17
17
|
opt :no_git, "Don't automatically create git commit"
|
18
18
|
end
|
19
19
|
|
20
|
-
EXPR = %r{VERSION = ['"](
|
20
|
+
EXPR = %r{VERSION = ['"]((.*)(\d+))['"]}
|
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
|
-
|
28
|
-
parts[-1] = parts[-1].to_i + 1
|
29
|
-
parts.join '.'
|
27
|
+
"#{$2}#{$3.to_i + 1}"
|
30
28
|
end
|
31
29
|
|
32
30
|
puts "Bumping version number found in #{name} to #{opts[:new_version]}"
|
data/lib/bumpy/version.rb
CHANGED
metadata
CHANGED
@@ -1,47 +1,35 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bumpy
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 2
|
10
|
-
version: 0.1.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Hendrik Mans
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-05-31 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: trollop
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70314206406960 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70314206406960
|
35
25
|
description: Bumpy bumps your gem's version number.
|
36
|
-
email:
|
26
|
+
email:
|
37
27
|
- hendrik@mans.de
|
38
|
-
executables:
|
28
|
+
executables:
|
39
29
|
- bumpy
|
40
30
|
extensions: []
|
41
|
-
|
42
31
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
files:
|
32
|
+
files:
|
45
33
|
- .gitignore
|
46
34
|
- Gemfile
|
47
35
|
- LICENSE
|
@@ -51,39 +39,29 @@ files:
|
|
51
39
|
- bumpy.gemspec
|
52
40
|
- lib/bumpy.rb
|
53
41
|
- lib/bumpy/version.rb
|
54
|
-
|
55
|
-
homepage: ""
|
42
|
+
homepage: ''
|
56
43
|
licenses: []
|
57
|
-
|
58
44
|
post_install_message:
|
59
45
|
rdoc_options: []
|
60
|
-
|
61
|
-
require_paths:
|
46
|
+
require_paths:
|
62
47
|
- lib
|
63
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
49
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
- 0
|
71
|
-
version: "0"
|
72
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
55
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
version: "0"
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
81
60
|
requirements: []
|
82
|
-
|
83
61
|
rubyforge_project:
|
84
|
-
rubygems_version: 1.
|
62
|
+
rubygems_version: 1.8.11
|
85
63
|
signing_key:
|
86
64
|
specification_version: 3
|
87
65
|
summary: Bumpy bumps your gem's version number.
|
88
66
|
test_files: []
|
89
|
-
|
67
|
+
has_rdoc:
|