gem-release 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module GemRelease
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
@@ -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, :release, :push, :tag]
38
+ tasks = [:commit, :push, :release, :tag]
39
39
 
40
40
  # enforce option dependencies
41
41
  options[:push] = true if options[:tag]
@@ -96,6 +96,7 @@ class Gem::Commands::BumpCommand < Gem::Command
96
96
  cmd = TagCommand.new
97
97
  cmd.options[:quiet] = options[:quiet]
98
98
  cmd.options[:quiet_success] = true
99
+ cmd.options[:push_tags_only] = true
99
100
  cmd.execute
100
101
  true
101
102
  end
@@ -30,6 +30,11 @@ class Gem::Commands::TagCommand < Gem::Command
30
30
  end
31
31
 
32
32
  def push
33
+ unless options[:push_tags_only]
34
+ say "Pushing to the origin git repository" unless quiet?
35
+ return false unless system('git push origin')
36
+ end
37
+
33
38
  say "Pushing --tags to the origin git repository" unless quiet?
34
39
  system('git push --tags origin')
35
40
  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.5.2
4
+ version: 0.5.3
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-03-14 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test_declarative