boxen 0.3.2 → 0.3.3

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.
Files changed (3) hide show
  1. data/boxen.gemspec +1 -1
  2. data/lib/boxen/cli.rb +7 -6
  3. metadata +3 -3
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "boxen"
5
- gem.version = "0.3.2"
5
+ gem.version = "0.3.3"
6
6
  gem.authors = ["John Barnette", "Will Farrington"]
7
7
  gem.email = ["jbarnette@github.com", "wfarr@github.com"]
8
8
  gem.description = "Manage Mac development boxes with love (and Puppet)."
@@ -55,7 +55,7 @@ module Boxen
55
55
  def report(result)
56
56
  return result unless issues?
57
57
 
58
- if successful_exit_code? result
58
+ if self.class.successful_exit_code? result
59
59
  reporter.close_failures
60
60
  else
61
61
  warn "Sorry! Creating an issue on #{config.reponame}."
@@ -104,15 +104,16 @@ module Boxen
104
104
  return status
105
105
  end
106
106
 
107
+ # Puppet's detailed exit codes reserves 2 for a successful run with changes
108
+
109
+ def self.successful_exit_code?(code)
110
+ [0, 2].member? code
111
+ end
112
+
107
113
  # Should the result of this run have any effect on GitHub issues?
108
114
 
109
115
  def issues?
110
116
  !config.stealth? && !config.pretend? && checkout.master?
111
117
  end
112
-
113
- private
114
- def successful_exit_code?(code)
115
- [0, 2].member? code
116
- end
117
118
  end
118
119
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Barnette