berkshelf 4.3.2 → 4.3.3

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: 9dfb528241733545692cab7c850e1a35ff9f57aa
4
- data.tar.gz: 2a6407bfbe5bdddd753810b460fa9f773e99e2ae
3
+ metadata.gz: 3e0cbf16f01c0bcdadf86bd7e6ec8aef9af7e97e
4
+ data.tar.gz: 92860bdf3d253394c37d97e80e57f95246cfea6d
5
5
  SHA512:
6
- metadata.gz: bd7c57ae3367773a9352070667397b3fc4f350daecf11651e35b1692c4dbe5e8dae6201a83a43cb09355712fbaec2e490df7309ec9468753caaf1d6cd7edf509
7
- data.tar.gz: 7eb2e959314c311eeb1d82d7e3f926ce46646edf386b0f662647b5dcb7be904917f5521e95592398d015e96ce31a6f038ffee8d6a21f2b76698cafe3c5a3307f
6
+ metadata.gz: 21cafcaad7db708ea675e18a0c71bc0a33d8702b30ec95bdf1dca1f1f1df0e5da032b7e6f8f48a2b1068a4b9f08cfc3f9e690fc0669f13421702c1e5f048def0
7
+ data.tar.gz: dd7bb1c777539df61d1527194008ebde8c9ff559610c48ae9d9a853c9bb81483b52939bfce2f41fe1cf82a7cca90fa88edb0eaa3421e1636f16d9829b0e278e8
@@ -1,5 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.3.3](https://github.com/berkshelf/berkshelf/tree/4.3.3) (2016-05-09)
4
+ [Full Changelog](https://github.com/berkshelf/berkshelf/compare/v4.3.2...4.3.3)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Fixing some specs that fail on Windows [\#1554](https://github.com/berkshelf/berkshelf/pull/1554) ([tyler-ball](https://github.com/tyler-ball))
9
+ - fix up @reset's review comments from \#1527 [\#1543](https://github.com/berkshelf/berkshelf/pull/1543) ([thommay](https://github.com/thommay))
10
+ - Correct usage of Net::HTTP.new [\#1532](https://github.com/berkshelf/berkshelf/pull/1532) ([xeron](https://github.com/xeron))
11
+
3
12
  ## [4.3.2](https://github.com/berkshelf/berkshelf/tree/4.3.2) (2016-04-05)
4
13
  [Full Changelog](https://github.com/berkshelf/berkshelf/compare/v4.3.1...4.3.2)
5
14
 
@@ -19,7 +19,7 @@ GIT
19
19
  PATH
20
20
  remote: .
21
21
  specs:
22
- berkshelf (4.3.2)
22
+ berkshelf (4.3.3)
23
23
  addressable (~> 2.3, >= 2.3.4)
24
24
  berkshelf-api-client (~> 2.0, >= 2.0.2)
25
25
  buff-config (~> 1.0)
@@ -102,9 +102,9 @@ module Berkshelf
102
102
  end
103
103
 
104
104
  # We use Net::HTTP.new and then get here, because Net::HTTP.get does not support proxy settings.
105
- http = Net::HTTP.new(url.host,
106
- use_ssl: url.scheme == "https",
107
- verify_mode: (options[:ssl_verify].nil? || options[:ssl_verify]) ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE)
105
+ http = Net::HTTP.new(url.host, url.port)
106
+ http.use_ssl = url.scheme == "https"
107
+ http.verify_mode = (options[:ssl_verify].nil? || options[:ssl_verify]) ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE
108
108
  resp = http.get(url.request_uri)
109
109
  return nil unless resp.is_a?(Net::HTTPSuccess)
110
110
  open(archive_path, "wb") { |file| file.write(resp.body) }
@@ -13,7 +13,7 @@ module Berkshelf
13
13
  # @raise [String]
14
14
  # the +$stdout+ from the command
15
15
  def git(command, error = true)
16
- unless Berkshelf.which('git') || Berkshelf.which('git.exe')
16
+ unless Berkshelf.which('git') || Berkshelf.which('git.exe') || Berkshelf.which('git.bat')
17
17
  raise GitNotInstalled.new
18
18
  end
19
19
 
@@ -4,15 +4,9 @@ module Berkshelf
4
4
  class Source
5
5
  include Comparable
6
6
 
7
- # @return [Berkshelf::SourceURI]
8
- attr_accessor :uri
9
-
10
- # @return [Berkshelf::APIClient]
11
- attr_accessor :api_client
12
-
13
7
  attr_accessor :source
14
8
 
15
- # @param [String, Berkshelf::SourceURI] uri
9
+ # @param [String, Berkshelf::SourceURI] source
16
10
  def initialize(source)
17
11
  @source = source
18
12
  @universe = nil
@@ -1,3 +1,3 @@
1
1
  module Berkshelf
2
- VERSION = "4.3.2"
2
+ VERSION = "4.3.3"
3
3
  end
@@ -180,7 +180,7 @@ module Berkshelf
180
180
  end
181
181
  end
182
182
 
183
- context 'with deeply nested paths and symlinks' do
183
+ context 'with deeply nested paths and symlinks', :not_supported_on_windows do
184
184
  let(:source) do
185
185
  source = File.join(tmp_path, 'source')
186
186
  FileUtils.mkdir_p(source)
@@ -5,16 +5,17 @@ describe Berkshelf::Lockfile do
5
5
  subject { Berkshelf::Lockfile.new(filepath: filepath) }
6
6
 
7
7
  describe '.from_berksfile' do
8
+ let(:lock_path) { File.absolute_path('/path/to/Bacon') }
8
9
  let(:berksfile) do
9
10
  double('Berksfile',
10
- filepath: '/path/to/Bacon',
11
+ filepath: lock_path,
11
12
  )
12
13
  end
13
14
 
14
15
  subject { described_class.from_berksfile(berksfile) }
15
16
 
16
17
  it 'uses the basename of the Berksfile' do
17
- expect(subject.filepath).to eq("/path/to/Bacon.lock")
18
+ expect(subject.filepath).to eq("#{lock_path}.lock")
18
19
  end
19
20
  end
20
21
 
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: 4.3.2
4
+ version: 4.3.3
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: 2016-04-06 00:00:00.000000000 Z
15
+ date: 2016-05-09 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: addressable
@@ -635,7 +635,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
635
635
  version: 1.8.0
636
636
  requirements: []
637
637
  rubyforge_project:
638
- rubygems_version: 2.4.7
638
+ rubygems_version: 2.6.3
639
639
  signing_key:
640
640
  specification_version: 4
641
641
  summary: Manages a Cookbook's, or an Application's, Cookbook dependencies