berkshelf 6.1.0 → 6.1.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -7
- data/features/step_definitions/json_steps.rb +1 -1
- data/lib/berkshelf/berksfile.rb +1 -1
- data/lib/berkshelf/cli.rb +15 -17
- data/lib/berkshelf/config.rb +3 -3
- data/lib/berkshelf/dependency.rb +1 -1
- data/lib/berkshelf/source_uri.rb +2 -2
- data/lib/berkshelf/version.rb +1 -1
- data/spec/support/git.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e042c41f6e111456d8c709b6d32a321a6ed1932
|
4
|
+
data.tar.gz: 46a8cb9c386f424b175ffb865b8be0efd0bf8a8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbb46bb7460503678d2b272fb9b9be7d954dcdbd531d02c7856da72ab32a816861493458249937b248dcd684d7a5d210ac977f5b439a56b7d1a9a00cb18605e9
|
7
|
+
data.tar.gz: 222e26dd8a1e99687403824bd81e6320fbc3e6f5288385e6d1cdd995c26bdca3dffc0ccef7070fa191801e3e3d16a86534d4c4ac35cad06e7e20baaa482f7bbd
|
data/Gemfile.lock
CHANGED
@@ -20,7 +20,7 @@ GIT
|
|
20
20
|
PATH
|
21
21
|
remote: .
|
22
22
|
specs:
|
23
|
-
berkshelf (6.1.
|
23
|
+
berkshelf (6.1.1)
|
24
24
|
addressable (~> 2.3, >= 2.3.4)
|
25
25
|
berkshelf-api-client (>= 2.0.2, < 4.0)
|
26
26
|
buff-config (~> 2.0)
|
@@ -91,8 +91,8 @@ GEM
|
|
91
91
|
mixlib-log (~> 1.3)
|
92
92
|
rack (~> 2.0)
|
93
93
|
uuidtools (~> 2.1)
|
94
|
-
chefstyle (0.
|
95
|
-
rubocop (= 0.
|
94
|
+
chefstyle (0.6.0)
|
95
|
+
rubocop (= 0.49.1)
|
96
96
|
childprocess (0.5.9)
|
97
97
|
ffi (~> 1.0, >= 1.0.11)
|
98
98
|
cleanroom (1.0.0)
|
@@ -114,7 +114,7 @@ GEM
|
|
114
114
|
gherkin (~> 4.0)
|
115
115
|
cucumber-wire (0.0.1)
|
116
116
|
dep-selector-libgecode (1.3.1)
|
117
|
-
dep_selector (1.0.
|
117
|
+
dep_selector (1.0.5)
|
118
118
|
dep-selector-libgecode (~> 1.0)
|
119
119
|
ffi (~> 1.9)
|
120
120
|
descendants_tracker (0.0.4)
|
@@ -195,6 +195,7 @@ GEM
|
|
195
195
|
nio4r (2.1.0)
|
196
196
|
octokit (4.7.0)
|
197
197
|
sawyer (~> 0.8.0, >= 0.5.3)
|
198
|
+
parallel (1.11.2)
|
198
199
|
parser (2.4.0.0)
|
199
200
|
ast (~> 2.2)
|
200
201
|
powerpack (0.1.1)
|
@@ -247,7 +248,8 @@ GEM
|
|
247
248
|
diff-lcs (>= 1.2.0, < 2.0)
|
248
249
|
rspec-support (~> 3.6.0)
|
249
250
|
rspec-support (3.6.0)
|
250
|
-
rubocop (0.
|
251
|
+
rubocop (0.49.1)
|
252
|
+
parallel (~> 1.10)
|
251
253
|
parser (>= 2.3.3.1, < 3.0)
|
252
254
|
powerpack (~> 0.1)
|
253
255
|
rainbow (>= 1.99.1, < 3.0)
|
@@ -271,7 +273,7 @@ GEM
|
|
271
273
|
unf (0.1.4)
|
272
274
|
unf_ext
|
273
275
|
unf_ext (0.0.7.4)
|
274
|
-
unicode-display_width (1.
|
276
|
+
unicode-display_width (1.3.0)
|
275
277
|
uuidtools (2.1.5)
|
276
278
|
varia_model (0.6.0)
|
277
279
|
buff-extensions (~> 2.0)
|
@@ -311,4 +313,4 @@ DEPENDENCIES
|
|
311
313
|
yard (>= 0.8)
|
312
314
|
|
313
315
|
BUNDLED WITH
|
314
|
-
1.15.
|
316
|
+
1.15.1
|
data/lib/berkshelf/berksfile.rb
CHANGED
data/lib/berkshelf/cli.rb
CHANGED
@@ -18,22 +18,20 @@ module Berkshelf
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def execute!
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
@kernel.exit(47)
|
36
|
-
end
|
21
|
+
$stdin = @stdin
|
22
|
+
$stdout = @stdout
|
23
|
+
$stderr = @stderr
|
24
|
+
|
25
|
+
Berkshelf::Cli.start(@argv)
|
26
|
+
@kernel.exit(0)
|
27
|
+
rescue Berkshelf::BerkshelfError => e
|
28
|
+
Berkshelf.ui.error e
|
29
|
+
Berkshelf.ui.error "\t" + e.backtrace.join("\n\t") if ENV["BERKSHELF_DEBUG"]
|
30
|
+
@kernel.exit(e.status_code)
|
31
|
+
rescue Ridley::Errors::RidleyError => e
|
32
|
+
Berkshelf.ui.error "#{e.class} #{e}"
|
33
|
+
Berkshelf.ui.error "\t" + e.backtrace.join("\n\t") if ENV["BERKSHELF_DEBUG"]
|
34
|
+
@kernel.exit(47)
|
37
35
|
end
|
38
36
|
end
|
39
37
|
|
@@ -42,7 +40,7 @@ module Berkshelf
|
|
42
40
|
if given_args.length > 1 && !(given_args & Thor::HELP_MAPPINGS).empty?
|
43
41
|
command = given_args.first
|
44
42
|
|
45
|
-
if
|
43
|
+
if subcommands.include?(command)
|
46
44
|
super(meth, [command, "help"].compact, nil, config)
|
47
45
|
else
|
48
46
|
super(meth, ["help", command].compact, nil, config)
|
data/lib/berkshelf/config.rb
CHANGED
@@ -55,7 +55,7 @@ module Berkshelf
|
|
55
55
|
# @return [Config]
|
56
56
|
def reload
|
57
57
|
@instance = nil
|
58
|
-
|
58
|
+
instance
|
59
59
|
end
|
60
60
|
|
61
61
|
# force proper X509 types from any configuration strings
|
@@ -76,12 +76,12 @@ module Berkshelf
|
|
76
76
|
def initialize(path = self.class.path, options = {})
|
77
77
|
super(path, options).tap do
|
78
78
|
# Deprecation
|
79
|
-
if !
|
79
|
+
if !vagrant.omnibus.enabled.nil?
|
80
80
|
Berkshelf.ui.warn "`vagrant.omnibus.enabled' is deprecated and " \
|
81
81
|
"will be removed in a future release. Please remove the " \
|
82
82
|
"`enabled' attribute from your Berkshelf config."
|
83
83
|
end
|
84
|
-
if !
|
84
|
+
if !vagrant.vm.box_url.nil?
|
85
85
|
Berkshelf.ui.warn "`vagrant.vm.box_url' is deprecated and " \
|
86
86
|
"will be removed in a future release. Please remove the " \
|
87
87
|
"`box_url' attribute from your Berkshelf config."
|
data/lib/berkshelf/dependency.rb
CHANGED
data/lib/berkshelf/source_uri.rb
CHANGED
@@ -28,8 +28,8 @@ module Berkshelf
|
|
28
28
|
def validate
|
29
29
|
super
|
30
30
|
|
31
|
-
unless VALID_SCHEMES.include?(
|
32
|
-
raise InvalidSourceURI.new(self, "invalid URI scheme '#{
|
31
|
+
unless VALID_SCHEMES.include?(scheme)
|
32
|
+
raise InvalidSourceURI.new(self, "invalid URI scheme '#{scheme}'. Valid schemes: #{VALID_SCHEMES}")
|
33
33
|
end
|
34
34
|
rescue Addressable::URI::InvalidURIError => ex
|
35
35
|
raise InvalidSourceURI.new(self, ex)
|
data/lib/berkshelf/version.rb
CHANGED
data/spec/support/git.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: berkshelf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-
|
15
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: addressable
|