bundler-multilock 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundler/multilock/version.rb +1 -1
- data/lib/bundler/multilock.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8dbbb09ada32b32ccfdb9dcab07a0d4a2c2a075abac7aba4544946f49ee159b
|
4
|
+
data.tar.gz: c3309600b53071ae9bcd3982153f591386bb9865879eb4eebf7ff3b031ed29a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d774d8d1e1ca350966bda2d30f7200d5d96473dcc67572d1a8dd54ba596de31972269ae1278447eb5305899e8d5afb9289e9356923c6ea9a3b9afd15c188f3
|
7
|
+
data.tar.gz: 9762a7b102a14d56cf5cea40667a3d7d0ec54db20bccd8d0979a91eadce1033ce60b4c9574eeb6a789a3d2f6769bc53908f296ec5c2ef03b5bf717b6ae118923
|
data/lib/bundler/multilock.rb
CHANGED
@@ -55,10 +55,6 @@ module Bundler
|
|
55
55
|
lockfile = Bundler.root.join(lockfile).expand_path if lockfile
|
56
56
|
# use the default lockfile (Gemfile.lock) if none was given
|
57
57
|
lockfile ||= Bundler.default_lockfile(force_original: true)
|
58
|
-
if current && (old_current = lockfile_definitions.find { |definition| definition[:current] })
|
59
|
-
raise ArgumentError, "Only one lockfile (#{old_current[:lockfile]}) can be flagged as the default"
|
60
|
-
end
|
61
|
-
|
62
58
|
raise ArgumentError, "Lockfile #{lockfile} is already defined" if lockfile_definitions.any? do |definition|
|
63
59
|
definition[:lockfile] == lockfile
|
64
60
|
end
|
@@ -72,6 +68,10 @@ module Bundler
|
|
72
68
|
current = env_lockfile == lockfile
|
73
69
|
end
|
74
70
|
|
71
|
+
if current && (old_current = lockfile_definitions.find { |definition| definition[:current] })
|
72
|
+
raise ArgumentError, "Only one lockfile (#{old_current[:lockfile]}) can be flagged as the default"
|
73
|
+
end
|
74
|
+
|
75
75
|
lockfile_definitions << (lockfile_def = {
|
76
76
|
gemfile: (gemfile && Bundler.root.join(gemfile).expand_path) || Bundler.default_gemfile,
|
77
77
|
lockfile: lockfile,
|
@@ -275,6 +275,8 @@ module Bundler
|
|
275
275
|
end
|
276
276
|
end
|
277
277
|
end
|
278
|
+
ensure
|
279
|
+
Bundler.root = default_root
|
278
280
|
end
|
279
281
|
|
280
282
|
exit 1 unless checker.run(skip_base_checks: !synced_any)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-multilock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|