gem-release 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -76,5 +76,11 @@ module GemRelease
76
76
  abort
77
77
  end
78
78
  end
79
+
80
+ def success
81
+ unless quiet? || options[:quiet_success]
82
+ say "All is good, thanks my friend.\n"
83
+ end
84
+ end
79
85
  end
80
86
  end
@@ -1,3 +1,3 @@
1
1
  module GemRelease
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
@@ -35,10 +35,12 @@ class Gem::Commands::BootstrapCommand < Gem::Command
35
35
  init_git if options[:github] || options[:args] # safe to 'git init' in new dir
36
36
  create_repo if options[:github]
37
37
  end
38
+
39
+ success
38
40
  end
39
41
 
40
42
  def write_gemspec
41
- GemspecCommand.new(:quiet => quiet?, :strategy => options[:strategy]).execute
43
+ GemspecCommand.new(:quiet => quiet?, :strategy => options[:strategy], :quiet_success => true).execute
42
44
  end
43
45
 
44
46
  def write_scaffold
@@ -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, :release, :tag]
38
+ tasks = [:commit, :release, :push, :tag]
39
39
 
40
40
  # enforce option dependencies
41
41
  options[:push] = true if options[:tag]
@@ -51,6 +51,8 @@ class Gem::Commands::BumpCommand < Gem::Command
51
51
  tasks.each do |task|
52
52
  run_cmd(task) if options[task]
53
53
  end
54
+
55
+ success
54
56
  end
55
57
  end
56
58
 
@@ -85,6 +87,7 @@ class Gem::Commands::BumpCommand < Gem::Command
85
87
  cmd.options[option] = options[option]
86
88
  end
87
89
  cmd.options[:quiet] = options[:quiet]
90
+ cmd.options[:quiet_success] = true
88
91
  cmd.execute
89
92
  true
90
93
  end
@@ -92,6 +95,7 @@ class Gem::Commands::BumpCommand < Gem::Command
92
95
  def tag
93
96
  cmd = TagCommand.new
94
97
  cmd.options[:quiet] = options[:quiet]
98
+ cmd.options[:quiet_success] = true
95
99
  cmd.execute
96
100
  true
97
101
  end
@@ -23,6 +23,8 @@ class Gem::Commands::GemspecCommand < Gem::Command
23
23
  else
24
24
  say "Creating #{gemspec.filename}" unless quiet?
25
25
  gemspec.write
26
+
27
+ success
26
28
  end
27
29
  end
28
30
  end
@@ -37,7 +37,7 @@ class Gem::Commands::ReleaseCommand < Gem::Command
37
37
  end
38
38
  end
39
39
 
40
- say "All is good, thanks my friend.\n"
40
+ success
41
41
  end
42
42
 
43
43
  protected
@@ -64,7 +64,7 @@ class Gem::Commands::ReleaseCommand < Gem::Command
64
64
  end
65
65
 
66
66
  def tag
67
- TagCommand.new(:quiet => quiet?).invoke
67
+ TagCommand.new(:quiet => quiet?, :quiet_success => true).invoke
68
68
  true
69
69
  end
70
70
  end
@@ -18,6 +18,8 @@ class Gem::Commands::TagCommand < Gem::Command
18
18
  [:tag, :push].each do |task|
19
19
  run_cmd(task)
20
20
  end
21
+
22
+ success
21
23
  end
22
24
 
23
25
  protected
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.1
4
+ version: 0.5.2
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-13 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test_declarative