bibliothecary 8.8.1 → 9.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +19 -11
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/README.md +1 -1
- data/lib/bibliothecary/parsers/go.rb +6 -3
- data/lib/bibliothecary/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 663746258869345c2ab91235203d083b8c20862ceacc435726e0e903a5924a2c
|
4
|
+
data.tar.gz: d675d548e6c34bb985895087948753f43a132c09c28608a56d3cfce5cc14b0fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65b0c2930fd92537908a604c94e2a12852e5cc5167838f3fb7c86325a16fc930479b746096a063506f01174c9eb40a792e7f88e1aacefce0f657059b630297a6
|
7
|
+
data.tar.gz: 1b29d13ee41d4a6aabe54854ebe316f1f17cea1be88ba9a73a290c645f3cad4853e2cc6497f419dff474809e1905c1ad851d1d214a58373eee013774830a23e6
|
data/.circleci/config.yml
CHANGED
@@ -1,37 +1,45 @@
|
|
1
1
|
version: 2.1
|
2
2
|
orbs:
|
3
|
-
ruby: circleci/ruby@
|
3
|
+
ruby: circleci/ruby@2.1.3
|
4
4
|
|
5
5
|
executors:
|
6
6
|
bibliothecary:
|
7
7
|
docker:
|
8
|
-
- image: cimg/ruby:
|
8
|
+
- image: cimg/ruby:3.0.7
|
9
9
|
working_directory: ~/bibliothecary
|
10
10
|
|
11
|
+
|
12
|
+
commands:
|
13
|
+
setup-ruby-env:
|
14
|
+
description: "Some requirements to ensure that the ruby orb install-deps works"
|
15
|
+
steps:
|
16
|
+
- run:
|
17
|
+
name: Prep ruby
|
18
|
+
command: |
|
19
|
+
touch /tmp/ruby-project-lockfile
|
20
|
+
bundle lock --add-platform x86_64-linux
|
21
|
+
- ruby/install-deps:
|
22
|
+
bundler-version: "2.3"
|
23
|
+
|
24
|
+
|
11
25
|
jobs:
|
12
26
|
test:
|
13
27
|
executor: bibliothecary
|
14
28
|
steps:
|
15
29
|
- checkout
|
16
|
-
-
|
17
|
-
name: Which bundler?
|
18
|
-
command: bundle -v
|
19
|
-
- ruby/bundle-install
|
30
|
+
- setup-ruby-env
|
20
31
|
- run:
|
21
32
|
name: Run specs
|
22
33
|
command: bundle exec rake spec
|
23
34
|
- run:
|
24
35
|
name: CodeClimate
|
25
|
-
command: bundle exec codeclimate-test-reporter
|
36
|
+
command: bundle exec codeclimate-test-reporter
|
26
37
|
|
27
38
|
lint:
|
28
39
|
executor: bibliothecary
|
29
40
|
steps:
|
30
41
|
- checkout
|
31
|
-
-
|
32
|
-
name: Which bundler?
|
33
|
-
command: bundle -v
|
34
|
-
- ruby/bundle-install
|
42
|
+
- setup-ruby-env
|
35
43
|
- run:
|
36
44
|
name: Run specs
|
37
45
|
command: bundle exec rake lint
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.7
|
data/README.md
CHANGED
@@ -7,13 +7,13 @@ module Bibliothecary
|
|
7
7
|
include Bibliothecary::Analyser
|
8
8
|
|
9
9
|
GPM_REGEXP = /^(.+)\s+(.+)$/
|
10
|
+
GOMOD_COMMENT_REGEXP = /(\/\/(.*))/
|
10
11
|
GOMOD_REPLACEMENT_SEPARATOR_REGEXP = /\s=>\s/
|
11
|
-
GOMOD_DEP_REGEXP = /(?<name>\S+)\s?(?<requirement>[^\s=>]+)?/ # the " =>" negative character class is to make sure we don't capture the delimiter for "replace" deps
|
12
|
+
GOMOD_DEP_REGEXP = /(?<name>\S+)\s?(?<requirement>[^\s=>]+)?\s*(?<indirect>\/\/\s+indirect)?/ # the " =>" negative character class is to make sure we don't capture the delimiter for "replace" deps
|
12
13
|
GOMOD_SINGLELINE_DEP_REGEXP = /^(?<category>require|exclude|replace|retract)\s+#{GOMOD_DEP_REGEXP}.*$/
|
13
14
|
GOMOD_MULTILINE_DEP_REGEXP = /^#{GOMOD_DEP_REGEXP}.*$/
|
14
15
|
GOMOD_MULTILINE_START_REGEXP = /^(?<category>require|exclude|replace|retract)\s+\(/
|
15
16
|
GOMOD_MULTILINE_END_REGEXP = /^\)/
|
16
|
-
GOMOD_COMMENT_REGEXP = /(\/\/(.*))/
|
17
17
|
GOSUM_REGEXP = /^(.+)\s+(.+)\s+(.+)$/
|
18
18
|
|
19
19
|
def self.mapping
|
@@ -158,8 +158,8 @@ module Bibliothecary
|
|
158
158
|
}
|
159
159
|
file_contents
|
160
160
|
.lines
|
161
|
+
.map(&:strip)
|
161
162
|
.reject { |line| line =~ /^#{GOMOD_COMMENT_REGEXP}/ } # ignore comment lines
|
162
|
-
.map { |line| line.strip.gsub(GOMOD_COMMENT_REGEXP, "") } # strip out trailing comments
|
163
163
|
.each do |line|
|
164
164
|
if line.match(GOMOD_MULTILINE_END_REGEXP) # detect the end of a multiline
|
165
165
|
current_multiline_category = nil
|
@@ -227,6 +227,7 @@ module Bibliothecary
|
|
227
227
|
name: replacement_match[:name],
|
228
228
|
requirement: replacement_match[:requirement] || "*",
|
229
229
|
type: "runtime",
|
230
|
+
direct: !match[:indirect],
|
230
231
|
}
|
231
232
|
when "retract"
|
232
233
|
{
|
@@ -234,12 +235,14 @@ module Bibliothecary
|
|
234
235
|
requirement: match[:requirement] || "*",
|
235
236
|
type: "runtime",
|
236
237
|
deprecated: true,
|
238
|
+
direct: !match[:indirect],
|
237
239
|
}
|
238
240
|
else
|
239
241
|
{
|
240
242
|
name: match[:name],
|
241
243
|
requirement: match[:requirement] || "*",
|
242
244
|
type: "runtime",
|
245
|
+
direct: !match[:indirect],
|
243
246
|
}
|
244
247
|
end
|
245
248
|
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:
|
4
|
+
version: 9.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tomlrb
|
@@ -248,7 +248,7 @@ dependencies:
|
|
248
248
|
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '0'
|
251
|
-
description:
|
251
|
+
description:
|
252
252
|
email:
|
253
253
|
- andrewnez@gmail.com
|
254
254
|
executables:
|
@@ -326,7 +326,7 @@ homepage: https://github.com/librariesio/bibliothecary
|
|
326
326
|
licenses:
|
327
327
|
- AGPL-3.0
|
328
328
|
metadata: {}
|
329
|
-
post_install_message:
|
329
|
+
post_install_message:
|
330
330
|
rdoc_options: []
|
331
331
|
require_paths:
|
332
332
|
- lib
|
@@ -341,8 +341,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
341
|
- !ruby/object:Gem::Version
|
342
342
|
version: '0'
|
343
343
|
requirements: []
|
344
|
-
rubygems_version: 3.
|
345
|
-
signing_key:
|
344
|
+
rubygems_version: 3.2.33
|
345
|
+
signing_key:
|
346
346
|
specification_version: 4
|
347
347
|
summary: Find and parse manifests
|
348
348
|
test_files: []
|