dependabot-maven 0.165.0 → 0.168.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8865292feaa9734831d427c331bfcc669479bb393ac292e78fa00b78f8cc678a
|
4
|
+
data.tar.gz: d46fd3e1e484249f9bb15928ee53f609ac98e318d343058a67b95b12bb5426f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74edc83f714040b78deb1a033d2e5debda11cea15aacb5835121f73737316ea04399cb4e7d9007a45ef3c5df5811b6934dbe1c3fb7fc76bde098ad091ab3a82
|
7
|
+
data.tar.gz: c6db02dde791813fa864e35cf647243e5dc56e402bbeeb49e0aeca44c0ff66505d9527859d1b1a26275b3f735a072e82837cff3c72e5f83207d107a5a220be30
|
@@ -9,9 +9,7 @@ module Dependabot
|
|
9
9
|
module Maven
|
10
10
|
class FileUpdater
|
11
11
|
class DeclarationFinder
|
12
|
-
|
13
|
-
%r{<parent>.*?</parent>|<dependency>.*?</dependency>|
|
14
|
-
<plugin>.*?</plugin>|<extension>.*?</extension>}mx.freeze
|
12
|
+
DECLARATION_TYPES = %w(parent dependency plugin extension).freeze
|
15
13
|
|
16
14
|
attr_reader :dependency, :declaring_requirement, :dependency_files
|
17
15
|
|
@@ -78,9 +76,14 @@ module Dependabot
|
|
78
76
|
end
|
79
77
|
|
80
78
|
def deep_find_declarations(string)
|
81
|
-
string
|
82
|
-
|
79
|
+
pom = Nokogiri::XML(string)
|
80
|
+
nodes = []
|
81
|
+
pom.traverse do |node|
|
82
|
+
next unless DECLARATION_TYPES.include?(node.node_name)
|
83
|
+
|
84
|
+
nodes << node.to_s
|
83
85
|
end
|
86
|
+
nodes
|
84
87
|
end
|
85
88
|
|
86
89
|
def declaring_requirement_matches?(node)
|
@@ -105,7 +105,7 @@ module Dependabot
|
|
105
105
|
dependency: dep,
|
106
106
|
declaring_requirement: declaring_requirement,
|
107
107
|
dependency_files: dependency_files
|
108
|
-
).declaration_nodes.first.
|
108
|
+
).declaration_nodes.first.at_xpath("./*/version")&.content
|
109
109
|
end
|
110
110
|
|
111
111
|
def pom
|
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.
|
4
|
+
version: 0.168.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-23 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.
|
19
|
+
version: 0.168.0
|
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.
|
26
|
+
version: 0.168.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|