gem-release 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gem_release/helpers.rb +0 -1
- data/lib/gem_release/version.rb +1 -1
- data/lib/rubygems/commands/bump_command.rb +17 -10
- metadata +7 -9
data/lib/gem_release/helpers.rb
CHANGED
data/lib/gem_release/version.rb
CHANGED
@@ -29,21 +29,32 @@ class Gem::Commands::BumpCommand < Gem::Command
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def execute
|
32
|
+
@new_version_number = nil
|
33
|
+
|
34
|
+
# enforce option dependencies
|
35
|
+
options[:push] = options[:push] || options[:tag]
|
36
|
+
options[:commit] = options[:commit] || options[:push] || options[:release]
|
37
|
+
|
32
38
|
in_gemspec_dirs do
|
33
39
|
bump
|
34
40
|
end
|
35
41
|
|
36
|
-
@
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
42
|
+
if @new_version_number == nil
|
43
|
+
say "No version files could be found, so no actions were performed." unless quiet?
|
44
|
+
else
|
45
|
+
commit if options[:commit]
|
46
|
+
push if options[:push]
|
47
|
+
release if options[:release]
|
48
|
+
tag if options[:tag]
|
49
|
+
end
|
41
50
|
end
|
42
51
|
|
43
52
|
protected
|
44
53
|
|
45
54
|
def bump
|
55
|
+
version = VersionFile.new(:target => (@new_version_number || options[:version]))
|
46
56
|
if File.exist?(version.filename)
|
57
|
+
@new_version_number ||= version.new_number
|
47
58
|
say "Bumping #{gem_name} from #{version.old_number} to version #{version.new_number}" unless quiet?
|
48
59
|
version.bump!
|
49
60
|
`git add #{version.filename}` if options[:commit]
|
@@ -54,7 +65,7 @@ class Gem::Commands::BumpCommand < Gem::Command
|
|
54
65
|
|
55
66
|
def commit
|
56
67
|
say "Creating commit" unless quiet?
|
57
|
-
`git commit -m "Bump to #{
|
68
|
+
`git commit -m "Bump to #{@new_version_number}"`
|
58
69
|
end
|
59
70
|
|
60
71
|
def push
|
@@ -69,8 +80,4 @@ class Gem::Commands::BumpCommand < Gem::Command
|
|
69
80
|
def tag
|
70
81
|
TagCommand.new.invoke
|
71
82
|
end
|
72
|
-
|
73
|
-
def version
|
74
|
-
@version ||= VersionFile.new(:target => options[:version])
|
75
|
-
end
|
76
83
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-09-10 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: test_declarative
|
17
|
-
requirement: &
|
16
|
+
requirement: &70249055850780 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: 0.0.2
|
23
22
|
type: :development
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *70249055850780
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: mocha
|
28
|
-
requirement: &
|
27
|
+
requirement: &70249055850000 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
@@ -33,7 +32,7 @@ dependencies:
|
|
33
32
|
version: 0.9.8
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *70249055850000
|
37
36
|
description: Release your ruby gems with ease. (What a bold statement for such a tiny
|
38
37
|
plugin ...)
|
39
38
|
email: svenfuchs@artweb-design.de
|
@@ -64,7 +63,6 @@ files:
|
|
64
63
|
- lib/rubygems/commands/release_command.rb
|
65
64
|
- lib/rubygems/commands/tag_command.rb
|
66
65
|
- lib/rubygems_plugin.rb
|
67
|
-
has_rdoc: true
|
68
66
|
homepage: http://github.com/svenfuchs/gem-release
|
69
67
|
licenses: []
|
70
68
|
post_install_message:
|
@@ -85,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
83
|
version: 1.3.6
|
86
84
|
requirements: []
|
87
85
|
rubyforge_project: ! '[none]'
|
88
|
-
rubygems_version: 1.6
|
86
|
+
rubygems_version: 1.8.6
|
89
87
|
signing_key:
|
90
88
|
specification_version: 3
|
91
89
|
summary: Release your ruby gems with ease
|