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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f5357b789f0c2d9ff84036539678bcb05fd59d5e7a7195dabdc04f8c7cda2d1
4
- data.tar.gz: 1cbe53e26dc74e0c026750e934fb6120aa3c539791fd4370977a54b077949403
3
+ metadata.gz: 9cda172cdc6721fb87d5fac30b0e31c4db44240f132cc85e89548e8603a336c9
4
+ data.tar.gz: c894a14414cc114850c2c20f6e5163c322d3cbacdc1c7fa3d5fb8f9e15bcfb67
5
5
  SHA512:
6
- metadata.gz: 13647177378b1b410372190bf69399a3de343a0dea476d0d5789cc188df55fd2f4228106505a0219a5ff45e238642fbad2eac22ac30f7f7f985c249fc2136060
7
- data.tar.gz: a8b4b6924b5e7d95665604d4a464397c4a388d008f1bdbee190e8c20e47a31c6c034191a95a8628d21ed315ddb5bf83c419248f5bdb66a10724d7eae11f1adef
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 = @sources.all_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
 
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrzej Bisewski