dependabot-maven 0.116.2 → 0.116.3

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: 71d023a06a34b4a39ef22b422b8b43144ffd549e9a862ac12be68a65054ed6d5
4
- data.tar.gz: ce522693fa8d71dfa4918ea1190571b9ae12661611b17be722968c184c1654a2
3
+ metadata.gz: e44bc70eef732e3da8d5cecfc53423ec66720963a32fc3c50507c61facd2d510
4
+ data.tar.gz: e965d91e18a6d588d5681f844057c580a73954afb1f7d9fa62c7af90e825a78d
5
5
  SHA512:
6
- metadata.gz: 93c8fa6eca2ddbeefa79de810d26d79e38a152f7ebab1f6d6c8873cd72c240bbc10fb2a37c07d72c1ec1bcfdd056fef782490e1a7ad39b989794eab75ac46803
7
- data.tar.gz: 72b51c0d2db02ca9ed7b242792872ee58ea8a9313821665ada83f68b49cbe16b6da610703b5dfdcae53d7651811a3a599702d556ea991b75cf97ad7e92fc6b8d
6
+ metadata.gz: 439054b06be5cf3c0e0dfc6f1908e14b9985f33b921a512d64b55af6e520fcea653ebf007c28932ca1108b1e4e6547338ee20ae0cd3004ed66eb0203b10f0ddb
7
+ data.tar.gz: c69435066301d83a286f9909a802121f8f2d32519beb1b73a07365c9a17b476a2670408455c65e3acc9e40cb085d64e4a65572129ba6b88f5c871cf1085cba46
@@ -24,12 +24,22 @@ module Dependabot
24
24
  filename = declaration_details.fetch(:file)
25
25
 
26
26
  pom_to_update = dependency_files.find { |f| f.name == filename }
27
- updated_content = pom_to_update.content.sub(
28
- %r{<#{Regexp.quote(node.name)}>
29
- \s*#{Regexp.quote(node.content)}\s*
30
- </#{Regexp.quote(node.name)}>}xm,
31
- "<#{node.name}>#{updated_value}</#{node.name}>"
32
- )
27
+ property_re = %r{<#{Regexp.quote(node.name)}>
28
+ \s*#{Regexp.quote(node.content)}\s*
29
+ </#{Regexp.quote(node.name)}>}xm
30
+ property_text = node.to_s
31
+ if pom_to_update.content =~ property_re
32
+ updated_content = pom_to_update.content.sub(
33
+ property_re,
34
+ "<#{node.name}>#{updated_value}</#{node.name}>"
35
+ )
36
+ elsif pom_to_update.content.include? property_text
37
+ node.content = updated_value
38
+ updated_content = pom_to_update.content.sub(
39
+ property_text,
40
+ node.to_s
41
+ )
42
+ end
33
43
 
34
44
  updated_pomfiles = dependency_files.dup
35
45
  updated_pomfiles[updated_pomfiles.index(pom_to_update)] =
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-maven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.116.2
4
+ version: 0.116.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.116.2
19
+ version: 0.116.3
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.116.2
26
+ version: 0.116.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement