mixlib-install 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: 8fa0731a332dd953d20aa43e53480e804409aa0f
4
- data.tar.gz: 6df34bf9b664cda250fd3c312980630a4e95c386
3
+ metadata.gz: e04117caacc1d361b5c1839b5545065afa651673
4
+ data.tar.gz: 87dc3dcf2c2ce8af0687de30090a8fb179f419cd
5
5
  SHA512:
6
- metadata.gz: 5f6455a5e05a9cd10cdf54600bc8fd2e7b95599cb64f4ee8021ffb53b721dc83d3d94bafae43c1d5dc9f234c3a6bd7e84b2b9d791daaaf4999e22fb24019340b
7
- data.tar.gz: 72542b720536309e129357a835931e88812d3d973ab98fd6e2b38594f898931b37c71bb1713f40cd63c0906d872f05df3a705779ee7ca753beb6554eb841d82c
6
+ metadata.gz: f2e549a6174ead790ba570d389f420986c1b6355b9e8b8f37609122b6eb2573de5113c1e2a9d1fd1f9785f25b61ae384badba33309164282664677fc2de82ea1
7
+ data.tar.gz: 68e06b1d12dc8420e53a4de338e006c6b06ae09995e79cc4b5c76422a8f90d4684a1194e2d86502ebe1ba715e439052a9856b93f1a3a42f65991c7db57e1ba79
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.0.4]
4
+ ### Fixed
5
+ - use `SHA256Managed` instead of `SHA256CryptoServiceProvider` to be compatible with .Net 2.0 which is the default runtime on Windows 2008 R2
6
+
3
7
  ## [1.0.3]
4
8
  ### Changed
5
9
  - Artifactory credentials are no longer required. A designated account has been hard-coded as default.
@@ -60,7 +60,7 @@ function Test-ProjectPackage {
60
60
  function Get-FileHash ($Path, $Algorithm) {
61
61
  $Path = (resolve-path $path).providerpath
62
62
  $hash = @{Algorithm = $Algorithm; Path = $Path}
63
- use ($c = New-Object -TypeName Security.Cryptography.SHA256CryptoServiceProvider) {
63
+ use ($c = New-Object -TypeName Security.Cryptography.SHA256Managed) {
64
64
  use ($in = (gi $path).OpenRead()) {
65
65
  $hash.Hash = ([BitConverter]::ToString($c.ComputeHash($in))).Replace("-", "").ToUpper()
66
66
  }
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -23,7 +23,7 @@ Function Get-ChefMetadata($url) {
23
23
 
24
24
  Function Get-SHA256($src) {
25
25
  Try {
26
- $c = New-Object -TypeName System.Security.Cryptography.SHA256CryptoServiceProvider
26
+ $c = New-Object -TypeName System.Security.Cryptography.SHA256Managed
27
27
  $bytes = $c.ComputeHash(($in = (Get-Item $src).OpenRead()))
28
28
  return ([System.BitConverter]::ToString($bytes)).Replace("-", "").ToLower()
29
29
  } Finally { if (($c -ne $null) -and ($c.GetType().GetMethod("Dispose") -ne $null)) { $c.Dispose() }; if ($in -ne $null) { $in.Dispose() } }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-05 00:00:00.000000000 Z
12
+ date: 2016-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: artifactory
@@ -227,4 +227,3 @@ signing_key:
227
227
  specification_version: 4
228
228
  summary: A mixin to help with omnitruck installs
229
229
  test_files: []
230
- has_rdoc: