bundler-multilock 2.0.0.beta6 → 2.0.0.beta8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bdc44af5344eed4edb2782c151e3ab714450bcd81003130fba1385247c227da
4
- data.tar.gz: 77391ab3ec993404d7363736accb18921c8d1c5190c2609a3bf45e4e950c6f3f
3
+ metadata.gz: c81d004914142833ca88a6ff646bba7c400aa93d0d5f259dcfb50b2e110d2cce
4
+ data.tar.gz: 56250a73a64e042bd8fac5d45bf9f538c014083903a19cc01e95835e39db7e7d
5
5
  SHA512:
6
- metadata.gz: 38436b8ee5d0096b5387da472d11a543158dcb884143cbbd9cf8acf9f9dd76e91a644ffb4b3fcdadeb7768b7b0f87f5597531060633fdc1dca92c8893adc31eb
7
- data.tar.gz: aad7cd30a4f7ef60aff473d0ac763dab63f33f7dbfddceb2b18748563294d9d49f414f44f067ec2bfe482edee9925a4242f0a34f5dbc0de0d4053564a1661fa7
6
+ metadata.gz: 4b1414b3f464fee6dea314e7f1c7731ca8898fd0b3ac6740387582bbb75b13293397c43c269f2f0edf7f7a3baaa31152b6207554bc4465fbe451c6ecd304a5cb
7
+ data.tar.gz: dba5dc91abba869c04efa354ac2e24f17493e0c572ec6d76769c1ab382e968ae200646516bfe72d13cd0f2101d188b54ac52ffb14632bcc749b0c15debc62acd
@@ -117,7 +117,18 @@ module Bundler
117
117
  if source.respond_to?(:migrate_cache)
118
118
  source.migrate_cache(custom_path, local: false)
119
119
  elsif source.respond_to?(:cache)
120
- source.cache(spec, custom_path)
120
+ # like Bundler, leave path gems that are inside the project alone, even when they're
121
+ # outside the directory of the Gemfile that declared them
122
+ next if source.instance_of?(::Bundler::Source::Path) &&
123
+ source.send(:expanded_original_path).to_s.start_with?("#{Bundler.root}/")
124
+
125
+ if source.respond_to?(:root_path) && source.root_path.exist?
126
+ # (it also memoizes the cache path while Bundler.root is that Gemfile's directory)
127
+ source.instance_variable_set(:@app_cache_path, cache_path.join(source.app_cache_dirname))
128
+ Dir.chdir(source.root_path) { source.cache(spec, custom_path) }
129
+ else
130
+ source.cache(spec, custom_path)
131
+ end
121
132
  end
122
133
  end
123
134
  end
@@ -45,6 +45,10 @@ module Bundler
45
45
  __getobj__
46
46
  end
47
47
 
48
+ def overrides_to_lock
49
+ Array(overrides).map(&:to_lock).uniq
50
+ end
51
+
48
52
  def bundler_version_to_lock
49
53
  bundler_version
50
54
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bundler
4
4
  module Multilock
5
- VERSION = "2.0.0.beta6"
5
+ VERSION = "2.0.0.beta8"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-multilock
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta6
4
+ version: 2.0.0.beta8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure
@@ -15,7 +15,7 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 4.1.0.beta2
18
+ version: 4.1.0.beta3
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '4.2'
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 4.1.0.beta2
28
+ version: 4.1.0.beta3
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
31
  version: '4.2'