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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff1504161410f0f7f535a2d3c1227e66596d0e85
4
- data.tar.gz: b0ee0d0640c9f5c3025b8cb26c694e9e3941bf91
3
+ metadata.gz: 409c41e8dc72a361b7aad7e5afe718e6bc69ccf3
4
+ data.tar.gz: a824d62bdc2f419db0fd693232275b4348686c8e
5
5
  SHA512:
6
- metadata.gz: 11617a70da55c976441d47ce96baf8e89a4ed2f3edb88c9e102dafda4be9338953518d7b5e6fadb50e1e91094f28cc65ed4b52c702557c4c9300b15e4bc698a1
7
- data.tar.gz: 92662654355e09f0537a46a00a96f8de7a39d9f127ee97b94ce86f734811513ce8db0dbc76681a00ef9ca79a5a0cf0cac8a3f39cbcf627826a01ac79211cab06
6
+ metadata.gz: ab396ce9d36abc61cc327d6ae13873b361c3c4e48aedbca92eab219b052d1d36aed49cdc3a0cde6e3e69ecb95cb7f8f341a8380b7a6c2ebc000cbaf03f9e819c
7
+ data.tar.gz: ad8227ce4c7117b15d051b4c24b8155cf903260026dd9595a341133149f9444be2f6b903f5d10fe807278cd061df0d8fcf9dad10159ce06e54f903dfdb188835
@@ -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
@@ -1,10 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## [5.6.3](https://github.com/berkshelf/berkshelf/tree/5.6.3) (2017-02-23)
4
- [Full Changelog](https://github.com/berkshelf/berkshelf/compare/v5.6.2...5.6.3)
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
 
@@ -20,7 +20,7 @@ GIT
20
20
  PATH
21
21
  remote: .
22
22
  specs:
23
- berkshelf (5.6.3)
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.6)
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.3
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
 
@@ -1,3 +1,3 @@
1
1
  module Berkshelf
2
- VERSION = "5.6.3"
2
+ VERSION = "5.6.4"
3
3
  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.3
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-02-23 00:00:00.000000000 Z
15
+ date: 2017-03-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: addressable