dependabot-python 0.86.20 → 0.86.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fcbce927ea059fe2672e736508def76b344a00fb94e9fa0883cf86b38e9fb6a
4
- data.tar.gz: 868537b0f90cf685081023fa92faf765be27dd3aceb7943a1a903fb0eaa283be
3
+ metadata.gz: 4af6e6b34c973eed3ba47dba9f9156a1d817f58021fa63406649aa72a47c02db
4
+ data.tar.gz: 8fcc616d7c4dcdb1a6159d844fcd231690ecef29e6d58c232d07363f2707f633
5
5
  SHA512:
6
- metadata.gz: 4a64bb3fd200ff221f52c08069fd00a97945f2596f8c7c0f8b0414c68fc448bff79b7a42f216669a04e69c0a53d893a0ff5cb57034c73378a2233c73dd2b7adb
7
- data.tar.gz: 5d15741d6d63ed77e60aca94955df032f99fd85e9cf17f54804c3ec9f1a5099019f6a940b088c2a475822d1a98bad647f040f6c0e8c0db3dae37805767135f72
6
+ metadata.gz: 8a4c5ddd9270fe30268a7f24b2c208ff053d1db5f1090e7433300aa3b2857592170db3dbfd240b6d49eb0b02db68816951937b6ce46df15d3b8f32a9a367d466
7
+ data.tar.gz: 6e17cbd7b045d0665ac45a708c20383d35e4ceccb0fe4d882dadb734226ebe0588409c89aae1ffea7d2041b16fc34cd25e87e1885e938307f118820f7853c1d6
@@ -232,6 +232,7 @@ module Dependabot
232
232
 
233
233
  def post_process_compiled_file(updated_content, file)
234
234
  content = replace_header_with_original(updated_content, file.content)
235
+ content = update_hashes_if_required(content, file.content)
235
236
  replace_absolute_file_paths(content, file.content)
236
237
  end
237
238
 
@@ -265,6 +266,16 @@ module Dependabot
265
266
  content
266
267
  end
267
268
 
269
+ def update_hashes_if_required(updated_content, _original_content)
270
+ # TODO: Update the hashes if required.
271
+ # See https://github.com/dependabot/feedback/issues/235
272
+ #
273
+ # 1. Parse the old and new files
274
+ # 2. For any dependency where the number of hashes has changed, use
275
+ # hashin to update the hashes
276
+ updated_content
277
+ end
278
+
268
279
  def pip_compile_options(filename)
269
280
  current_requirements_file_name = filename.sub(/\.in$/, ".txt")
270
281
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.86.20
4
+ version: 0.86.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-31 00:00:00.000000000 Z
11
+ date: 2019-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.86.20
19
+ version: 0.86.21
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.86.20
26
+ version: 0.86.21
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement