summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <hello@colby.fyi>2018-07-17 18:02:31 +1000
committerColby Swandale <hello@colby.fyi>2018-07-17 18:06:28 +1000
commitb0f02a995f93d9ac8f1d24d077f916eeb2fa471e (patch)
tree6e2bb1aabf1eb59e070e2c9f059a8e2c49bcd527
parent8d53c82ab384a18ce0da0524fcbef275ce4683df (diff)
parent12e73cab71647c2bbc8f443c2d899533febfef53 (diff)
downloadbundler-b0f02a995f93d9ac8f1d24d077f916eeb2fa471e.tar.gz
merge v1.16.3
-rw-r--r--CHANGELOG.md71
-rw-r--r--spec/install/gemspecs_spec.rb7
-rw-r--r--spec/spec_helper.rb14
3 files changed, 84 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 22dd5f53db..3bc087e5ce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,74 @@
+## 1.16.3 (2018-07-17)
+
+Features:
+
+ - Support URI::File of Ruby 2.6 (@hsbt)
+
+Bugfixes:
+
+ - Expand symlinks during setup to allow Bundler to load correctly when using symlinks in $GEM_HOME ([#6465](https://github.com/bundler/bundler/issues/6465), @ojab, @indirect)
+ - Dont let Bundler create temporary folders for gem installs which are owned by root ([#6258](https://github.com/bundler/bundler/issues/6258), @colby-swandale)
+ - Don't fallback to using temporary directories when needed directories already exist ([#6546](https://github.com/bundler/bundler/issues/6546), @brodock)
+ - Use SharedHelpers.filesystem_access when reading a Gemfile so friendly error messages can be given to the user ([#6541](https://github.com/bundler/bundler/issues/6541), @segiddins)
+ - Check if source responds to `#remotes` before printing gem install error message ([#6211](https://github.com/bundler/bundler/issues/6211), @colby-swandale)
+ - Handle Errno::ENOTSUP in the Bundler Process Lock to prevent exceptions when using NFS mounts ([#6566](https://github.com/bundler/bundler/issues/6566), @colby-swandale)
+ - Respect encodings when reading gemspecs ([#6598](https://github.com/bundler/bundler/issues/6598), @deivid-rodriguez)
+
+Documentation:
+
+ - Fix links between manual pages (@BanzaiMan)
+ - Add warning to Gemfile documentation for the use of the `source` option when declaring gems ([#6280](https://github.com/bundler/bundler/issues/6280), @forestgagnon)
+
+## 1.16.2 (2018-04-20)
+
+Changes:
+
+ - Include the gem's source in the gem install error message when available (@papanikge)
+ - Remove unnecessary executable bit from gem template (@voxik)
+ - Dont add the timestamp comment with gems added to the Gemfile via `bundle add` ([#6193](https://github.com/bundler/bundler/issues/6193), @cpgo)
+ - Improve yanked gem error message (@alyssais)
+ - Use `Bundler.rubygems.inflate` instead of the Gem::Util method directly (@segiddins)
+ - Remove unused instance variable (@segiddins)
+
+Bugfixes:
+
+ - Only trap INT signal and have Ruby's signal default handler be invoked (@shayonj)
+ - Fix warning about the use of `__FILE__` in RubyGems integration testing (@MSP-Greg)
+ - Skip the outdated bundler check when MD5 is not available ([#6032](https://github.com/bundler/bundler/issues/6032), @segiddins)
+ - Fallback to the original error if the friendly message raises (@segiddins)
+ - Rename Bundler.frozen? to avoid Object method conflict ([#6252](https://github.com/bundler/bundler/issues/6252), @segiddins)
+ - Ensure the bindir exists before installing gems (@segiddins)
+ - Handle gzip corruption errors in the compact index client ([#6261](https://github.com/bundler/bundler/issues/6261), @colby-swandale)
+ - Check if the current directory is writeable when writing files in `bundle gem` ([#6219](https://github.com/bundler/bundler/issues/6219), @nilsding)
+ - Fix hang when gemspec has incompatible encoding (@deivid-rodriguez)
+ - Gracefully handle when the lockfile is missing spec entries for the current platform ([#6079](https://github.com/bundler/bundler/issues/6079), @segiddins)
+ - Use Gem::Util.inflate instead of Gem.inflate (@hsbt)
+ - Update binstub generator to use new ERB.new arity in Ruby 2.6 (@koic)
+ - Fix `source_location` call in rubygems integration (@MSP-Greg)
+ - Use `filesystem_access` when copying files in Compact Index Updater ([#6289](https://github.com/bundler/bundler/issues/6289), @segiddins)
+ - Fail gracefully when resetting git gems to the given revision fails ([#6324](https://github.com/bundler/bundler/issues/6324), @segiddins)
+ - Handle exceptions that do not have a backtrace ([#6342](https://github.com/bundler/bundler/issues/6342), @nesaulov)
+ - Check if stderr was closed before writing to it (@shime)
+ - Handle updating a specific gem for a non-local platform ([#6350](https://github.com/bundler/bundler/issues/6350), @greysteil)
+ - Bump the `bundle_binstub` check-length to 300 characters (@tduffield)
+ - Fix specifying alterntive Lockfile with `bundle lock` when default gemfile is present ([#6460](https://github.com/bundler/bundler/issues/6460), @agrim123)
+ - Allow installing dependencies when the path is set to `.` ([#6475](https://github.com/bundler/bundler/issues/6475), @segiddins)
+ - Support Bundler installing on a readonly filesystem without a home directory ([#6461](https://github.com/bundler/bundler/issues/6461), @grosser)
+ - Filter git uri credentials in source description (@segiddins)
+
+Documentation:
+
+ - Correct typos in `bundle binstubs` man page (@erikj, @samueloph)
+ - Update links in `bundle gem` command documentation to use https (@KrauseFx)
+ - Fix broken links between bundler man pages (@segiddins)
+ - Add man page for the `bundle doctor` command ([#6243](https://github.com/bundler/bundler/issues/6243), @nholden)
+ - Document `# frozen_string_literal` in `bundle init` Gemfile (@315tky)
+ - Explain the gemspec files attribute in `bundle gem` template and print a link to bundler.io guides when running `bundle gem` ([#6246](https://github.com/bundler/bundler/issues/6246), @nesaulov)
+ - Small copy tweaks & removed redundant phrasing in the bundler man page (@rubymorillo)
+ - Improve the documentation of the settings load order in Bundler (@rubymorillo)
+ - Added license info to main README (@rubymorillo)
+ - Document parameters and return value of Injector#inject (@tobias-grasse)
+
## 1.16.1 (2017-12-12)
Bugfixes:
diff --git a/spec/install/gemspecs_spec.rb b/spec/install/gemspecs_spec.rb
index 78acc9efd8..35f96367f7 100644
--- a/spec/install/gemspecs_spec.rb
+++ b/spec/install/gemspecs_spec.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
# frozen_string_literal: true
RSpec.describe "bundle install" do
@@ -64,15 +65,15 @@ RSpec.describe "bundle install" do
end
it "reads gemspecs respecting their encoding" do
- skip "unicode constants are most likely not supported on 1.8" if RUBY_VERSION < "1.9"
+ skip "Unicode is not supported on Ruby 1.x without extra work" if RUBY_VERSION < "2.0"
- create_file("version.rb", <<-RUBY)
+ create_file "version.rb", <<-RUBY
module Persistent💎
VERSION = "0.0.1"
end
RUBY
- create_file("persistent-dmnd.gemspec", <<-G)
+ create_file "persistent-dmnd.gemspec", <<-G
require_relative "version"
Gem::Specification.new do |gem|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index f7a6b43d4b..56094b72f5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -28,12 +28,16 @@ require "bundler/vendored_fileutils"
require "uri"
require "digest"
-# Delete any copies of Bundler that have been dumped into site_ruby without
-# a gemspec. RubyGems cannot manage that Bundler, and so our tricks to make
-# sure that the correct version of Bundler loads will stop working.
+# Delete the default copy of Bundler that RVM installs for us when running in CI
require "fileutils"
-Dir.glob(File.join(RbConfig::CONFIG["sitelibdir"], "bundler*")).each do |file|
- FileUtils.rm_rf(file)
+if ENV.select {|k, _v| k =~ /TRAVIS/ }.any? && Gem::Version.new(Gem::VERSION) > Gem::Version.new("2.0")
+ Dir.glob(File.join(Gem::Specification.default_specifications_dir, "bundler*.gemspec")).each do |file|
+ FileUtils.rm_rf(file)
+ end
+
+ Dir.glob(File.join(RbConfig::CONFIG["sitelibdir"], "bundler*")).each do |file|
+ FileUtils.rm_rf(file)
+ end
end
if File.expand_path(__FILE__) =~ %r{([^\w/\.-])}