bibliothecary 10.2.4 → 11.0.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: 305a667de2b400a8b78c0dcc8159442ec94a0d0c05cca71b3eb2ed25be9ddec3
4
- data.tar.gz: 42645beb4d9cfa6aab4837045541d7747370f14f791f96c8aca31594aa9b614e
3
+ metadata.gz: ed25de135032f95b602569a3ad5c1476f36be42599c0cd1b29032ecf7de8a47b
4
+ data.tar.gz: 6401e84f7ce40b499b4da8274f775813fe1dcfa41843e7cbcc761293ff287c0d
5
5
  SHA512:
6
- metadata.gz: 8ef33d46181f9d9b33c53ef28b197b3b28d1dae1c1b9f8842019a716b547696c3a69ffa8c4c26ccc64e9cbb078d2559ffd57ae3688f5fee9554265aa5d0f6c4e
7
- data.tar.gz: dec4e3346c4b2a6ff8b64a61e90d5d8956977b6b3b19b3b49d1caab9921d7c2f1b6f71d7023a36f12fed2498a8fa705f4efc4699337aef665ddb9385d7389413
6
+ metadata.gz: 8f0cedd4ebe9e4248ac0151b4073fa2671466cb4c4e04b2b1dc7e9a8daecbfca34126fa870cab97d3e95e231dcc8f1e01295a7c3b9b907bf64db1443dfa2ff7e
7
+ data.tar.gz: c44115bb427765889d363e59685dfe3bd7fff63b27bca352f453b74da2ddf269d75a526453eb0bdfcfdb219d073cea5172fbfdc4731f38a1d86d8748a7c030b9
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.7
1
+ 3.2.5
data/CHANGELOG.md CHANGED
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
 
14
14
  ### Removed
15
15
 
16
+ ## [11.0.0] - 2024-11-22
17
+
18
+ ### Changed
19
+
20
+ - Removed lockfile_requirement from Bibliothecary::Dependency
21
+
16
22
  ## [10.2.4] - 2024-11-06
17
23
 
18
24
  ### Changed
@@ -16,8 +16,6 @@ module Bibliothecary
16
16
  # where it did not match the resolved name. This can be used for features like aliasing.
17
17
  # @attr_reader [String] original_requirement The original requirement used to require the dependency,
18
18
  # for cases where it did not match the resolved name. This can be used for features like aliasing.
19
- # @attr_reader [String] lockfile_requirement The requirement found in the lockfile, e.g. "1.0.0" or "^1.0.0". This is
20
- # only returned from the yarn.lock parser and may not be used by downstream users. TODO: should this be deprecated?
21
19
  # @source [String] source An optional string to store the location of the manifest that contained this
22
20
  # dependency, e.g. "src/package.json".
23
21
  class Dependency
@@ -25,7 +23,6 @@ module Bibliothecary
25
23
  :name,
26
24
  :requirement,
27
25
  :original_requirement,
28
- :lockfile_requirement,
29
26
  :platform,
30
27
  :type,
31
28
  :direct,
@@ -42,7 +39,6 @@ module Bibliothecary
42
39
  name:,
43
40
  requirement:,
44
41
  original_requirement: nil,
45
- lockfile_requirement: nil,
46
42
  platform: nil,
47
43
  type: nil,
48
44
  direct: nil,
@@ -56,8 +52,6 @@ module Bibliothecary
56
52
  @platform = platform
57
53
  @requirement = requirement || "*"
58
54
  @original_requirement = original_requirement
59
- # TODO: maybe deprecate this field? Is it possible to replace it with original_requirement?
60
- @lockfile_requirement = lockfile_requirement
61
55
  @type = type
62
56
  @direct = direct
63
57
  @deprecated = deprecated
@@ -37,13 +37,6 @@ module Bibliothecary
37
37
  /^name$/i,
38
38
  ],
39
39
  },
40
- # Lockfiles have exact versions.
41
- "lockfile_requirement" => {
42
- match: [
43
- /^(lockfile |)requirement$/i,
44
- /^version$/i,
45
- ],
46
- },
47
40
  # Manifests have versions that can have operators.
48
41
  # However, since Bibliothecary only currently supports analyzing a
49
42
  # single file as a single thing (either manifest or lockfile)
@@ -142,7 +142,6 @@ module Bibliothecary
142
142
  Dependency.new(
143
143
  name: dep[:name],
144
144
  requirement: dep[:version],
145
- lockfile_requirement: dep[:requirement],
146
145
  type: dep[:type],
147
146
  local: dep[:requirement]&.start_with?("file:"),
148
147
  )
@@ -173,7 +172,6 @@ module Bibliothecary
173
172
  Dependency.new(
174
173
  name: name,
175
174
  requirement: metadata["version"],
176
- lockfile_requirement: metadata.fetch("from", "").split("@").last,
177
175
  type: "runtime",
178
176
  ),
179
177
  ] + transform_tree_to_array(metadata.fetch("dependencies", {}))
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "10.2.4"
2
+ VERSION = "11.0.0"
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: 10.2.4
4
+ version: 11.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
315
  requirements: []
316
- rubygems_version: 3.2.33
316
+ rubygems_version: 3.4.19
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: Find and parse manifests