bibliothecary 8.6.1 → 8.6.2

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: 339163151e8113f056a34e7089bcd5e68d0629cdd45b0109b40087974dd0efa4
4
- data.tar.gz: 0bd35f6a15d412e7625268e41de4122a352a08c5def052a4bdd54efcaede8dba
3
+ metadata.gz: 86361a7bec7e2b16e6d15548c35ce460a39378f241d010b42f743f9aee761dc6
4
+ data.tar.gz: b6b44dd4064c686006932e77abe0c3d8e792bb132f15b0ae2876bd054c38d43c
5
5
  SHA512:
6
- metadata.gz: 0f6ef41d068ddab930d57d22beb60cb8bdc1543de2429ed5d4e13a3ded544cc8dec1374798c2d5a432d610ed6a5612578996940c793d869795bb0c35ad6ebad5
7
- data.tar.gz: dff39cdf5dc7b28de5343ad45a1b095336cdcdeb92224855b47abd112f61d0ff6d861367fe8c84fe546ce4a1c7e94fdd2b84cb7c3d841e6057a52db227bff194
6
+ metadata.gz: b371453204d2523671442fc45ec512f83f45eafb73f429f0a1b743fe5edc6bc23f65fc90c7110aadcb4ed24e7e50ed1b81863f50736355ac9068a274a242ca56
7
+ data.tar.gz: d94e3f5986f4d080d0b02d9a0349686220b4b3e9b96f91bd64050ad05dd6785cfbf823a2216b49ec78cec040f48bd3705212894e338efa2382da19ea848db833
@@ -268,11 +268,15 @@ module Bibliothecary
268
268
  [].tap do |deps|
269
269
  ['dependencies/dependency', 'dependencyManagement/dependencies/dependency'].each do |deps_xpath|
270
270
  xml.locate(deps_xpath).each do |dep|
271
- deps.push({
271
+ dep_hash = {
272
272
  name: "#{extract_pom_dep_info(xml, dep, 'groupId', parent_properties)}:#{extract_pom_dep_info(xml, dep, 'artifactId', parent_properties)}",
273
273
  requirement: extract_pom_dep_info(xml, dep, 'version', parent_properties),
274
- type: extract_pom_dep_info(xml, dep, 'scope', parent_properties) || 'runtime'
275
- })
274
+ type: extract_pom_dep_info(xml, dep, 'scope', parent_properties) || 'runtime',
275
+ }
276
+ # optional field is, itself, optional, and will be either "true" or "false"
277
+ optional = extract_pom_dep_info(xml, dep, 'optional', parent_properties)
278
+ dep_hash[:optional] = optional == "true" unless optional.nil?
279
+ deps.push(dep_hash)
276
280
  end
277
281
  end
278
282
  end
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "8.6.1"
2
+ VERSION = "8.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.6.1
4
+ version: 8.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb
@@ -248,7 +248,7 @@ dependencies:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
- description:
251
+ description:
252
252
  email:
253
253
  - andrewnez@gmail.com
254
254
  executables:
@@ -324,7 +324,7 @@ homepage: https://github.com/librariesio/bibliothecary
324
324
  licenses:
325
325
  - AGPL-3.0
326
326
  metadata: {}
327
- post_install_message:
327
+ post_install_message:
328
328
  rdoc_options: []
329
329
  require_paths:
330
330
  - lib
@@ -340,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
340
340
  version: '0'
341
341
  requirements: []
342
342
  rubygems_version: 3.1.6
343
- signing_key:
343
+ signing_key:
344
344
  specification_version: 4
345
345
  summary: Find and parse manifests
346
346
  test_files: []