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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52c642a330e453eee7d2eca8831181656f1792580cbd1bba2e51cb3a647859a6
4
- data.tar.gz: 80ac14d753990cb1ca20b57ee77da2f2b1833bdfd7e8da32a6ed66c2f3c896f6
3
+ metadata.gz: 483b7c8354e685a0dba1b962f97b784ac525a591f5c0cb036587e20dd8d8ce53
4
+ data.tar.gz: 399d3025430ca6ba1c9c2e70b43860dc2ee0be2f1647369911e29028c907007c
5
5
  SHA512:
6
- metadata.gz: 006feb4ac12040db32ac2159f040bd43942a46552705afb34fa8eb4f86c249d52f112f36d68fcc1a15f9a51bdd5ecea9f8f8553c2a6732001c790c1eecc42ec3
7
- data.tar.gz: f826b92abe868331bfdc1ed7208c0b99b0e527c692adefff6fffbb428b1ce85b30cd47bc11833a74016e50fe6da7cdb2286d4c9b63d555c1020cdb008510cdcc
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
- # eval_gemfile(gemfile_common_path) # ('', content)
23
- context.eval(File.read(gemfile_common_path))
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-common_gemfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrzej Bisewski