bundler-multilock 1.2.0 → 1.2.2
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/check.rb +2 -1
- data/lib/bundler/multilock/ext/plugin/dsl.rb +1 -1
- data/lib/bundler/multilock/ext/source.rb +1 -1
- data/lib/bundler/multilock/lockfile_generator.rb +4 -0
- data/lib/bundler/multilock/version.rb +1 -1
- data/lib/bundler/multilock.rb +4 -3
- metadata +10 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa4ad7559633d79e55eea6f48aa41ea9c99d15449b7f10b702c109e066705dec
|
4
|
+
data.tar.gz: 4b99ab0309f3853dee89cf3571cee02e2d662ca97cda59e7945547fc5f5039bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba7be8c9ed956ef0235497812ab415b91541ac7e290c2a01e8418df10262bb3f7c9d19b0380ee69c44a62bed7c448fbf82ebeda6f282304b9a7966b51aacd23c
|
7
|
+
data.tar.gz: 46a9d5e61d28a8c0a1b70264a5dbfcf4d865bbc3ced72606287de22ddeb8ec76d40a65d2ca43efa0d70f93625a760a1c95d4879e75c4adf54a9e5efbe0c290e3
|
@@ -190,7 +190,8 @@ module Bundler
|
|
190
190
|
private
|
191
191
|
|
192
192
|
def cache_reverse_dependencies(lockfile)
|
193
|
-
|
193
|
+
# can use Gem::Requirement.default_prelease when Ruby 2.6 support is dropped
|
194
|
+
reverse_dependencies = Hash.new { |h, k| h[k] = Gem::Requirement.new(">= 0.a") }
|
194
195
|
|
195
196
|
lockfile.dependencies.each_value do |spec|
|
196
197
|
reverse_dependencies[spec.name].requirements.concat(spec.requirement.requirements)
|
data/lib/bundler/multilock.rb
CHANGED
@@ -60,11 +60,12 @@ module Bundler
|
|
60
60
|
raise ArgumentError, "Lockfile #{lockfile} is already defined"
|
61
61
|
end
|
62
62
|
|
63
|
-
env_lockfile = ENV["BUNDLE_LOCKFILE"]
|
63
|
+
env_lockfile = lockfile if active && ENV["BUNDLE_LOCKFILE"] == "active"
|
64
|
+
env_lockfile ||= ENV["BUNDLE_LOCKFILE"]&.then { |l| expand_lockfile(l) }
|
64
65
|
active = env_lockfile == lockfile if env_lockfile
|
65
66
|
|
66
67
|
if active && (old_active = lockfile_definitions.find { |definition| definition[:active] })
|
67
|
-
raise ArgumentError, "Only one lockfile (#{old_active[:lockfile]}) can be flagged as
|
68
|
+
raise ArgumentError, "Only one lockfile (#{old_active[:lockfile]}) can be flagged as active"
|
68
69
|
end
|
69
70
|
|
70
71
|
parent = expand_lockfile(parent)
|
@@ -313,7 +314,7 @@ module Bundler
|
|
313
314
|
end
|
314
315
|
return unless default_lockfile_definition && default_lockfile_definition[:active] == false
|
315
316
|
|
316
|
-
raise GemfileEvalError, "No lockfiles marked as
|
317
|
+
raise GemfileEvalError, "No lockfiles marked as active"
|
317
318
|
end
|
318
319
|
|
319
320
|
# @!visibility private
|
metadata
CHANGED
@@ -1,43 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-multilock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.4.19
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.6'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 2.4.19
|
27
|
-
-
|
28
|
-
name: debug
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
30
|
+
- - "<"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.8'
|
32
|
+
version: '2.6'
|
41
33
|
- !ruby/object:Gem::Dependency
|
42
34
|
name: rake
|
43
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,48 +58,6 @@ dependencies:
|
|
66
58
|
- - "~>"
|
67
59
|
- !ruby/object:Gem::Version
|
68
60
|
version: '3.12'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop-inst
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.6'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.6'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '2.24'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '2.24'
|
111
61
|
description:
|
112
62
|
email:
|
113
63
|
executables: []
|
@@ -140,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
90
|
requirements:
|
141
91
|
- - ">="
|
142
92
|
- !ruby/object:Gem::Version
|
143
|
-
version: '2.
|
93
|
+
version: '2.6'
|
144
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
95
|
requirements:
|
146
96
|
- - ">="
|