bundler-common_gemfile 0.0.4 → 0.0.5
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 +6 -6
- 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: 483b7c8354e685a0dba1b962f97b784ac525a591f5c0cb036587e20dd8d8ce53
|
4
|
+
data.tar.gz: 399d3025430ca6ba1c9c2e70b43860dc2ee0be2f1647369911e29028c907007c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79c36c71be73d1c09f45afe7dde692e7414606e5ea8e99bd349a62f8bad6c1cd4e935b4db5d59e76058bf59942faa897da77998d02f8632595bb4b22c2fee7bf
|
7
|
+
data.tar.gz: 0afbac423e7ae3418d0fca3ee3196ed303a00e0429c2255c72820c5908684f2982395f38386fff8ac9327afef6394c8d403c96c77f1a8c2395df7dd2bff951e5
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module Bundler
|
2
2
|
class CommonGemfile
|
3
3
|
def self.load_other(context)
|
4
|
-
puts 'SUPER BUNDLER START'
|
5
4
|
evaled = []
|
6
5
|
|
7
6
|
while true
|
@@ -10,23 +9,24 @@ module Bundler
|
|
10
9
|
|
11
10
|
sources.select { |s| s.is_a?(Bundler::Source::Git) || s.is_a?(Bundler::Source::Path) }.each do |source|
|
12
11
|
source.instance_variable_set('@allow_cached', true)
|
13
|
-
# source.specs # dobre do odświerzenia cache bundlera
|
14
12
|
gemfile_common_path = if source.respond_to?('install_path')
|
15
13
|
source.install_path
|
16
|
-
# source.specs # (taki ala robi bundle install wtf XD, samo pobiera z gita)
|
17
14
|
else
|
18
15
|
source.path
|
19
16
|
end.join('Gemfile-common.rb')
|
17
|
+
gem_path = File.dirname(gemfile_common_path)
|
18
|
+
source.specs if !File.exist?(gem_path) && source.is_a?(Bundler::Source::Git)
|
19
|
+
|
20
20
|
if !evaled.include?(gemfile_common_path) && File.exist?(gemfile_common_path)
|
21
21
|
evaled << gemfile_common_path
|
22
|
-
|
23
|
-
|
22
|
+
puts "Evaling \e[1m\e[92m#{gemfile_common_path}\e[0m"
|
23
|
+
eval(File.read(gemfile_common_path), context.send(:binding))
|
24
|
+
puts "Evaling \e[1m\e[92m#{'done'}\e[0m"
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
27
28
|
break if evaled.size == number_of_evaled
|
28
29
|
end
|
29
|
-
puts 'SUPER BUNDLER END'
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|