dependabot-julia 0.352.0 → 0.353.0

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: 11830d41298a205ee59a2fd456d7b3d4c9982d9f1ce7d4af52af03a5c34a1edf
4
- data.tar.gz: b49e08e2234d8e405226c678ca4e093287d3ea1f256f032d9714dcaad136df0b
3
+ metadata.gz: f7c2f4dc816b950b5644f28afc025257c28e856696bc00c777d30320bf92dea6
4
+ data.tar.gz: e0c2782c41d890ad0c25890646cb8090b8d7b2b519dd1a2077baaaef772e4544
5
5
  SHA512:
6
- metadata.gz: 3ec9f85c14ebef563ee3df3770ba3c440fbbb64ad1a9c17f798ea3631fde8d2a9ed88c5abb74a3089c0d26c5c9741847c394bcbf6aef29f8c626db9ec8d59635
7
- data.tar.gz: 1ff7d21f670bfe7658cc3914651db8a4ba6cda4a71c132993ef3d1caf82ddc098e3058540e5d2134795ef3725272ade9d3a8702ca3f0c2fa7cd8855b788aa0e2
6
+ metadata.gz: a63cb254340166aa0316dfe7494628828215e3e934d989558e41ad45a75dcd3b301dbd1282dd9373a22a8efdca95d0edfadf2fd73162678d3859a530fb17f94c
7
+ data.tar.gz: 3d0e3301b92a9d106c7e7c64437e872fc2adcf27307a35ea09a4739686865d74efa3772fee516228fc2ca52b30de926f73de9577a5f580f80af0f0ee70636601
@@ -298,7 +298,8 @@ module Dependabot
298
298
  sig { params(content: String, dependency_name: String, new_requirement: String).returns(String) }
299
299
  def update_dependency_requirement_in_content(content, dependency_name, new_requirement)
300
300
  # Extract the [compat] section to update it specifically
301
- compat_section_match = content.match(/^\[compat\]\s*\n((?:(?!\[)[^\n]*\n)*?)(?=^\[|\z)/m)
301
+ # The regex handles files with or without trailing newlines
302
+ compat_section_match = content.match(/^\[compat\]\s*\n((?:(?!\[)[^\n]*(?:\n|\z))*?)(?=^\[|\z)/m)
302
303
 
303
304
  if compat_section_match
304
305
  compat_section = T.must(compat_section_match[1])
@@ -322,7 +323,7 @@ module Dependabot
322
323
  sig { params(content: String, dependency_name: String, requirement: String).returns(String) }
323
324
  def add_compat_entry_to_content(content, dependency_name, requirement)
324
325
  if content.match?(/^\s*\[compat\]\s*$/m)
325
- compat_section_match = content.match(/^\[compat\]\s*\n((?:(?!\[)[^\n]*\n)*?)(?=^\[|\z)/m)
326
+ compat_section_match = content.match(/^\[compat\]\s*\n((?:(?!\[)[^\n]*(?:\n|\z))*?)(?=^\[|\z)/m)
326
327
  return content unless compat_section_match
327
328
 
328
329
  compat_section = T.must(compat_section_match[1])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-julia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.352.0
4
+ version: 0.353.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.352.0
18
+ version: 0.353.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.352.0
25
+ version: 0.353.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: debug
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -261,7 +261,7 @@ licenses:
261
261
  - MIT
262
262
  metadata:
263
263
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
264
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.352.0
264
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.353.0
265
265
  rdoc_options: []
266
266
  require_paths:
267
267
  - lib