bibliothecary 10.0.0 → 10.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/bibliothecary/parsers/npm.rb +14 -9
- 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: a5819573e0a53cf1f6d12f289f16a89318da9da6124cfbfcf2d5bf43f2a2c60a
|
4
|
+
data.tar.gz: 0521f708de33c56c3b9c271c68d61f630f88e4ba73923f781c71f6b117c71401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c1c1d84cfdf88a8b8d0b9b4692c4ce453c4c759a067e3ea99f5c0b0a4a3bf9136af9d600e0bb8a81cbb5d0ff2a3a24cdc7b9264b4455482dde0e12ef359e20c
|
7
|
+
data.tar.gz: 7628bb022b1daad35a3a826dfda54a46faa5437065ab36abf80de1fc9d64abf7e2b7636157eb00665b127a58792659a4b7dd3e74a35014bc731e973216c3df2d
|
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
|
+
## [10.1.0] - 2024-07-23
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- Skip self referencing package entries in yarn v4+ lockfiles.
|
21
|
+
|
16
22
|
## [10.0.0] - 2024-07-08
|
17
23
|
|
18
24
|
### Added
|
data/README.md
CHANGED
@@ -162,7 +162,7 @@ All available config options are in: https://github.com/librariesio/bibliothecar
|
|
162
162
|
|
163
163
|
## Development
|
164
164
|
|
165
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `
|
165
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
166
166
|
|
167
167
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
168
168
|
|
@@ -133,15 +133,20 @@ module Bibliothecary
|
|
133
133
|
raise Bibliothecary::RemoteParsingError.new("Http Error #{response.response_code} when contacting: #{Bibliothecary.configuration.yarn_parser_host}/parse", response.response_code) unless response.success?
|
134
134
|
|
135
135
|
json = JSON.parse(response.body, symbolize_names: true)
|
136
|
-
json
|
137
|
-
|
138
|
-
|
139
|
-
requirement
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
136
|
+
json
|
137
|
+
.uniq
|
138
|
+
.reject do |dep|
|
139
|
+
dep[:requirement]&.include?("workspace") && dep[:version].include?("use.local")
|
140
|
+
end
|
141
|
+
.map do |dep|
|
142
|
+
Dependency.new(
|
143
|
+
name: dep[:name],
|
144
|
+
requirement: dep[:version],
|
145
|
+
lockfile_requirement: dep[:requirement],
|
146
|
+
type: dep[:type],
|
147
|
+
local: dep[:requirement]&.start_with?("file:"),
|
148
|
+
)
|
149
|
+
end
|
145
150
|
end
|
146
151
|
|
147
152
|
def self.parse_ls(file_contents, options: {}) # rubocop:disable Lint/UnusedMethodArgument
|
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.
|
4
|
+
version: 10.1.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-07-
|
11
|
+
date: 2024-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tomlrb
|