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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/bibliothecary/parsers/maven.rb +1 -1
- data/lib/bibliothecary/parsers/npm.rb +1 -0
- data/lib/bibliothecary/parsers/pypi.rb +0 -20
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b41280265bf9f99394621a32e95fc736518aa4cb517042bed3f3fb14de11141e
|
4
|
+
data.tar.gz: 5abfea8b948e94d88e2b1a0ef48309b4783b63b9d8e1e2920ebee3af590fb42c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
.
|
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\.\-${}]+)/)
|
@@ -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
|
|
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:
|
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-
|
10
|
+
date: 2025-07-03 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: commander
|