chef-config 12.9.41 → 12.10.24

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: ec6eb01356a298be1930438e258733551463f2f2
4
- data.tar.gz: 051e9db479c93884bd82c4b5de454ccbdaca28d2
3
+ metadata.gz: b5b64a0c2aac9ccfc6649cd21d890a0775b1d6dd
4
+ data.tar.gz: 800cb887bb4a949bf25daf837411088df9a8a541
5
5
  SHA512:
6
- metadata.gz: affd09f8fbdff54c0a88d2155a334fba74aa516322d66ff79ad6586755c6889a3f1162efca2e8dcd7b0ae765ab5a95b5c83df932734225ea28d7fdc3faf42b36
7
- data.tar.gz: 4265545c424bdbe5731f5b197a1e43e9068a2a3c0c22f92af7b7a28ce1040181dce6092061daf2c9ce2a19ab861e972944a541798cc7c365534521225ebe3c59
6
+ metadata.gz: dbcd7333d54a04a30926516fce8aa52f1f07b025bfc5d151c715dc973aa8cf452ac2b0ac80c43e68219fd46c4c5ef90ed92c9aef946f9e0f76315b3c8ea456a9
7
+ data.tar.gz: 1d53ca040924063afd9528b6f8516f336d8d3df27eac0538167a88a6cc48af5c57b44f9dbde1fb0c34a1ae206cd6aeec8e57ae322affb755284347a5a2d91612
@@ -960,7 +960,11 @@ module ChefConfig
960
960
  require "digest"
961
961
  require "digest/sha1"
962
962
  require "digest/md5"
963
+ # Remove pre-existing constants if they do exist to reduce the
964
+ # amount of log spam and warnings.
965
+ Digest.send(:remove_const, "SHA1") if Digest.const_defined?("SHA1")
963
966
  Digest.const_set("SHA1", OpenSSL::Digest::SHA1)
967
+ OpenSSL::Digest.send(:remove_const, "MD5") if OpenSSL::Digest.const_defined?("MD5")
964
968
  OpenSSL::Digest.const_set("MD5", Digest::MD5)
965
969
  end
966
970
  end
@@ -211,18 +211,20 @@ end
211
211
 
212
212
  task :version => "version:update"
213
213
 
214
- Dir[File.expand_path("*gemspec", root_path)].reverse_each do |gemspec_path|
214
+ gemspec_platform_to_install = ""
215
+ Dir[File.expand_path("*.gemspec", root_path)].reverse_each do |gemspec_path|
215
216
  gemspec = eval(IO.read(gemspec_path))
216
217
  Gem::PackageTask.new(gemspec) do |task|
217
218
  task.package_dir = full_package_dir
218
219
  end
220
+ gemspec_platform_to_install = "-#{gemspec.platform}" if gemspec.platform != Gem::Platform::RUBY && Gem::Platform.match(gemspec.platform)
219
221
  end
220
222
 
221
223
  desc "Build and install a #{module_path} gem"
222
224
  task :install => [:package] do
223
225
  with_clean_env do
224
226
  full_module_path = File.join(full_package_dir, module_path)
225
- sh %{gem install #{full_module_path}-#{version}.gem --no-rdoc --no-ri}
227
+ sh %{gem install #{full_module_path}-#{version}#{gemspec_platform_to_install}.gem --no-rdoc --no-ri}
226
228
  end
227
229
  end
228
230
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  module ChefConfig
23
23
  CHEFCONFIG_ROOT = File.expand_path("../..", __FILE__)
24
- VERSION = "12.9.41"
24
+ VERSION = "12.10.24"
25
25
  end
26
26
 
27
27
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.9.41
4
+ version: 12.10.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout