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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 177901039df31f7f5566686a174528c2a14de127
4
- data.tar.gz: 0cabc0228980a453c6a88f10ff2c2f93480b2405
3
+ metadata.gz: 8edc4be5a8fbb416aba0869287aec8623cd9baa5
4
+ data.tar.gz: b7e41ec3343924ac3e7ffe38887e6dc54a58c718
5
5
  SHA512:
6
- metadata.gz: 4949ae5901cae37459e2574e220a61361ed62605e836d1fa15c057c75d4a1259c98ea118e034f8cbae474b7bc7bc953d6fbaf7ea899b35d47530229411a54eaf
7
- data.tar.gz: b7406880fcd732e8421b9c2e53d9cc5c98d5eb75e3b9846bbcd7f2edfb38f1b660e13dc68f708a14bb9128a21e7932efc73f0b433bd19ae5ceace7303c9faff4
6
+ metadata.gz: 785e12cdce6c2c4148da290f32fa53c13fb020cf24a50231136dd6e3650652c3091047bff37d99ad8fc8f86dc3b317761d8f78c532a04a098b2bd936111b5b82
7
+ data.tar.gz: 5c1d362093591c6b678a8a760c91dbe53c4b446077ff01d0d5daba5632f37b5b0e31415b247b920ccccf76af1248fe3411e622aa927fdac1baa0f98348cbd686
@@ -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:
@@ -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
@@ -15,7 +15,7 @@ module Bundler
15
15
  else
16
16
  context_name = "vlad"
17
17
  role_default = "[:app]"
18
- error_type = ::Vlad::CommandFailedError
18
+ error_type = ::Rake::CommandFailedError
19
19
  end
20
20
 
21
21
  roles = context.fetch(:bundle_roles, false)
@@ -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.warn(e.message)
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, compact_fetcher)
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 compact_fetcher
109
- lambda do |path, headers|
110
- begin
111
- downloader.fetch(fetch_uri + path, headers)
112
- rescue NetworkDownError => e
113
- raise unless Bundler.settings[:allow_offline_install] && headers["If-None-Match"]
114
- Bundler.ui.warn "Using the cached data for the new index because of a network error: #{e}"
115
- Net::HTTPNotModified.new(nil, nil, nil)
116
- end
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
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
+ require "bundler/plugin/api"
2
3
 
3
4
  module Bundler
4
5
  module Plugin
5
- autoload :API, "bundler/plugin/api"
6
6
  autoload :DSL, "bundler/plugin/dsl"
7
7
  autoload :Index, "bundler/plugin/index"
8
8
  autoload :Installer, "bundler/plugin/installer"
@@ -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
@@ -22,6 +22,7 @@ class Bundler::CompactIndexClient
22
22
  @cache = Cache.new(@directory)
23
23
  @endpoints = Set.new
24
24
  @info_checksums_by_name = {}
25
+ @parsed_checksums = false
25
26
  @in_parallel = lambda do |inputs, &blk|
26
27
  inputs.map(&blk)
27
28
  end
@@ -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(local_path.basename.to_s, local_path.dirname) do |local_temp_dir|
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
- # download new file if retrying
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)
@@ -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.3" unless defined?(::Bundler::VERSION)
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.3
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-10 00:00:00.000000000 Z
12
+ date: 2016-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: automatiek