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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c84016021b1c7595a4e796a80de94d7df2160f016c4bdc286f1616c61bb09170
4
- data.tar.gz: 8b8ed6c345db6beb1fdf681e603ffee395d39459fc5a81982f1457876bea4037
3
+ metadata.gz: aa4ad7559633d79e55eea6f48aa41ea9c99d15449b7f10b702c109e066705dec
4
+ data.tar.gz: 4b99ab0309f3853dee89cf3571cee02e2d662ca97cda59e7945547fc5f5039bb
5
5
  SHA512:
6
- metadata.gz: 4eb1334a6a9860cea9fbb7ece25741bc35f9dd3e44ab6a17bbf041998116445acf53173a7372f6c1f19dedf1538f1bccc0db859123493b5addae86d134f81146
7
- data.tar.gz: 6bc840a4f41344443609f00447e87c95a89eab942446b5dd2598e55bcd15a79a7fcdb3952a4e417ce7664e50316073defdb627bba2da1b886323c0d92292d345
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
- reverse_dependencies = Hash.new { |h, k| h[k] = Gem::Requirement.default_prerelease }
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)
@@ -7,7 +7,7 @@ module Bundler
7
7
  module DSL
8
8
  ::Bundler::Plugin::DSL.include(self)
9
9
 
10
- def lockfile(...)
10
+ def lockfile(*, **)
11
11
  # pass
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@ module Bundler
6
6
  module Source
7
7
  ::Bundler::Source.prepend(self)
8
8
 
9
- def print_using_message(...)
9
+ def print_using_message(*)
10
10
  return if Bundler.settings[:suppress_install_using_messages]
11
11
 
12
12
  super
@@ -32,6 +32,10 @@ module Bundler
32
32
  def locked_ruby_version
33
33
  ruby_version
34
34
  end
35
+
36
+ def locked_checksums
37
+ checksums
38
+ end
35
39
  end
36
40
 
37
41
  private_constant :LockfileAdapter
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bundler
4
4
  module Multilock
5
- VERSION = "1.2.0"
5
+ VERSION = "1.2.2"
6
6
  end
7
7
  end
@@ -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"]&.then { |l| expand_lockfile(l) }
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 the default"
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 default"
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.0
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: 2023-10-10 00:00:00.000000000 Z
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
- - !ruby/object:Gem::Dependency
28
- name: debug
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
30
+ - - "<"
32
31
  - !ruby/object:Gem::Version
33
- version: '1.8'
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.7'
93
+ version: '2.6'
144
94
  required_rubygems_version: !ruby/object:Gem::Requirement
145
95
  requirements:
146
96
  - - ">="