bibliothecary 7.1.0 → 7.1.1

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: 74f493b85e3dec08ab0c8aad09b9beb59eee3b8dc5317d6b9f20c6c5620298eb
4
- data.tar.gz: 1f1dd61989f87a10974e205862e3a01c7808bdad072dcca2f74193d1c731c9ec
3
+ metadata.gz: e99bd64be33f917579aeca0ce4d27a1290328020516f2bf2328f3bc82273da99
4
+ data.tar.gz: 3c431e57230c9d20ba3e66e4e5e9b72def9ba81ad8707f47166be5d9e993a751
5
5
  SHA512:
6
- metadata.gz: '02351483c4000b031662de8ed48459c74d8d533b9676ba3968060e01cca50fcf5ede59982d8e6237d6ddf8395fa0b5172c87eb13a7d849e866236c88fec20150'
7
- data.tar.gz: b437fe17ca779bc99a6d78753936726ae102c75ef7e2583ae6544320aa5b65ba53e16e644035c5eaa445cd2bc6fe2fa695856b6e518c5d3fbad389f33c0419ae
6
+ metadata.gz: 722b6cad2fa9b84111fa97a5f925e6fb3967489bac80747e11ab1c6ac22cfec6a4fdeefa6e17ad9e926860e429322e1e1f182bfc88ea69a4778cfc0717d9de70
7
+ data.tar.gz: 0e92b678afe3f81ad3593f6feaa7e4357a4bda19e1ec4720a8f513c69261b87eb2916950b556ab645913432496b1153f8db7a44f3945baaa6e2154a0109fdd01
@@ -26,7 +26,8 @@ module Bibliothecary
26
26
  requirement: dependency["version"],
27
27
  type: "runtime"
28
28
  }.tap do |result|
29
- result[:drupal_requirement] = dependency.dig("source", "reference") if is_drupal_module(dependency)
29
+ # Store Drupal version if Drupal, but include the original manifest version for reference
30
+ result[:original_requirement], result[:requirement] = result[:requirement], dependency.dig("source", "reference") if is_drupal_module(dependency)
30
31
  end
31
32
  end + manifest.fetch('packages-dev',[]).map do |dependency|
32
33
  {
@@ -34,7 +35,8 @@ module Bibliothecary
34
35
  requirement: dependency["version"],
35
36
  type: "development"
36
37
  }.tap do |result|
37
- result[:drupal_requirement] = dependency.dig("source", "reference") if is_drupal_module(dependency)
38
+ # Store Drupal version if Drupal, but include the original manifest version for reference
39
+ result[:original_requirement], result[:requirement] = result[:requirement], dependency.dig("source", "reference") if is_drupal_module(dependency)
38
40
  end
39
41
  end
40
42
  end
@@ -51,7 +53,8 @@ module Bibliothecary
51
53
  # but you may only have composer.lock, so we test if the type is "drupal-*" (e.g. "drupal-module" or "drupal-theme")
52
54
  # The Drupal team also setup its own mapper of Composer semver -> Drupal tool-specfic versions
53
55
  # (https://www.drupal.org/project/project_composer/issues/2622450),
54
- # so we return the Drupal requirement instead of semver requirement if it's here.
56
+ # so we return the Drupal requirement instead of semver requirement if it's here
57
+ # (https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies#s-about-semantic-versioning)
55
58
  private_class_method def self.is_drupal_module(dependency)
56
59
  dependency["type"] =~ /drupal/ && dependency.dig("source", "reference")
57
60
  end
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "7.1.0"
2
+ VERSION = "7.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt