gem-release 0.4.2 → 0.5.0

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.
@@ -71,7 +71,10 @@ module GemRelease
71
71
  end
72
72
 
73
73
  def run_cmd(command)
74
- abort unless send(command)
74
+ unless send(command)
75
+ say "The task `#{command}` could not be completed. Subsequent tasks will not be attempted."
76
+ abort
77
+ end
75
78
  end
76
79
  end
77
80
  end
@@ -1,3 +1,3 @@
1
1
  module GemRelease
2
- VERSION = '0.4.2'
2
+ VERSION = '0.5.0'
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, :push, :tag, :release]
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, :remove]
32
- tasks.unshift(:tag) if options[:tag]
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 remove
61
+ def cleanup
62
62
  say "Deleting left over gem file #{gem_filename}" unless quiet?
63
- system('rm #{gem_filename}')
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.2
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-02-28 00:00:00.000000000 Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test_declarative