gem-release 0.5.0 → 0.5.1
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.
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
|