mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge Bundler 2.1.0.pre.1 as developed version from upstream.
a53709556b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d636809c05
commit
68ddd4d300
290 changed files with 5820 additions and 6161 deletions
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe "global gem caching" do
|
||||
before { bundle! "config global_gem_cache true" }
|
||||
before { bundle! "config set global_gem_cache true" }
|
||||
|
||||
describe "using the cross-application user cache" do
|
||||
let(:source) { "http://localgemserver.test" }
|
||||
|
@ -112,7 +112,7 @@ RSpec.describe "global gem caching" do
|
|||
expect(source_global_cache("rack-1.0.0.gem")).to exist
|
||||
expect(source2_global_cache("rack-0.9.1.gem")).to exist
|
||||
bundle :install, :artifice => "compact_index_no_gem"
|
||||
expect(out).to include("Internal Server Error 500")
|
||||
expect(err).to include("Internal Server Error 500")
|
||||
# rack 1.0.0 is not installed and rack 0.9.1 is not
|
||||
expect(the_bundle).not_to include_gems "rack 1.0.0"
|
||||
expect(the_bundle).not_to include_gems "rack 0.9.1"
|
||||
|
@ -125,7 +125,7 @@ RSpec.describe "global gem caching" do
|
|||
expect(source_global_cache("rack-1.0.0.gem")).to exist
|
||||
expect(source2_global_cache("rack-0.9.1.gem")).to exist
|
||||
bundle :install, :artifice => "compact_index_no_gem"
|
||||
expect(out).to include("Internal Server Error 500")
|
||||
expect(err).to include("Internal Server Error 500")
|
||||
# rack 0.9.1 is not installed and rack 1.0.0 is not
|
||||
expect(the_bundle).not_to include_gems "rack 0.9.1"
|
||||
expect(the_bundle).not_to include_gems "rack 1.0.0"
|
||||
|
@ -187,7 +187,7 @@ RSpec.describe "global gem caching" do
|
|||
end
|
||||
end
|
||||
|
||||
describe "extension caching", :ruby_repo, :rubygems => "2.2" do
|
||||
describe "extension caching", :ruby_repo do
|
||||
it "works" do
|
||||
build_git "very_simple_git_binary", &:add_c_extension
|
||||
build_lib "very_simple_path_binary", &:add_c_extension
|
||||
|
@ -220,7 +220,7 @@ RSpec.describe "global gem caching" do
|
|||
gem_binary_cache.join("very_simple_binary_c.rb").open("w") {|f| f << "puts File.basename(__FILE__)" }
|
||||
git_binary_cache.join("very_simple_git_binary_c.rb").open("w") {|f| f << "puts File.basename(__FILE__)" }
|
||||
|
||||
bundle! "config --local path different_path"
|
||||
bundle! "config set --local path different_path"
|
||||
bundle! :install
|
||||
|
||||
expect(Dir[home(".bundle", "cache", "extensions", "**", "*binary_c*")]).to all(end_with(".rb"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue