bibliothecary 12.3.1 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8405e79b9449b0f4e1f1dc7940b54870ab0aafe7adb511a7d4876ecfca2798ed
4
- data.tar.gz: 15ef48279642088fdbb57291c44a1faaf74c4c2a47e0ac4258e215dfe40e8197
3
+ metadata.gz: b41280265bf9f99394621a32e95fc736518aa4cb517042bed3f3fb14de11141e
4
+ data.tar.gz: 5abfea8b948e94d88e2b1a0ef48309b4783b63b9d8e1e2920ebee3af590fb42c
5
5
  SHA512:
6
- metadata.gz: 7710e394463856a89913e95d49b525966a4b394c6be84c403d97a17bc0c8964df2293ab995164c65fdd9fb3f96d5b9cd1be114f03464d4fc9c1dd2fe269b0a48
7
- data.tar.gz: 1a9e5a61ad6904934c85e324ffc66a5e7d8bdff592b5b0b63040db5431e6dd153e40b70f0d75c1d1a7a9652e3e8ef12fd9b4325b0b8acf31c9c128d4c61bea56
6
+ metadata.gz: 36207ae0ca54c2e132a651ebf656c0fef5d9e9a0954053a115c8f829ecebda97ccd295b7a11dacb53acd290cb621016b3f7d3c98b9f0ba47c6e7d41a34196b1c
7
+ data.tar.gz: e7f22290925ceec3db16011048991c5ef8c1a86e70673d9d1c720f2d41c246eb13802d637170e25f163beca8f32435a11e08297d67473647918943981a2306f3
data/CHANGELOG.md CHANGED
@@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
 
14
14
  ### Removed
15
15
 
16
+ ## [13.0.1] - 2025-07-03
17
+
18
+ ### Changed
19
+
20
+ - Handle windows-style newlines in v1 yarn lockfiles.
21
+
22
+ ## [13.0.0] - 2025-06-17
23
+
24
+ ### Removed
25
+
26
+ - Removed parsing of environment.yml from Pypi parsing
27
+
16
28
  ## [12.3.1] - 2025-06-06
17
29
 
18
30
  ### Changed
@@ -274,7 +274,7 @@ module Bibliothecary
274
274
  def self.parse_maven_tree_items_with_depths(file_contents)
275
275
  file_contents
276
276
  .gsub(ANSI_MATCHER, "")
277
- .gsub(/\r\n?/, "\n")
277
+ .encode(universal_newline: true)
278
278
  # capture two groups; one is the ASCII art telling us the tree depth,
279
279
  # and two is the actual dependency
280
280
  .scan(/^\[INFO\]\s((?:[-+|\\]|\s)*)((?:[\w\.-]+:)+[\w\.\-${}]+)/)
@@ -197,6 +197,7 @@ module Bibliothecary
197
197
  # }, ...]
198
198
  def self.parse_v1_yarn_lock(contents, source = nil)
199
199
  contents
200
+ .encode(universal_newline: true)
200
201
  .gsub(/^#.*/, "")
201
202
  .strip
202
203
  .split("\n\n")
@@ -72,15 +72,6 @@ module Bibliothecary
72
72
  kind: "lockfile",
73
73
  parser: :parse_poetry_lock,
74
74
  },
75
- # Pip dependencies can be embedded in conda environment files
76
- match_filename("environment.yml") => {
77
- parser: :parse_conda,
78
- kind: "manifest",
79
- },
80
- match_filename("environment.yaml") => {
81
- parser: :parse_conda,
82
- kind: "manifest",
83
- },
84
75
  }
85
76
  end
86
77
 
@@ -130,17 +121,6 @@ module Bibliothecary
130
121
  end
131
122
  end
132
123
 
133
- def self.parse_conda(file_contents, options: {})
134
- contents = YAML.safe_load(file_contents)
135
- return [] unless contents
136
-
137
- dependencies = contents["dependencies"]
138
- pip = dependencies.find { |dep| dep.is_a?(Hash) && dep["pip"] }
139
- return [] unless pip
140
-
141
- Pypi.parse_requirements_txt(pip["pip"].join("\n"), options:)
142
- end
143
-
144
124
  def self.map_dependencies(packages, type, source = nil)
145
125
  return [] unless packages
146
126
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bibliothecary
4
- VERSION = "12.3.1"
4
+ VERSION = "13.0.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.3.1
4
+ version: 13.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-06 00:00:00.000000000 Z
10
+ date: 2025-07-03 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: commander