berkshelf 5.6.3 → 5.6.4
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/.travis.yml +2 -1
- data/CHANGELOG.md +10 -2
- data/Gemfile.lock +3 -3
- data/lib/berkshelf/community_rest.rb +7 -4
- data/lib/berkshelf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 409c41e8dc72a361b7aad7e5afe718e6bc69ccf3
|
|
4
|
+
data.tar.gz: a824d62bdc2f419db0fd693232275b4348686c8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab396ce9d36abc61cc327d6ae13873b361c3c4e48aedbca92eab219b052d1d36aed49cdc3a0cde6e3e69ecb95cb7f8f341a8380b7a6c2ebc000cbaf03f9e819c
|
|
7
|
+
data.tar.gz: ad8227ce4c7117b15d051b4c24b8155cf903260026dd9595a341133149f9444be2f6b903f5d10fe807278cd061df0d8fcf9dad10159ce06e54f903dfdb188835
|
data/.travis.yml
CHANGED
|
@@ -50,7 +50,8 @@ matrix:
|
|
|
50
50
|
- gem install bundler --version=1.10.6
|
|
51
51
|
# Needed until https://github.com/travis-ci/apt-package-whitelist/pull/1820 is merged
|
|
52
52
|
- sudo apt-get update
|
|
53
|
-
- sudo apt-get -y install squid3
|
|
53
|
+
- sudo apt-get -y install squid3 apache2-utils
|
|
54
|
+
- sudo htpasswd -b -c /etc/squid3/passwords proxy proxy
|
|
54
55
|
sudo: required
|
|
55
56
|
env:
|
|
56
57
|
- PROXY_TESTS_DIR=/tmp/proxy_tests
|
data/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [5.6.
|
|
4
|
-
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v5.6.
|
|
3
|
+
## [5.6.4](https://github.com/berkshelf/berkshelf/tree/5.6.4) (2017-03-14)
|
|
4
|
+
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v5.6.3...5.6.4)
|
|
5
5
|
|
|
6
6
|
**Merged pull requests:**
|
|
7
7
|
|
|
8
|
+
- Add Support for Auth Proxy [\#1684](https://github.com/berkshelf/berkshelf/pull/1684) ([tduffield](https://github.com/tduffield))
|
|
9
|
+
|
|
10
|
+
## [v5.6.3](https://github.com/berkshelf/berkshelf/tree/v5.6.3) (2017-02-23)
|
|
11
|
+
[Full Changelog](https://github.com/berkshelf/berkshelf/compare/v5.6.2...v5.6.3)
|
|
12
|
+
|
|
13
|
+
**Merged pull requests:**
|
|
14
|
+
|
|
15
|
+
- Release 5.6.3 [\#1681](https://github.com/berkshelf/berkshelf/pull/1681) ([tduffield](https://github.com/tduffield))
|
|
8
16
|
- Specify appropriate proxies based on URI [\#1679](https://github.com/berkshelf/berkshelf/pull/1679) ([tduffield](https://github.com/tduffield))
|
|
9
17
|
- Remove spork [\#1672](https://github.com/berkshelf/berkshelf/pull/1672) ([biinari](https://github.com/biinari))
|
|
10
18
|
|
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.4)
|
|
24
24
|
addressable (~> 2.3, >= 2.3.4)
|
|
25
25
|
berkshelf-api-client (>= 2.0.2, < 4.0)
|
|
26
26
|
buff-config (~> 2.0)
|
|
@@ -217,7 +217,7 @@ GEM
|
|
|
217
217
|
mixlib-log (1.7.1)
|
|
218
218
|
mixlib-shellout (2.2.7)
|
|
219
219
|
mixlib-versioning (1.1.0)
|
|
220
|
-
molinillo (0.5.
|
|
220
|
+
molinillo (0.5.7)
|
|
221
221
|
msgpack (1.0.3)
|
|
222
222
|
multi_json (1.12.1)
|
|
223
223
|
multi_test (0.1.2)
|
|
@@ -376,4 +376,4 @@ DEPENDENCIES
|
|
|
376
376
|
yard (>= 0.8)
|
|
377
377
|
|
|
378
378
|
BUNDLED WITH
|
|
379
|
-
1.14.
|
|
379
|
+
1.14.6
|
|
@@ -195,16 +195,19 @@ module Berkshelf
|
|
|
195
195
|
def open_uri_options(target)
|
|
196
196
|
options = {}
|
|
197
197
|
options.merge!(headers)
|
|
198
|
-
options.merge!(open_uri_proxy_options)
|
|
198
|
+
options.merge!(open_uri_proxy_options(target))
|
|
199
199
|
options.merge!(ssl_verify_mode: ssl_verify_mode)
|
|
200
|
-
options.merge!(proxy: URI.parse(target).find_proxy())
|
|
201
200
|
end
|
|
202
201
|
|
|
203
|
-
def open_uri_proxy_options
|
|
202
|
+
def open_uri_proxy_options(target)
|
|
203
|
+
proxy_uri = URI.parse(target).find_proxy()
|
|
204
|
+
return {} if proxy_uri.nil?
|
|
205
|
+
|
|
206
|
+
proxy = Faraday::ProxyOptions.from(proxy_uri)
|
|
204
207
|
if proxy && proxy[:user] && proxy[:password]
|
|
205
208
|
{ proxy_http_basic_authentication: [ proxy[:uri], proxy[:user], proxy[:password] ] }
|
|
206
209
|
else
|
|
207
|
-
{}
|
|
210
|
+
{ proxy: proxy[:uri] }
|
|
208
211
|
end
|
|
209
212
|
end
|
|
210
213
|
|
data/lib/berkshelf/version.rb
CHANGED
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.4
|
|
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-03-14 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: addressable
|