зеркало из https://github.com/github/ruby.git
Switch to 2-0-stable branch of bundler/bundler repository from our fork repository.
https://github.com/bundler/bundler/tree/2-0-stable git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f632ecd0ff
Коммит
3ec3d7d943
|
@ -49,7 +49,16 @@ Gem::Specification.new do |s|
|
|||
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
|
||||
|
|
|
@ -12,7 +12,7 @@ RSpec.describe Bundler::SSLCerts::CertificateManager do
|
|||
# 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::CertificateManager do
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# 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
|
||||
|
|
|
@ -28,7 +28,6 @@ require "bundler/vendored_fileutils"
|
|||
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|
|
|||
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|
|
|||
Dir.chdir(original_wd)
|
||||
ENV.replace(original_env)
|
||||
end
|
||||
|
||||
config.after :suite do
|
||||
Gem.ruby = @orig_ruby if ENV["BUNDLE_RUBY"]
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче