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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb46a7f69b8ffe285a82a5d5c2f3c50a8c0675fe
4
- data.tar.gz: cdffca6593306424fcc6b610ec9461432aecfd30
3
+ metadata.gz: 6e042c41f6e111456d8c709b6d32a321a6ed1932
4
+ data.tar.gz: 46a8cb9c386f424b175ffb865b8be0efd0bf8a8b
5
5
  SHA512:
6
- metadata.gz: 861440210543c39944ddb44aaab1aa47ca3fa3cdf4de430d66b5e15945ecc08aef4a151b08a444bf1ed94752f6383b4cf8e7775b1110d2d18bef327a78f1c540
7
- data.tar.gz: 96d9786d0c9c023954200ee7a3cc4b13febb96bf261f270bde5e4801e90af1befcd853cedc3d2e58543f45c982b13cb3610dff0a7bda8593e1a46f6a8cded031
6
+ metadata.gz: dbb46bb7460503678d2b272fb9b9be7d954dcdbd531d02c7856da72ab32a816861493458249937b248dcd684d7a5d210ac977f5b439a56b7d1a9a00cb18605e9
7
+ data.tar.gz: 222e26dd8a1e99687403824bd81e6320fbc3e6f5288385e6d1cdd995c26bdca3dffc0ccef7070fa191801e3e3d16a86534d4c4ac35cad06e7e20baaa482f7bbd
@@ -20,7 +20,7 @@ GIT
20
20
  PATH
21
21
  remote: .
22
22
  specs:
23
- berkshelf (6.1.0)
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.5.0)
95
- rubocop (= 0.47.1)
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.4)
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.47.1)
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.2.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.0
316
+ 1.15.1
@@ -1,6 +1,6 @@
1
1
  class Hash
2
2
  def sort_by_key(&block)
3
- self.keys.sort(&block).reduce({}) do |seed, key|
3
+ keys.sort(&block).reduce({}) do |seed, key|
4
4
  seed[key] = self[key]
5
5
  if seed[key].is_a?(Hash)
6
6
  seed[key] = seed[key].sort_by_key(&block)
@@ -448,7 +448,7 @@ module Berkshelf
448
448
  end
449
449
 
450
450
  # NOTE: We intentionally do NOT pass options to the installer
451
- self.install
451
+ install
452
452
  end
453
453
 
454
454
  # Retrieve information about a given cookbook that is installed by this Berksfile.
@@ -18,22 +18,20 @@ module Berkshelf
18
18
  end
19
19
 
20
20
  def execute!
21
- begin
22
- $stdin = @stdin
23
- $stdout = @stdout
24
- $stderr = @stderr
25
-
26
- Berkshelf::Cli.start(@argv)
27
- @kernel.exit(0)
28
- rescue Berkshelf::BerkshelfError => e
29
- Berkshelf.ui.error e
30
- Berkshelf.ui.error "\t" + e.backtrace.join("\n\t") if ENV["BERKSHELF_DEBUG"]
31
- @kernel.exit(e.status_code)
32
- rescue Ridley::Errors::RidleyError => e
33
- Berkshelf.ui.error "#{e.class} #{e}"
34
- Berkshelf.ui.error "\t" + e.backtrace.join("\n\t") if ENV["BERKSHELF_DEBUG"]
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 self.subcommands.include?(command)
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)
@@ -55,7 +55,7 @@ module Berkshelf
55
55
  # @return [Config]
56
56
  def reload
57
57
  @instance = nil
58
- self.instance
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 !self.vagrant.omnibus.enabled.nil?
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 !self.vagrant.vm.box_url.nil?
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."
@@ -168,7 +168,7 @@ module Berkshelf
168
168
  end
169
169
 
170
170
  def <=>(other)
171
- [self.name, self.version_constraint] <=> [other.name, other.version_constraint]
171
+ [name, version_constraint] <=> [other.name, other.version_constraint]
172
172
  end
173
173
 
174
174
  def to_s
@@ -28,8 +28,8 @@ module Berkshelf
28
28
  def validate
29
29
  super
30
30
 
31
- unless VALID_SCHEMES.include?(self.scheme)
32
- raise InvalidSourceURI.new(self, "invalid URI scheme '#{self.scheme}'. Valid schemes: #{VALID_SCHEMES}")
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)
@@ -1,3 +1,3 @@
1
1
  module Berkshelf
2
- VERSION = "6.1.0"
2
+ VERSION = "6.1.1"
3
3
  end
@@ -122,7 +122,7 @@ module Berkshelf
122
122
  # @return [Pathname]
123
123
  def ensure_and_return(path)
124
124
  FileUtils.mkdir(path) unless File.exist?(path)
125
- return Pathname.new(path).expand_path
125
+ Pathname.new(path).expand_path
126
126
  end
127
127
  end
128
128
  end
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.0
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-05-31 00:00:00.000000000 Z
15
+ date: 2017-06-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: addressable