berkshelf 5.6.4 → 5.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +5 -5
- data/lib/berkshelf/ssl_policies.rb +1 -1
- data/lib/berkshelf/version.rb +1 -1
- data/spec/unit/berkshelf/ssl_policies_spec.rb +16 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e876c1bf17b5d4b7f9476c516e1650ee94ec06
|
4
|
+
data.tar.gz: 60ec3493e1c2588b9d57a1b9955b9835e41dcc0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b01e75c80bd1babc5cc47713f7d24b61853eaa64657b806ce5a5b1eb7139da9d90529d4837d570f3ae2ce56f7674ec91b0c86e464b13e7d33838b9895e8a74
|
7
|
+
data.tar.gz: 47b2910e768383ca4ed83d6e9bf1bfa4a539b8e4688484549c11d6f497b7ddfd63f8bdd004ec913383076c40de237d419fc4dd5e1a425e6e1ed893c3272a7c0a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [5.6.5](https://github.com/berkshelf/berkshelf/tree/5.6.4) (2017-05-04)
|
4
|
+
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v5.6.4...5.6.5)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Handle Windows backslashes in trusted_certs path [\#1689](https://github.com/berkshelf/berkshelf/pull/1689) ([jeremymv2](https://github.com/jeremymv2))
|
9
|
+
|
3
10
|
## [5.6.4](https://github.com/berkshelf/berkshelf/tree/5.6.4) (2017-03-14)
|
4
11
|
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v5.6.3...5.6.4)
|
5
12
|
|
data/Gemfile.lock
CHANGED
@@ -20,7 +20,7 @@ GIT
|
|
20
20
|
PATH
|
21
21
|
remote: .
|
22
22
|
specs:
|
23
|
-
berkshelf (5.6.
|
23
|
+
berkshelf (5.6.5)
|
24
24
|
addressable (~> 2.3, >= 2.3.4)
|
25
25
|
berkshelf-api-client (>= 2.0.2, < 4.0)
|
26
26
|
buff-config (~> 2.0)
|
@@ -46,7 +46,7 @@ GEM
|
|
46
46
|
minitest (~> 5.1)
|
47
47
|
thread_safe (~> 0.3, >= 0.3.4)
|
48
48
|
tzinfo (~> 1.1)
|
49
|
-
addressable (2.5.
|
49
|
+
addressable (2.5.1)
|
50
50
|
public_suffix (~> 2.0, >= 2.0.2)
|
51
51
|
archive (0.0.6)
|
52
52
|
ffi (~> 1.9.3)
|
@@ -80,7 +80,7 @@ GEM
|
|
80
80
|
celluloid-io (0.16.2)
|
81
81
|
celluloid (>= 0.16.0)
|
82
82
|
nio4r (>= 1.1.0)
|
83
|
-
chef-config (
|
83
|
+
chef-config (13.0.118)
|
84
84
|
addressable
|
85
85
|
fuzzyurl
|
86
86
|
mixlib-config (~> 2.0)
|
@@ -178,7 +178,7 @@ GEM
|
|
178
178
|
guard-compat (~> 1.1)
|
179
179
|
rspec (>= 2.99.0, < 4.0)
|
180
180
|
hashdiff (0.3.2)
|
181
|
-
hashie (3.5.
|
181
|
+
hashie (3.5.5)
|
182
182
|
hitimes (1.2.4)
|
183
183
|
http (2.2.0)
|
184
184
|
addressable (~> 2.3)
|
@@ -237,7 +237,7 @@ GEM
|
|
237
237
|
notiffany (0.1.1)
|
238
238
|
nenv (~> 0.1)
|
239
239
|
shellany (~> 0.0)
|
240
|
-
octokit (4.
|
240
|
+
octokit (4.7.0)
|
241
241
|
sawyer (~> 0.8.0, >= 0.5.3)
|
242
242
|
pry (0.10.4)
|
243
243
|
coderay (~> 1.1.0)
|
@@ -22,7 +22,7 @@ module Berkshelf
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def trusted_certs_dir
|
25
|
-
config_dir = Berkshelf.config.chef.trusted_certs_dir.to_s
|
25
|
+
config_dir = Berkshelf.config.chef.trusted_certs_dir.to_s.tr('\\', '/')
|
26
26
|
if config_dir.empty? || !::File.exist?(config_dir)
|
27
27
|
File.join(ENV["HOME"], ".chef", "trusted_certs")
|
28
28
|
else
|
data/lib/berkshelf/version.rb
CHANGED
@@ -2,6 +2,8 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Berkshelf::SSLPolicy do
|
4
4
|
let(:self_signed_crt_path) { File.join(BERKS_SPEC_DATA, "trusted_certs") }
|
5
|
+
let(:self_signed_crt_path_windows_backslashes) { "C:/users/vagrant\\.chef\\trusted_certs" }
|
6
|
+
let(:self_signed_crt_path_windows_forwardslashes) { "C:/users/vagrant/.chef/trusted_certs" }
|
5
7
|
|
6
8
|
let(:chef_config) do
|
7
9
|
double(Ridley::Chef::Config,
|
@@ -61,7 +63,7 @@ describe Berkshelf::SSLPolicy do
|
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
|
-
context "config is
|
66
|
+
context "config is set but does not exist" do
|
65
67
|
before { allow(chef_config).to receive_messages(trusted_certs_dir: "/fake") }
|
66
68
|
|
67
69
|
it "defaults to ~/.chef/trusted_certs" do
|
@@ -70,6 +72,19 @@ describe Berkshelf::SSLPolicy do
|
|
70
72
|
)
|
71
73
|
end
|
72
74
|
end
|
75
|
+
|
76
|
+
context 'config has Windows backslashes in trusted_certs_dir path' do
|
77
|
+
before do
|
78
|
+
allow(chef_config).to receive_messages(trusted_certs_dir: self_signed_crt_path_windows_backslashes)
|
79
|
+
allow(File).to receive(:exist?).with(self_signed_crt_path_windows_forwardslashes).and_return(true)
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'replaces the backslashes in trusted_certs_dir from Berkshelf config with forwardslashes' do
|
83
|
+
expect(subject.trusted_certs_dir).to eq(
|
84
|
+
self_signed_crt_path_windows_forwardslashes
|
85
|
+
)
|
86
|
+
end
|
87
|
+
end
|
73
88
|
end
|
74
89
|
end
|
75
90
|
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: 5.6.
|
4
|
+
version: 5.6.5
|
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-05-04 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: addressable
|
@@ -479,7 +479,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
479
479
|
version: 2.0.0
|
480
480
|
requirements: []
|
481
481
|
rubyforge_project:
|
482
|
-
rubygems_version: 2.
|
482
|
+
rubygems_version: 2.5.1
|
483
483
|
signing_key:
|
484
484
|
specification_version: 4
|
485
485
|
summary: Manages a Cookbook's, or an Application's, Cookbook dependencies
|