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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15707d4dba894592f3b312a55de7256987b404f43b22c17dc10fb8a31c565df4
4
- data.tar.gz: 838549d08c4138b7c3b1dbfb6a9943f05d8d62d619a950a7a4223ed160521cd2
3
+ metadata.gz: 95e256e79a2e6e9c69478b3376219b4a6b27e4a2ec1671f2691832f442a9c242
4
+ data.tar.gz: 0c96f62c27f3b417f43535eaf171bffe84d1e1572a26ba839c314e0803239b94
5
5
  SHA512:
6
- metadata.gz: cfbcdd3fcbc7cdbac36e58d514ee9dabc2ae35fe9601aee9b21758026c0aff5a6d6d08aa0a69f6579970af6d9ab601d4917abb5333bd3c3fbc04c3d5e98628a9
7
- data.tar.gz: ecede854a97878a3f55fd7303ab2b418a5e2441650c7c437e2712d976226d1ae85ef73dbb688a3c6747e81c784c3c6384e43958195bd743e64a234de7c9ad21f
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: latest_resolvable_version_with_no_unlock.to_s,
136
+ version: version,
134
137
  requirements: dependency.requirements,
135
- previous_version: latest_resolvable_previous_version&.to_s,
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: preferred_resolvable_version.to_s,
150
+ version: version,
145
151
  requirements: updated_requirements,
146
- previous_version: latest_resolvable_previous_version&.to_s,
152
+ previous_version: previous_version,
147
153
  previous_requirements: dependency.requirements,
148
154
  package_manager: dependency.package_manager
149
155
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.113.4"
4
+ VERSION = "0.113.5"
5
5
  end
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
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-27 00:00:00.000000000 Z
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