ruby-changes:53555
From: hsbt <ko1@a...>
Date: Sat, 17 Nov 2018 08:27:49 +0900 (JST)
Subject: [ruby-changes:53555] hsbt:r65770 (trunk): Switch to 2-0-stable branch of bundler/bundler repository from our fork repository.
hsbt 2018-11-17 08:27:37 +0900 (Sat, 17 Nov 2018) New Revision: 65770 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65770 Log: Switch to 2-0-stable branch of bundler/bundler repository from our fork repository. https://github.com/bundler/bundler/tree/2-0-stable Modified files: trunk/lib/bundler.gemspec trunk/spec/bundler/bundler/ssl_certs/certificate_manager_spec.rb trunk/spec/bundler/other/bundle_ruby_spec.rb trunk/spec/bundler/spec_helper.rb Index: spec/bundler/bundler/ssl_certs/certificate_manager_spec.rb =================================================================== --- spec/bundler/bundler/ssl_certs/certificate_manager_spec.rb (revision 65769) +++ spec/bundler/bundler/ssl_certs/certificate_manager_spec.rb (revision 65770) @@ -12,7 +12,7 @@ RSpec.describe Bundler::SSLCerts::Certif https://github.com/ruby/ruby/blob/trunk/spec/bundler/bundler/ssl_certs/certificate_manager_spec.rb#L12 # Pretend bundler root is rubygems root before do # Backing up rubygems ceriticates - FileUtils.mv(rubygems_certs_dir, rubygems_certs_dir + ".back") if ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"] + FileUtils.mv(rubygems_certs_dir, rubygems_certs_dir + ".back") if ruby_core? FileUtils.mkdir_p(rubygems_certs_dir) FileUtils.touch(stub_cert) @@ -22,7 +22,7 @@ RSpec.describe Bundler::SSLCerts::Certif https://github.com/ruby/ruby/blob/trunk/spec/bundler/bundler/ssl_certs/certificate_manager_spec.rb#L22 FileUtils.rm_rf(rubygems_certs_dir) # Restore rubygems certificates - FileUtils.mv(rubygems_certs_dir + ".back", rubygems_certs_dir) if ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"] + FileUtils.mv(rubygems_certs_dir + ".back", rubygems_certs_dir) if ruby_core? end describe "#update_from" do Index: spec/bundler/spec_helper.rb =================================================================== --- spec/bundler/spec_helper.rb (revision 65769) +++ spec/bundler/spec_helper.rb (revision 65770) @@ -28,7 +28,6 @@ require "bundler/vendored_fileutils" https://github.com/ruby/ruby/blob/trunk/spec/bundler/spec_helper.rb#L28 require "uri" require "digest" - # Delete the default copy of Bundler that RVM installs for us when running in CI require "fileutils" if ENV.select {|k, _v| k =~ /TRAVIS/ }.any? && Gem::Version.new(Gem::VERSION) > Gem::Version.new("2.0") @@ -123,11 +122,13 @@ RSpec.configure do |config| https://github.com/ruby/ruby/blob/trunk/spec/bundler/spec_helper.rb#L122 c.syntax = :expect end - config.before :suite do + config.around :each do |example| if ENV["BUNDLE_RUBY"] - @orig_ruby = Gem.ruby + orig_ruby = Gem.ruby Gem.ruby = ENV["BUNDLE_RUBY"] end + example.run + Gem.ruby = orig_ruby if ENV["BUNDLE_RUBY"] end config.before :all do @@ -154,8 +155,4 @@ RSpec.configure do |config| https://github.com/ruby/ruby/blob/trunk/spec/bundler/spec_helper.rb#L155 Dir.chdir(original_wd) ENV.replace(original_env) end - - config.after :suite do - Gem.ruby = @orig_ruby if ENV["BUNDLE_RUBY"] - end end Index: spec/bundler/other/bundle_ruby_spec.rb =================================================================== --- spec/bundler/other/bundle_ruby_spec.rb (revision 65769) +++ spec/bundler/other/bundle_ruby_spec.rb (revision 65770) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/spec/bundler/other/bundle_ruby_spec.rb#L1 # frozen_string_literal: true -RSpec.describe "bundle_ruby", :ruby_repo, :bundler => "< 3" do +RSpec.describe "bundle_ruby", :bundler => "< 3" do context "without patchlevel" do it "returns the ruby version" do gemfile <<-G Index: lib/bundler.gemspec =================================================================== --- lib/bundler.gemspec (revision 65769) +++ lib/bundler.gemspec (revision 65770) @@ -49,7 +49,16 @@ Gem::Specification.new do |s| https://github.com/ruby/ruby/blob/trunk/lib/bundler.gemspec#L49 s.add_development_dependency "ronn", "~> 0.7.3" s.add_development_dependency "rspec", "~> 3.6" + # s.files = `git ls-files -z`.split("\x0").select {|f| f.match(%r{^(lib|exe)/}) } + # we don't check in man pages, but we need to ship them because + # we use them to generate the long-form help for each command. + # s.files += Dir.glob("man/**/*") + # Include the CHANGELOG.md, LICENSE.md, README.md manually + # s.files += %w[CHANGELOG.md LICENSE.md README.md] + # include the gemspec itself because warbler breaks w/o it s.files += %w[bundler.gemspec] + # s.bindir = "exe" + # s.executables = %w[bundle bundler] s.require_paths = ["lib"] end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/