bundler-common_gemfile 0.0.7 → 0.0.8
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 +11 -10
- 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: 2fa3e3be0c91fdbce11997f1788f12840d0fabd5e71b8ee69151197998722550
|
4
|
+
data.tar.gz: 3e9fe08e5d6526e7834937018fd9701637a7d201e7025f23a7162c1bb5cd2a8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1b86c86452e74e73901b1ae46854a8aa51c5338b34c59231c6871c1d78d82c8fe33ce5d08256cbf131101e1d385930deefd36cd734a79345dbb5d466bee3281
|
7
|
+
data.tar.gz: cc5a9a96f31add6fd7a630bfd38fdb5b3c5fcb097c6e22fe17b0c1a3d0ce0f6e4d792aca6ed22a5d65685118666594fc8f13870a66cf4aabbcbb260cc6c9fece
|
@@ -1,26 +1,27 @@
|
|
1
1
|
module Bundler
|
2
2
|
class CommonGemfile
|
3
|
-
def self.load_other(context
|
3
|
+
def self.def load_other (context
|
4
|
+
)
|
4
5
|
evaled = []
|
5
6
|
|
6
7
|
while true
|
7
8
|
number_of_evaled = evaled.size
|
8
9
|
sources = context.instance_variable_get('@sources').all_sources
|
9
|
-
|
10
10
|
sources.select { |s| s.is_a?(Bundler::Source::Git) || s.is_a?(Bundler::Source::Path) }.each do |source|
|
11
|
+
|
11
12
|
source.instance_variable_set('@allow_cached', true)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
gem_path = if source.respond_to?('install_path')
|
14
|
+
source.install_path
|
15
|
+
else
|
16
|
+
source.expanded_original_path
|
17
|
+
end
|
18
|
+
|
19
|
+
gemfile_common_path = gem_path.join('Gemfile-common.rb')
|
18
20
|
|
19
21
|
if !File.exist?(gem_path) && source.is_a?(Bundler::Source::Git)
|
20
|
-
puts " fetching \e[1m\e[92m#{source.name}\e[0m"
|
22
|
+
puts " fetching \e[1m\e[92m#{source.name}\e[0m is search of common-gemfile"
|
21
23
|
source.specs
|
22
24
|
end
|
23
|
-
|
24
25
|
if !evaled.include?(gemfile_common_path) && File.exist?(gemfile_common_path)
|
25
26
|
evaled << gemfile_common_path
|
26
27
|
puts "Evaling \e[1m\e[92m#{gemfile_common_path}\e[0m"
|