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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/lib/berkshelf/downloader.rb +3 -3
- data/lib/berkshelf/mixin/git.rb +1 -1
- data/lib/berkshelf/source.rb +1 -7
- data/lib/berkshelf/version.rb +1 -1
- data/spec/unit/berkshelf/file_syncer_spec.rb +1 -1
- data/spec/unit/berkshelf/lockfile_spec.rb +3 -2
- 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: 3e0cbf16f01c0bcdadf86bd7e6ec8aef9af7e97e
|
4
|
+
data.tar.gz: 92860bdf3d253394c37d97e80e57f95246cfea6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21cafcaad7db708ea675e18a0c71bc0a33d8702b30ec95bdf1dca1f1f1df0e5da032b7e6f8f48a2b1068a4b9f08cfc3f9e690fc0669f13421702c1e5f048def0
|
7
|
+
data.tar.gz: dd7bb1c777539df61d1527194008ebde8c9ff559610c48ae9d9a853c9bb81483b52939bfce2f41fe1cf82a7cca90fa88edb0eaa3421e1636f16d9829b0e278e8
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/Gemfile.lock
CHANGED
data/lib/berkshelf/downloader.rb
CHANGED
@@ -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
|
-
|
107
|
-
|
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) }
|
data/lib/berkshelf/mixin/git.rb
CHANGED
@@ -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
|
|
data/lib/berkshelf/source.rb
CHANGED
@@ -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]
|
9
|
+
# @param [String, Berkshelf::SourceURI] source
|
16
10
|
def initialize(source)
|
17
11
|
@source = source
|
18
12
|
@universe = nil
|
data/lib/berkshelf/version.rb
CHANGED
@@ -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:
|
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("
|
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.
|
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-
|
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.
|
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
|