bundler-common_gemfile 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundler-common_gemfile.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5062c0f67e6f5381f5c1d68c1811399ae536a97e1126f3f950f2fa987b55b981
|
4
|
+
data.tar.gz: cb006c43e41baa6cbf365c225d5816e60a39c1255bf469750032885f60f97773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed3231710c451d0fcd007912c5d57c132694a3bb1a57708b99474f33a92338d766db7f00283a7b16ca442b18569a8eca047e0202ebc1cfba901db90b54d30670
|
7
|
+
data.tar.gz: 111ab1307f173ca038150fd5be94f8cf1b78e75082ccdf5117c90fc90f1cfbe528b9709ae81b082345e5f9f88d11b55bd3a410ed72a37cb5ba182211654d1b51
|
@@ -39,15 +39,17 @@ module Bundler
|
|
39
39
|
sources = context.instance_variable_get('@sources').all_sources
|
40
40
|
|
41
41
|
sources.select { |s| s.is_a?(::Bundler::Source::Git) || s.is_a?(::Bundler::Source::Path) }.each do |source|
|
42
|
-
source.instance_variable_set('@
|
42
|
+
source.instance_variable_set('@allow_remote', true) # allow git commands
|
43
|
+
|
43
44
|
gem_path = if source.respond_to?('install_path')
|
44
45
|
source.install_path # remote gem
|
45
46
|
else
|
46
47
|
source.expanded_original_path # local gem
|
47
48
|
end
|
49
|
+
source.instance_variable_set('@install_path', nil) # unset
|
48
50
|
|
49
|
-
if !File.exist?(gem_path) && source.is_a?(Bundler::Source::Git)
|
50
|
-
puts "
|
51
|
+
if !File.exist?(gem_path) && source.is_a?(::Bundler::Source::Git)
|
52
|
+
puts "Fetching #{source.name.to_s.green.bold} in search of common-gemfile"
|
51
53
|
source.specs
|
52
54
|
end
|
53
55
|
|