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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bundler-common_gemfile.rb +11 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a07f918c87b73fcf5ea8099212fa5cf65791df0f32d5ae9845f854311bfc5f36
4
- data.tar.gz: 410d0310eb18455764241a49d24973ebb7c253d8e12ede2e0f55d2210355a046
3
+ metadata.gz: 2fa3e3be0c91fdbce11997f1788f12840d0fabd5e71b8ee69151197998722550
4
+ data.tar.gz: 3e9fe08e5d6526e7834937018fd9701637a7d201e7025f23a7162c1bb5cd2a8f
5
5
  SHA512:
6
- metadata.gz: f392d9e658518444779269c68a12102ca736e9aa49a37011be735b3fb02078f8a74df5a9fb03c15aede6b2c1ebfd33deb425bc9996bb50bbe72b4551e89c0dda
7
- data.tar.gz: bc13e38f9b87390ba171030ec647769955f5756839802688b691da89436d6e7dd35757663e28507166394d4404ca173b66c25faa9e938b0559abe42698dce8ac
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
- gemfile_common_path = if source.respond_to?('install_path')
13
- source.install_path
14
- else
15
- source.path
16
- end.join('Gemfile-common.rb')
17
- gem_path = File.dirname(gemfile_common_path)
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"
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrzej Bisewski