[前][次][番号順一覧][スレッド一覧]

ruby-changes:57777

From: Samuel <ko1@a...>
Date: Wed, 18 Sep 2019 18:36:38 +0900 (JST)
Subject: [ruby-changes:57777] 4f2f6aeb5f (master): [bundler/bundler] Add a spec for installing git deps after packaging w/o git

https://git.ruby-lang.org/ruby.git/commit/?id=4f2f6aeb5f

From 4f2f6aeb5fa65a10c633d92fcdd1980d42a6d745 Mon Sep 17 00:00:00 2001
From: Samuel Giddins <segiddins@s...>
Date: Fri, 20 Oct 2017 13:55:04 -0500
Subject: [bundler/bundler] Add a spec for installing git deps after packaging
 w/o git

https://github.com/bundler/bundler/commit/65351c58b8

diff --git a/spec/bundler/cache/git_spec.rb b/spec/bundler/cache/git_spec.rb
index 85d1d29..1cb278e 100644
--- a/spec/bundler/cache/git_spec.rb
+++ b/spec/bundler/cache/git_spec.rb
@@ -220,5 +220,22 @@ end https://github.com/ruby/ruby/blob/trunk/spec/bundler/cache/git_spec.rb#L220
       gemspec = bundled_app("vendor/cache/foo-1.0-#{ref}/foo.gemspec").read
       expect(gemspec).to_not match("`echo bob`")
     end
+
+    it "can install after #{cmd} with git not installed" do
+      build_git "foo"
+
+      gemfile <<-G
+        gem "foo", :git => '#{lib_path("foo-1.0")}'
+      G
+      bundle! "config set cache_all true"
+      bundle! cmd, "all-platforms" => true, :install => false, :path => "./vendor/cache"
+
+      simulate_new_machine
+      with_path_as "" do
+        bundle! "config set deployment true"
+        bundle! :install, :local => true
+        expect(the_bundle).to include_gem "foo 1.0"
+      end
+    end
   end
 end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]