boxen 3.1.3 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80904e32c398267479a6497150c9d4f0dc9f02b8dd41a7609f01bad346c2f1c3
4
- data.tar.gz: 3e5a5581898ba7157a6e12593bf5a4f6f2e4c30301deb4eb2401116d561adedd
3
+ metadata.gz: c05d3a993c10198fe67c871e6bde6d7fce5c9d016a07e39c9b381b3c6a9aef40
4
+ data.tar.gz: 7739dcbf6cbf52fbda1e3bfab12f44245c6c8056ced491beecf1b8b11efe886e
5
5
  SHA512:
6
- metadata.gz: 32dd173b6e4115d391e86c8dc79100b2ffbed78c94674a8c917a2aa67ea17371d05a22b801a4e06178752e5ae03a7376491d4aa274d48cda420da41886b5b9e4
7
- data.tar.gz: bcb0a0ac1ba8773433bc8e09c1dfab7b768048511787f02b1490fdc559cdfcdc756c0696bd0897900c615d5373fcfb4ff6daf7505863fab94fb386c58a97e794
6
+ metadata.gz: 26fa5b4865dda2d229db26795d45feb1aa284b7dc616d4a493fbe251d1fa572eeb5b1473929d5727383aefa5417accbbd9e39b3edc4610302d1429db81a786b3
7
+ data.tar.gz: 041323ee51be109a9b76a84ac9a6e644d847c5de5f600c3dfacce346ba7762c31c4c23f255a16f808a621c9e1b6efacc10940f0a27022699cec393910dc87cdb
@@ -1,8 +1,6 @@
1
1
  ---
2
- before_install: gem update --system 2.1.11
2
+ before_install: gem update --system 2.5.2
3
3
  script: "./script/tests"
4
4
  gemfile: "this/does/not/exist"
5
5
  rvm:
6
- - 2.0
7
- - 2.1
8
- - 2.2
6
+ - 2.3
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "boxen"
5
- gem.version = "3.1.3"
5
+ gem.version = "4.0.0"
6
6
  # Thanks go out to the previous maintainers John Barnette, Will
7
7
  # Farrington, David Goodlad and Mike McQuaid for getting this project
8
8
  # to where it is today.
@@ -18,12 +18,12 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_dependency "ansi", "~> 1.4"
21
- gem.add_dependency "hiera", "~> 1.0"
21
+ gem.add_dependency "hiera", "~> 3.0"
22
22
  gem.add_dependency "highline", "~> 1.6.0"
23
23
  gem.add_dependency "json_pure", [">= 1.7.7", "< 2.0"]
24
24
  gem.add_dependency "librarian-puppet", "~> 2.2"
25
25
  gem.add_dependency "octokit", "~> 2.7", ">= 2.7.1"
26
- gem.add_dependency "puppet", "~> 3.7"
26
+ gem.add_dependency "puppet", "~> 4.0"
27
27
 
28
28
  gem.add_development_dependency "minitest", "4.4.0" # pinned for mocha
29
29
  gem.add_development_dependency "mocha", "~> 0.13"
@@ -1,18 +1,31 @@
1
1
  require "boxen/preflight"
2
2
 
3
3
  class Boxen::Preflight::OS < Boxen::Preflight
4
- SUPPORTED_RELEASES = %w(10.8 10.9 10.10 10.11 10.12)
4
+ SUPPORTED_RELEASES = %w(10.8 10.9 10.10 10.11 10.12 10.13)
5
5
 
6
6
  def ok?
7
7
  osx? && (skip_os_check? || supported_release?)
8
8
  end
9
9
 
10
10
  def run
11
- abort "You must be running one of the following OS X versions: #{SUPPORTED_RELEASES.join(' ')}."
11
+ abort <<~HEREDOC
12
+ You must be running one of the following Mac OS versions:
13
+
14
+ #{pretty_list_output(SUPPORTED_RELEASES)}
15
+
16
+ While not recommended, it is possible to ignore this warning and
17
+ continue anyway. Just prefix your Boxen command with
18
+ `SKIP_OS_CHECK=1`.
19
+ HEREDOC
12
20
  end
13
21
 
14
22
  private
15
23
 
24
+ def pretty_list_output(values)
25
+ output = values.map { |value| "- #{value}" }
26
+ output.join("\n")
27
+ end
28
+
16
29
  def osx?
17
30
  `uname -s`.chomp == "Darwin"
18
31
  end
@@ -26,7 +39,7 @@ class Boxen::Preflight::OS < Boxen::Preflight
26
39
  def current_release
27
40
  @current_release ||= `sw_vers -productVersion`
28
41
  end
29
-
42
+
30
43
  def skip_os_check?
31
44
  ENV['SKIP_OS_CHECK'] == '1'
32
45
  end
@@ -35,4 +35,4 @@ git fetch -t origin
35
35
  # Tag it and bag it.
36
36
 
37
37
  gem push boxen-*.gem && git tag "$tag" &&
38
- git push -f origin master && git push -f origin "$tag"
38
+ git push origin master && git push origin "$tag"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxen
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Bednarz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-17 00:00:00.000000000 Z
11
+ date: 2018-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ansi
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: highline
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - ~>
114
114
  - !ruby/object:Gem::Version
115
- version: '3.7'
115
+ version: '4.0'
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ~>
121
121
  - !ruby/object:Gem::Version
122
- version: '3.7'
122
+ version: '4.0'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: minitest
125
125
  requirement: !ruby/object:Gem::Requirement