bundler 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bundler/build_metadata.rb +2 -2
- data/lib/bundler/dependency.rb +4 -0
- data/lib/bundler/dsl.rb +12 -7
- data/lib/bundler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b424116a8722a58d7872569da843f8d82e59165e44d7016c9e3160b4e5c7e17
|
4
|
+
data.tar.gz: e3d151c03cb0b9e31087992dec6cec17d67b4b309019c49d9b44c729fd3bfcf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021372d2550752a3c9d097d623ac19d4e825099af77c0eeadd040958ce3ad4746d7766e8cea0e211562df1162b7dc29718a2bc2fa8d19d5b7de3d8e6421bb55e
|
7
|
+
data.tar.gz: 8f910b4a4404f5bd8e8e222e446277d7943afff9aa756ba5921476e9b3a3f2321ae9998c68c5ad73cf2b96473f12e4e69625f5aa47b0f3fa14f5c4bffad2c58a
|
data/CHANGELOG.md
CHANGED
@@ -4,8 +4,8 @@ module Bundler
|
|
4
4
|
# Represents metadata from when the Bundler gem was built.
|
5
5
|
module BuildMetadata
|
6
6
|
# begin ivars
|
7
|
-
@built_at = "2023-12-
|
8
|
-
@git_commit_sha = "
|
7
|
+
@built_at = "2023-12-22".freeze
|
8
|
+
@git_commit_sha = "a04f70b115".freeze
|
9
9
|
@release = true
|
10
10
|
# end ivars
|
11
11
|
|
data/lib/bundler/dependency.rb
CHANGED
data/lib/bundler/dsl.rb
CHANGED
@@ -103,16 +103,21 @@ module Bundler
|
|
103
103
|
# if there's already a dependency with this name we try to prefer one
|
104
104
|
if current = @dependencies.find {|d| d.name == dep.name }
|
105
105
|
# Always prefer the dependency from the Gemfile
|
106
|
-
|
106
|
+
@dependencies.delete(current) if current.gemspec_dev_dep?
|
107
107
|
|
108
108
|
if current.requirement != dep.requirement
|
109
109
|
current_requirement_open = current.requirements_list.include?(">= 0")
|
110
110
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
111
|
+
gemspec_dep = [dep, current].find(&:gemspec_dev_dep?)
|
112
|
+
if gemspec_dep
|
113
|
+
gemfile_dep = [dep, current].find(&:runtime?)
|
114
|
+
|
115
|
+
unless current_requirement_open
|
116
|
+
Bundler.ui.warn "A gemspec development dependency (#{gemspec_dep.name}, #{gemspec_dep.requirement}) is being overridden by a Gemfile dependency (#{gemfile_dep.name}, #{gemfile_dep.requirement}).\n" \
|
117
|
+
"This behaviour may change in the future. Please remove either of them, or make sure they both have the same requirement\n"
|
115
118
|
end
|
119
|
+
|
120
|
+
return if dep.gemspec_dev_dep?
|
116
121
|
else
|
117
122
|
update_prompt = ""
|
118
123
|
|
@@ -130,8 +135,8 @@ module Bundler
|
|
130
135
|
"You specified: #{current.name} (#{current.requirement}) and #{dep.name} (#{dep.requirement})" \
|
131
136
|
"#{update_prompt}"
|
132
137
|
end
|
133
|
-
elsif current.
|
134
|
-
return if
|
138
|
+
elsif current.gemspec_dev_dep? || dep.gemspec_dev_dep?
|
139
|
+
return if dep.gemspec_dev_dep?
|
135
140
|
elsif current.source != dep.source
|
136
141
|
raise GemfileError, "You cannot specify the same gem twice coming from different sources.\n" \
|
137
142
|
"You specified that #{dep.name} (#{dep.requirement}) should come from " \
|
data/lib/bundler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -22,7 +22,7 @@ authors:
|
|
22
22
|
autorequire:
|
23
23
|
bindir: exe
|
24
24
|
cert_chain: []
|
25
|
-
date: 2023-12-
|
25
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
26
26
|
dependencies: []
|
27
27
|
description: Bundler manages an application's dependencies through its entire life,
|
28
28
|
across many machines, systematically and repeatably
|
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
398
398
|
- !ruby/object:Gem::Version
|
399
399
|
version: 3.2.3
|
400
400
|
requirements: []
|
401
|
-
rubygems_version: 3.5.
|
401
|
+
rubygems_version: 3.5.3
|
402
402
|
signing_key:
|
403
403
|
specification_version: 4
|
404
404
|
summary: The best way to manage your application's dependencies
|