bibliothecary 10.0.0 → 10.1.0

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: f04e398aaa7fd5f464025615120f69886e8f908b842205276a20f1b8c1d86f0c
4
- data.tar.gz: f053d3dcba23b8f90541ff82b060b7252264c2048fa6f9ee296947d8d915113d
3
+ metadata.gz: a5819573e0a53cf1f6d12f289f16a89318da9da6124cfbfcf2d5bf43f2a2c60a
4
+ data.tar.gz: 0521f708de33c56c3b9c271c68d61f630f88e4ba73923f781c71f6b117c71401
5
5
  SHA512:
6
- metadata.gz: 3f064aa980b63f797b057b857c6d687fd3cff93081276040fff1cf6e15f57cf4faa454ef78cae8f749ccf26326701f8f3c7c2e6a96afbf05a5b49dc8feed9ff8
7
- data.tar.gz: 83189af6e0f441e3bb21d19344a3bdbee0052fe2457cde85ec831be7a1bb2a63bc622c811c80a1e93076fcc6470d67a980846c3028ab23b674bb2fc238735598
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 `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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.uniq.map do |dep|
137
- Dependency.new(
138
- name: dep[:name],
139
- requirement: dep[:version],
140
- lockfile_requirement: dep[:requirement],
141
- type: dep[:type],
142
- local: dep[:requirement]&.start_with?("file:"),
143
- )
144
- end
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
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "10.0.0"
2
+ VERSION = "10.1.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.0.0
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-12 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb