bundler 1.13.3 → 1.13.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/bundler/definition.rb +2 -2
- data/lib/bundler/deployment.rb +1 -1
- data/lib/bundler/fetcher/compact_index.rb +15 -12
- data/lib/bundler/plugin.rb +1 -1
- data/lib/bundler/plugin/api.rb +1 -1
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb +1 -0
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb +2 -2
- data/lib/bundler/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: 8edc4be5a8fbb416aba0869287aec8623cd9baa5
|
4
|
+
data.tar.gz: b7e41ec3343924ac3e7ffe38887e6dc54a58c718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 785e12cdce6c2c4148da290f32fa53c13fb020cf24a50231136dd6e3650652c3091047bff37d99ad8fc8f86dc3b317761d8f78c532a04a098b2bd936111b5b82
|
7
|
+
data.tar.gz: 5c1d362093591c6b678a8a760c91dbe53c4b446077ff01d0d5daba5632f37b5b0e31415b247b920ccccf76af1248fe3411e622aa927fdac1baa0f98348cbd686
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 1.13.4 (2016-10-11)
|
2
|
+
|
3
|
+
Bugfixes:
|
4
|
+
|
5
|
+
- stop printing warning when compact index versions file is rewritten (#5064, @indirect)
|
6
|
+
- fix `parent directory is world writable but not sticky` error on install (#5043, @indirect)
|
7
|
+
- fix for `uninitialized constant Bundler::Plugin::API::Source` error (#5010, @hsbt, @aycabta)
|
8
|
+
- make `update` options for major, minor, and patch updates consistent (#4934, @chrismo)
|
9
|
+
|
1
10
|
## 1.13.3 (2016-10-10)
|
2
11
|
|
3
12
|
Bugfixes:
|
data/lib/bundler/definition.rb
CHANGED
@@ -103,8 +103,6 @@ module Bundler
|
|
103
103
|
end
|
104
104
|
@unlocking ||= @unlock[:ruby] ||= (!@locked_ruby_version ^ !@ruby_version)
|
105
105
|
|
106
|
-
@gem_version_promoter = create_gem_version_promoter
|
107
|
-
|
108
106
|
current_platform = Bundler.rubygems.platforms.map {|p| generic(p) }.compact.last
|
109
107
|
add_platform(current_platform)
|
110
108
|
|
@@ -112,6 +110,8 @@ module Bundler
|
|
112
110
|
eager_unlock = expand_dependencies(@unlock[:gems])
|
113
111
|
@unlock[:gems] = @locked_specs.for(eager_unlock).map(&:name)
|
114
112
|
|
113
|
+
@gem_version_promoter = create_gem_version_promoter
|
114
|
+
|
115
115
|
@source_changes = converge_sources
|
116
116
|
@dependency_changes = converge_dependencies
|
117
117
|
@local_changes = converge_locals
|
data/lib/bundler/deployment.rb
CHANGED
@@ -66,7 +66,7 @@ module Bundler
|
|
66
66
|
# Read info file checksums out of /versions, so we can know if gems are up to date
|
67
67
|
fetch_uri.scheme != "file" && compact_index_client.update_and_parse_checksums!
|
68
68
|
rescue CompactIndexClient::Updater::MisMatchedChecksumError => e
|
69
|
-
Bundler.ui.
|
69
|
+
Bundler.ui.debug(e.message)
|
70
70
|
nil
|
71
71
|
end
|
72
72
|
compact_index_request :available?
|
@@ -78,9 +78,9 @@ module Bundler
|
|
78
78
|
private
|
79
79
|
|
80
80
|
def compact_index_client
|
81
|
-
@compact_index_client ||=
|
81
|
+
@compact_index_client ||= begin
|
82
82
|
SharedHelpers.filesystem_access(cache_path) do
|
83
|
-
CompactIndexClient.new(cache_path,
|
83
|
+
CompactIndexClient.new(cache_path, client_fetcher)
|
84
84
|
end.tap do |client|
|
85
85
|
client.in_parallel = lambda do |inputs, &blk|
|
86
86
|
func = lambda {|object, _index| blk.call(object) }
|
@@ -89,6 +89,7 @@ module Bundler
|
|
89
89
|
inputs.map { worker.deq }
|
90
90
|
end
|
91
91
|
end
|
92
|
+
end
|
92
93
|
end
|
93
94
|
|
94
95
|
def bundle_worker(func = nil)
|
@@ -105,15 +106,17 @@ module Bundler
|
|
105
106
|
Bundler.user_cache.join("compact_index", remote.cache_slug)
|
106
107
|
end
|
107
108
|
|
108
|
-
def
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
109
|
+
def client_fetcher
|
110
|
+
ClientFetcher.new(self, Bundler.ui)
|
111
|
+
end
|
112
|
+
|
113
|
+
ClientFetcher = Struct.new(:fetcher, :ui) do
|
114
|
+
def call(path, headers)
|
115
|
+
fetcher.downloader.fetch(fetcher.fetch_uri + path, headers)
|
116
|
+
rescue NetworkDownError => e
|
117
|
+
raise unless Bundler.settings[:allow_offline_install] && headers["If-None-Match"]
|
118
|
+
ui.warn "Using the cached data for the new index because of a network error: #{e}"
|
119
|
+
Net::HTTPNotModified.new(nil, nil, nil)
|
117
120
|
end
|
118
121
|
end
|
119
122
|
end
|
data/lib/bundler/plugin.rb
CHANGED
data/lib/bundler/plugin/api.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require "bundler/plugin/api/source"
|
2
3
|
|
3
4
|
module Bundler
|
4
5
|
# This is the interfacing class represents the API that we intend to provide
|
@@ -23,7 +24,6 @@ module Bundler
|
|
23
24
|
# and hooks).
|
24
25
|
module Plugin
|
25
26
|
class API
|
26
|
-
autoload :Source, "bundler/plugin/api/source"
|
27
27
|
# The plugins should declare that they handle a command through this helper.
|
28
28
|
#
|
29
29
|
# @param [String] command being handled by them
|
@@ -26,10 +26,10 @@ class Bundler::CompactIndexClient
|
|
26
26
|
def update(local_path, remote_path, retrying = nil)
|
27
27
|
headers = {}
|
28
28
|
|
29
|
-
Dir.mktmpdir(
|
29
|
+
Dir.mktmpdir("bundler-compact-index-") do |local_temp_dir|
|
30
30
|
local_temp_path = Pathname.new(local_temp_dir).join(local_path.basename)
|
31
31
|
|
32
|
-
#
|
32
|
+
# first try to fetch any new bytes on the existing file
|
33
33
|
if retrying.nil? && local_path.file?
|
34
34
|
FileUtils.cp local_path, local_temp_path
|
35
35
|
headers["If-None-Match"] = etag_for(local_temp_path)
|
data/lib/bundler/version.rb
CHANGED
@@ -7,5 +7,5 @@ module Bundler
|
|
7
7
|
# We're doing this because we might write tests that deal
|
8
8
|
# with other versions of bundler and we are unsure how to
|
9
9
|
# handle this better.
|
10
|
-
VERSION = "1.13.
|
10
|
+
VERSION = "1.13.4" unless defined?(::Bundler::VERSION)
|
11
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-10-
|
12
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: automatiek
|