dependabot-common 0.113.4 → 0.113.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/update_checkers/base.rb +11 -5
- data/lib/dependabot/version.rb +1 -1
- 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: 95e256e79a2e6e9c69478b3376219b4a6b27e4a2ec1671f2691832f442a9c242
|
4
|
+
data.tar.gz: 0c96f62c27f3b417f43535eaf171bffe84d1e1572a26ba839c314e0803239b94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15ba9bcb6be0042e8f9054b79a27aa14abd64d0c36f0c449d3c1e46c5d46bbfea6908e668232c61bf9939a0a3e4102bef597d4b94a5f2c63b1bd70ef881b874e
|
7
|
+
data.tar.gz: e575e120631013b83ba68eeca53a86ff9d44f7758a9c924b8d517993579c4ff6c59cbb2913026b17cc03de07ed068003c16148d37eed392420ab269b4446f2da
|
@@ -84,7 +84,7 @@ module Dependabot
|
|
84
84
|
raise NotImplementedError
|
85
85
|
end
|
86
86
|
|
87
|
-
def latest_resolvable_previous_version
|
87
|
+
def latest_resolvable_previous_version(_updated_version)
|
88
88
|
dependency.version
|
89
89
|
end
|
90
90
|
|
@@ -128,22 +128,28 @@ module Dependabot
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def updated_dependency_without_unlock
|
131
|
+
version = latest_resolvable_version_with_no_unlock.to_s
|
132
|
+
previous_version = latest_resolvable_previous_version(version)&.to_s
|
133
|
+
|
131
134
|
Dependency.new(
|
132
135
|
name: dependency.name,
|
133
|
-
version:
|
136
|
+
version: version,
|
134
137
|
requirements: dependency.requirements,
|
135
|
-
previous_version:
|
138
|
+
previous_version: previous_version,
|
136
139
|
previous_requirements: dependency.requirements,
|
137
140
|
package_manager: dependency.package_manager
|
138
141
|
)
|
139
142
|
end
|
140
143
|
|
141
144
|
def updated_dependency_with_own_req_unlock
|
145
|
+
version = preferred_resolvable_version.to_s
|
146
|
+
previous_version = latest_resolvable_previous_version(version)&.to_s
|
147
|
+
|
142
148
|
Dependency.new(
|
143
149
|
name: dependency.name,
|
144
|
-
version:
|
150
|
+
version: version,
|
145
151
|
requirements: updated_requirements,
|
146
|
-
previous_version:
|
152
|
+
previous_version: previous_version,
|
147
153
|
previous_requirements: dependency.requirements,
|
148
154
|
package_manager: dependency.package_manager
|
149
155
|
)
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.113.
|
4
|
+
version: 0.113.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-codecommit
|