berkshelf 7.0.5 → 7.0.6
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/CHANGELOG.md +17 -1
- data/Gemfile.lock +9 -9
- data/lib/berkshelf/downloader.rb +8 -6
- data/lib/berkshelf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 547a8faa0841fb8dbd0c8f534bcc47d765dd0a36ac9414248a0d60e5cb55bb0f
|
|
4
|
+
data.tar.gz: cc0b2093ad106ce83f9ff8903e78783d01aab14f71cb00983ef050ddf37c5252
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4feca3fb0ac9ad3f92dc8e97cc3ffd1b265d70e8d6bacbc381cf9dddf183f3529c464923d7d24f69344a20fcaf623e72093900bd2f5adccb141e769a8e538e71
|
|
7
|
+
data.tar.gz: dac1553f7c1b03774847482c4adeee183deb874b9b2565ff71022bd4f88f38894f559ad01434f398d86e6ae98a1e4857e0aa12017e1aeb11b757c4600f78ce69
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v7.0.5](https://github.com/berkshelf/berkshelf/tree/v7.0.5) (2018-08-06)
|
|
4
|
+
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v6.3.3...v7.0.5)
|
|
5
|
+
|
|
6
|
+
**Merged pull requests:**
|
|
7
|
+
|
|
8
|
+
- Add a Chef::CookbookManifestVersions to RidleyCompat [\#1789](https://github.com/berkshelf/berkshelf/pull/1789) ([ryancragun](https://github.com/ryancragun))
|
|
9
|
+
|
|
10
|
+
## [v6.3.3](https://github.com/berkshelf/berkshelf/tree/v6.3.3) (2018-08-03)
|
|
11
|
+
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v7.0.4...v6.3.3)
|
|
12
|
+
|
|
13
|
+
**Merged pull requests:**
|
|
14
|
+
|
|
15
|
+
- \[SHACK-295\] Missing require for ChefDK 2.x patch release [\#1788](https://github.com/berkshelf/berkshelf/pull/1788) ([tyler-ball](https://github.com/tyler-ball))
|
|
16
|
+
- Additional generator removal cleanup [\#1786](https://github.com/berkshelf/berkshelf/pull/1786) ([lamont-granquist](https://github.com/lamont-granquist))
|
|
17
|
+
- fixes for latest chefstyle updates [\#1784](https://github.com/berkshelf/berkshelf/pull/1784) ([lamont-granquist](https://github.com/lamont-granquist))
|
|
18
|
+
- remove hashrockets syntax [\#1783](https://github.com/berkshelf/berkshelf/pull/1783) ([lamont-granquist](https://github.com/lamont-granquist))
|
|
19
|
+
|
|
3
20
|
## [v7.0.4](https://github.com/berkshelf/berkshelf/tree/v7.0.4) (2018-06-08)
|
|
4
21
|
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v7.0.3...v7.0.4)
|
|
5
22
|
|
|
@@ -70,7 +87,6 @@
|
|
|
70
87
|
|
|
71
88
|
**Merged pull requests:**
|
|
72
89
|
|
|
73
|
-
- Prepare 6.3.0 Release [\#1725](https://github.com/berkshelf/berkshelf/pull/1725) ([jaym](https://github.com/jaym))
|
|
74
90
|
- Remove stale comment [\#1724](https://github.com/berkshelf/berkshelf/pull/1724) ([jaym](https://github.com/jaym))
|
|
75
91
|
- Fix up Dir.glob for windows [\#1722](https://github.com/berkshelf/berkshelf/pull/1722) ([jaym](https://github.com/jaym))
|
|
76
92
|
- bump the gemfile.lock [\#1721](https://github.com/berkshelf/berkshelf/pull/1721) ([lamont-granquist](https://github.com/lamont-granquist))
|
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
GIT
|
|
2
2
|
remote: https://github.com/chef/chef
|
|
3
|
-
revision:
|
|
3
|
+
revision: 111bb019fed2eea16f43acd52635607f3a33373e
|
|
4
4
|
branch: master
|
|
5
5
|
specs:
|
|
6
|
-
chef (14.4.
|
|
6
|
+
chef (14.4.23)
|
|
7
7
|
addressable
|
|
8
8
|
bundler (>= 1.10)
|
|
9
|
-
chef-config (= 14.4.
|
|
9
|
+
chef-config (= 14.4.23)
|
|
10
10
|
chef-zero (>= 13.0)
|
|
11
11
|
diff-lcs (~> 1.2, >= 1.2.4)
|
|
12
12
|
erubis (~> 2.7)
|
|
@@ -34,7 +34,7 @@ GIT
|
|
|
34
34
|
specinfra (~> 2.10)
|
|
35
35
|
syslog-logger (~> 1.6)
|
|
36
36
|
uuidtools (~> 2.1.5)
|
|
37
|
-
chef-config (14.4.
|
|
37
|
+
chef-config (14.4.23)
|
|
38
38
|
addressable
|
|
39
39
|
fuzzyurl
|
|
40
40
|
mixlib-config (>= 2.2.12, < 3.0)
|
|
@@ -43,7 +43,7 @@ GIT
|
|
|
43
43
|
|
|
44
44
|
GIT
|
|
45
45
|
remote: https://github.com/chef/chefstyle.git
|
|
46
|
-
revision:
|
|
46
|
+
revision: 4a885da4a201b55f2a5568bc0ea054860ccbf3c3
|
|
47
47
|
branch: master
|
|
48
48
|
specs:
|
|
49
49
|
chefstyle (0.10.0)
|
|
@@ -52,7 +52,7 @@ GIT
|
|
|
52
52
|
PATH
|
|
53
53
|
remote: .
|
|
54
54
|
specs:
|
|
55
|
-
berkshelf (7.0.
|
|
55
|
+
berkshelf (7.0.6)
|
|
56
56
|
chef (>= 13.6.52)
|
|
57
57
|
chef-config
|
|
58
58
|
cleanroom (~> 1.0)
|
|
@@ -130,7 +130,7 @@ GEM
|
|
|
130
130
|
ffi (1.9.25)
|
|
131
131
|
ffi-yajl (2.3.1)
|
|
132
132
|
libyajl2 (~> 1.2)
|
|
133
|
-
fuubar (2.3.
|
|
133
|
+
fuubar (2.3.2)
|
|
134
134
|
rspec-core (~> 3.0)
|
|
135
135
|
ruby-progressbar (~> 1.4)
|
|
136
136
|
fuzzyurl (0.9.0)
|
|
@@ -201,7 +201,7 @@ GEM
|
|
|
201
201
|
systemu (~> 2.6.4)
|
|
202
202
|
wmi-lite (~> 1.0)
|
|
203
203
|
parallel (1.12.1)
|
|
204
|
-
parser (2.5.1.
|
|
204
|
+
parser (2.5.1.2)
|
|
205
205
|
ast (~> 2.4.0)
|
|
206
206
|
plist (3.4.0)
|
|
207
207
|
powerpack (0.1.2)
|
|
@@ -275,7 +275,7 @@ GEM
|
|
|
275
275
|
crack (>= 0.3.2)
|
|
276
276
|
hashdiff
|
|
277
277
|
wmi-lite (1.0.0)
|
|
278
|
-
yard (0.9.
|
|
278
|
+
yard (0.9.15)
|
|
279
279
|
|
|
280
280
|
PLATFORMS
|
|
281
281
|
ruby
|
data/lib/berkshelf/downloader.rb
CHANGED
|
@@ -109,9 +109,11 @@ module Berkshelf
|
|
|
109
109
|
raise ConfigurationError.new "Missing github endpoint configuration for #{cookbook_uri.scheme}://#{cookbook_uri.host}" if options.nil?
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
github_client = Octokit::Client.new(
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
github_client = Octokit::Client.new(
|
|
113
|
+
access_token: options["access_token"],
|
|
114
|
+
api_endpoint: options["api_endpoint"], web_endpoint: options["web_endpoint"],
|
|
115
|
+
connection_options: { ssl: { verify: options["ssl_verify"].nil? ? true : options["ssl_verify"] } }
|
|
116
|
+
)
|
|
115
117
|
|
|
116
118
|
begin
|
|
117
119
|
url = URI(github_client.archive_link(cookbook_uri.path.gsub(/^\//, ""), ref: "v#{version}"))
|
|
@@ -122,7 +124,7 @@ module Berkshelf
|
|
|
122
124
|
# We use Net::HTTP.new and then get here, because Net::HTTP.get does not support proxy settings.
|
|
123
125
|
http = Net::HTTP.new(url.host, url.port)
|
|
124
126
|
http.use_ssl = url.scheme == "https"
|
|
125
|
-
http.verify_mode = (options[
|
|
127
|
+
http.verify_mode = (options["ssl_verify"].nil? || options["ssl_verify"]) ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE
|
|
126
128
|
resp = http.get(url.request_uri)
|
|
127
129
|
return nil unless resp.is_a?(Net::HTTPSuccess)
|
|
128
130
|
open(archive_path, "wb") { |file| file.write(resp.body) }
|
|
@@ -169,13 +171,13 @@ module Berkshelf
|
|
|
169
171
|
raise ConfigurationError.new "Missing github endpoint configuration for #{cookbook_uri.scheme}://#{cookbook_uri.host}" if options.nil?
|
|
170
172
|
end
|
|
171
173
|
|
|
172
|
-
connection ||= Faraday.new(url: options[
|
|
174
|
+
connection ||= Faraday.new(url: options["web_endpoint"]) do |faraday|
|
|
173
175
|
faraday.headers[:accept] = "application/x-tar"
|
|
174
176
|
faraday.response :logger, @logger unless @logger.nil?
|
|
175
177
|
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
|
|
176
178
|
end
|
|
177
179
|
|
|
178
|
-
resp = connection.get(cookbook_uri.request_uri + "&private_token=" + options[
|
|
180
|
+
resp = connection.get(cookbook_uri.request_uri + "&private_token=" + options["private_token"])
|
|
179
181
|
return nil unless resp.status == 200
|
|
180
182
|
open(archive_path, "wb") { |file| file.write(resp.body) }
|
|
181
183
|
|
data/lib/berkshelf/version.rb
CHANGED