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 +4 -4
- data/lib/bibliothecary/parsers/packagist.rb +6 -3
- data/lib/bibliothecary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e99bd64be33f917579aeca0ce4d27a1290328020516f2bf2328f3bc82273da99
|
4
|
+
data.tar.gz: 3c431e57230c9d20ba3e66e4e5e9b72def9ba81ad8707f47166be5d9e993a751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|