dependabot-maven 0.158.0 → 0.160.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: dc5d713f29175cfe0b0915d704c6071c18508e06285ca8c40e6249d432e94191
4
- data.tar.gz: 3ef4bb515d7a646532732e20baaf1a2acb81334fbbd159801161c2542f6a3391
3
+ metadata.gz: 64bd5bd01fae4d0a3b1748a06ef06e066d6d150adf3b6cc0e5f0bfd3c5a49895
4
+ data.tar.gz: fb02af43fab51064c0ea91ac183b9fe5e157d8fb1d55862806c09667156604ed
5
5
  SHA512:
6
- metadata.gz: 345a16eb76d81ec07713045933668ae576a6081203e3ec14b5e4964a496558a846133df66b9b799aa6a0952c505d7834365965c58421e3e5a0e10e86f58853ce
7
- data.tar.gz: 51631e43ecffd902a83830cbc856fd834f1453141fee5edb8bf48fc876ff22f9867d825678f6a151589badd28af04448e23057e23b5bff72408caaf0060b7efd
6
+ metadata.gz: 44acfb1fbf9625d5e4333d5c579b5a1515b0e4fefa6e75964a2af40272d73ed91f73ec4cebdbae30577863e02b3ec5eba5fbe449883f552ebeff1464428f3c6c
7
+ data.tar.gz: 5766f72673e2a39d6461d7b3da333df0573bb8cb02436cdb04d68c8713b2942df67486b9c919df3237c51e81f128965c8a5f5bcf7799880faddd3c6737ae01eb
@@ -88,6 +88,9 @@ module Dependabot
88
88
  return unless (name = dependency_name(dependency_node, pom))
89
89
  return if internal_dependency_names.include?(name)
90
90
 
91
+ classifier = dependency_classifier(dependency_node, pom)
92
+ name = classifier ? "#{name}:#{classifier}" : name
93
+
91
94
  build_dependency(pom, dependency_node, name)
92
95
  end
93
96
 
@@ -125,7 +128,7 @@ module Dependabot
125
128
  return unless dependency_node.at_xpath("./groupId")
126
129
  return unless dependency_node.at_xpath("./artifactId")
127
130
 
128
- name = [
131
+ [
129
132
  evaluated_value(
130
133
  dependency_node.at_xpath("./groupId").content.strip,
131
134
  pom
@@ -135,15 +138,15 @@ module Dependabot
135
138
  pom
136
139
  )
137
140
  ].join(":")
141
+ end
138
142
 
139
- if dependency_node.at_xpath("./classifier")
140
- name += ":#{evaluated_value(
141
- dependency_node.at_xpath('./classifier').content.strip,
142
- pom
143
- )}"
144
- end
143
+ def dependency_classifier(dependency_node, pom)
144
+ return unless dependency_node.at_xpath("./classifier")
145
145
 
146
- name
146
+ evaluated_value(
147
+ dependency_node.at_xpath("./classifier").content.strip,
148
+ pom
149
+ )
147
150
  end
148
151
 
149
152
  def plugin_name(dependency_node, 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.158.0
4
+ version: 0.160.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-08-03 00:00:00.000000000 Z
11
+ date: 2021-08-18 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.158.0
19
+ version: 0.160.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.158.0
26
+ version: 0.160.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement