bundler-common_gemfile 0.0.2 → 0.0.3
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 +3 -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: 9cda172cdc6721fb87d5fac30b0e31c4db44240f132cc85e89548e8603a336c9
|
4
|
+
data.tar.gz: c894a14414cc114850c2c20f6e5163c322d3cbacdc1c7fa3d5fb8f9e15bcfb67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 602308737eb23be02a2f236bc9b576da9d72addcdc4fd3db8df8ffc812b00e7743412ac53beae21f0863fb76a890a7c7c5b8f1c90bf8f88d91563d0bd1f9453d
|
7
|
+
data.tar.gz: 23ce5ff247e648ea96d226b7b3c5740b2b45183bdc755056b80019366c807c60a346fc7334d6a9fe3de785c1543b90ffbc7833b43ebb18b6e5c3b0a37d4dd596
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Bundler
|
2
2
|
class CommonGemfile
|
3
|
-
def self.load_other
|
3
|
+
def self.load_other(context)
|
4
4
|
puts 'SUPER BUNDLER START'
|
5
5
|
evaled = []
|
6
6
|
|
7
7
|
while true
|
8
8
|
number_of_evaled = evaled.size
|
9
|
-
sources =
|
9
|
+
sources = context.instance_variable_get('sources').all_sources
|
10
10
|
|
11
11
|
sources.select { |s| s.is_a?(Bundler::Source::Git) || s.is_a?(Bundler::Source::Path) }.each do |source|
|
12
12
|
source.instance_variable_set('@allow_cached', true)
|
@@ -20,7 +20,7 @@ module Bundler
|
|
20
20
|
if !evaled.include?(gemfile_common_path) && File.exist?(gemfile_common_path)
|
21
21
|
evaled << gemfile_common_path
|
22
22
|
# eval_gemfile(gemfile_common_path) # ('', content)
|
23
|
-
eval(File.read(gemfile_common_path))
|
23
|
+
context.eval(File.read(gemfile_common_path))
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|