gem-release 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/gem_release/version.rb
CHANGED
@@ -35,10 +35,10 @@ class Gem::Commands::BumpCommand < Gem::Command
|
|
35
35
|
def execute
|
36
36
|
@new_version_number = nil
|
37
37
|
|
38
|
-
tasks = [:
|
38
|
+
tasks = [:commit, :push, :release, :tag]
|
39
39
|
|
40
40
|
# enforce option dependencies
|
41
|
-
options[:push] =
|
41
|
+
options[:push] = true if options[:tag]
|
42
42
|
options[:commit] = options[:commit] || options[:push] || options[:tag] || options[:release]
|
43
43
|
|
44
44
|
in_gemspec_dirs do
|
@@ -28,9 +28,6 @@ class Gem::Commands::TagCommand < Gem::Command
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def push
|
31
|
-
say "Pushing to the origin git repository" unless quiet?
|
32
|
-
return false unless system('git push origin')
|
33
|
-
|
34
31
|
say "Pushing --tags to the origin git repository" unless quiet?
|
35
32
|
system('git push --tags origin')
|
36
33
|
end
|