bundler-multilock 2.0.0.beta7 → 2.0.0.beta9
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 +4 -4
- data/lib/bundler/multilock/ext/runtime.rb +12 -1
- data/lib/bundler/multilock/version.rb +1 -1
- data/lib/bundler/multilock.rb +13 -1
- 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: 7638f29bbcc3dd402436bbb09e5bf9eb9e9772116b03f99435ce71dda9831982
|
|
4
|
+
data.tar.gz: 39c5e02d886c8620b6d6cdbab2637dac724b67a8f8075da4211c8f468e4291f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d6222fefb962f8f65de158bd773459adb01e6426dda294d3134c9709c2cf0c58d7dfdf08e85da357e6a40c7c1479784b5743be47013838e91e50b466fb8f667
|
|
7
|
+
data.tar.gz: 50e0fe5048620037e78239a964628b88d44ec1ac7403053aa552939fbf738bba84ba6f27adb39f147e9e61e5e4cfcfc995e6ff933bb2ff32051affc88acb5d69
|
|
@@ -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
|
-
|
|
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
|
data/lib/bundler/multilock.rb
CHANGED
|
@@ -924,6 +924,16 @@ module Bundler
|
|
|
924
924
|
CLI.instance
|
|
925
925
|
end
|
|
926
926
|
|
|
927
|
+
# @!visibility private
|
|
928
|
+
# Whether plugins.rb is being loaded by `bundle plugin install` (or a
|
|
929
|
+
# Gemfile's `plugin` command), as opposed to being loaded from the plugin
|
|
930
|
+
# index for some other bundle command
|
|
931
|
+
def installing_plugin?
|
|
932
|
+
caller_locations.any? do |location|
|
|
933
|
+
location.base_label == "register_plugin" && location.path.end_with?("bundler/plugin.rb")
|
|
934
|
+
end
|
|
935
|
+
end
|
|
936
|
+
|
|
927
937
|
# @!visibility private
|
|
928
938
|
def cli_loaded?
|
|
929
939
|
Bundler.autoload?(:CLI).nil? && !defined?(Bundler::CLI).nil?
|
|
@@ -1226,7 +1236,9 @@ module Bundler
|
|
|
1226
1236
|
end
|
|
1227
1237
|
end
|
|
1228
1238
|
|
|
1229
|
-
Bundler::Multilock
|
|
1239
|
+
if Bundler::Multilock.installing_plugin? && !Bundler::Multilock.loaded? && !Bundler.frozen_bundle?
|
|
1240
|
+
Bundler::Multilock::Preamble.inject
|
|
1241
|
+
end
|
|
1230
1242
|
|
|
1231
1243
|
if Bundler::Multilock.cli_loaded?
|
|
1232
1244
|
require_relative "multilock/ext/cli"
|