gem-release 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/gem_release/helpers.rb
CHANGED
data/lib/gem_release/version.rb
CHANGED
@@ -35,7 +35,7 @@ class Gem::Commands::BumpCommand < Gem::Command
|
|
35
35
|
def execute
|
36
36
|
@new_version_number = nil
|
37
37
|
|
38
|
-
tasks = [:commit, :push, :tag
|
38
|
+
tasks = [:release, :commit, :push, :tag]
|
39
39
|
|
40
40
|
# enforce option dependencies
|
41
41
|
options[:push] = false if options[:tag] # push is performed as part of tag
|
@@ -86,11 +86,13 @@ class Gem::Commands::BumpCommand < Gem::Command
|
|
86
86
|
end
|
87
87
|
cmd.options[:quiet] = options[:quiet]
|
88
88
|
cmd.execute
|
89
|
+
true
|
89
90
|
end
|
90
91
|
|
91
92
|
def tag
|
92
93
|
cmd = TagCommand.new
|
93
94
|
cmd.options[:quiet] = options[:quiet]
|
94
95
|
cmd.execute
|
96
|
+
true
|
95
97
|
end
|
96
98
|
end
|
@@ -28,8 +28,8 @@ class Gem::Commands::ReleaseCommand < Gem::Command
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def execute
|
31
|
-
tasks = [:build, :push, :
|
32
|
-
tasks.
|
31
|
+
tasks = [:build, :push, :cleanup]
|
32
|
+
tasks.push(:tag) if options[:tag]
|
33
33
|
|
34
34
|
in_gemspec_dirs do
|
35
35
|
tasks.each do |task|
|
@@ -58,12 +58,13 @@ class Gem::Commands::ReleaseCommand < Gem::Command
|
|
58
58
|
true
|
59
59
|
end
|
60
60
|
|
61
|
-
def
|
61
|
+
def cleanup
|
62
62
|
say "Deleting left over gem file #{gem_filename}" unless quiet?
|
63
|
-
system(
|
63
|
+
system("rm #{gem_filename}")
|
64
64
|
end
|
65
65
|
|
66
66
|
def tag
|
67
67
|
TagCommand.new(:quiet => quiet?).invoke
|
68
|
+
true
|
68
69
|
end
|
69
70
|
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.
|
4
|
+
version: 0.5.0
|
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-
|
12
|
+
date: 2013-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test_declarative
|