bibliothecary 6.12.3 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bibliothecary.gemspec +1 -1
- data/lib/bibliothecary.rb +1 -0
- data/lib/bibliothecary/parsers/cargo.rb +2 -4
- data/lib/bibliothecary/parsers/go.rb +2 -2
- data/lib/bibliothecary/parsers/pypi.rb +3 -3
- data/lib/bibliothecary/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 527bb093daab817755bf4f5a3d35b1aa831f292f9fe8112ddf6a917b368239ac
|
4
|
+
data.tar.gz: 37ffb251371c1aed5465e15e933dd41921f341ff4794da004d8678cda695cd25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f67cfe62ca501f2ad8064e3fff37593e929d20d8210d619a57e88a887f4fc981081fb1cdc09e9e8b5ab582d22eb46e760b6f53456e9ecfb179a744a7c6b1d91
|
7
|
+
data.tar.gz: 407398a4772816f145da883104d5a21516117fd8e544ecaff3e0dd438c26a02f8a17bc766e2c51a602ac72008c6954e16ee9478db2f80700d3ac47ebb6182858
|
data/bibliothecary.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "
|
21
|
+
spec.add_dependency "tomlrb", "~> 2.0"
|
22
22
|
spec.add_dependency "librariesio-gem-parser"
|
23
23
|
spec.add_dependency "ox", ">= 2.8.1"
|
24
24
|
spec.add_dependency "typhoeus"
|
data/lib/bibliothecary.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'toml-rb'
|
2
|
-
|
3
1
|
module Bibliothecary
|
4
2
|
module Parsers
|
5
3
|
class Cargo
|
@@ -19,7 +17,7 @@ module Bibliothecary
|
|
19
17
|
end
|
20
18
|
|
21
19
|
def self.parse_manifest(file_contents)
|
22
|
-
manifest =
|
20
|
+
manifest = Tomlrb.parse(file_contents)
|
23
21
|
manifest.fetch('dependencies', []).map do |name, requirement|
|
24
22
|
if requirement.respond_to?(:fetch)
|
25
23
|
requirement = requirement['version'] or next
|
@@ -34,7 +32,7 @@ module Bibliothecary
|
|
34
32
|
end
|
35
33
|
|
36
34
|
def self.parse_lockfile(file_contents)
|
37
|
-
manifest =
|
35
|
+
manifest = Tomlrb.parse(file_contents)
|
38
36
|
manifest.fetch('package',[]).map do |dependency|
|
39
37
|
next if not dependency['source'] or not dependency['source'].start_with?('registry+')
|
40
38
|
{
|
@@ -106,12 +106,12 @@ module Bibliothecary
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def self.parse_dep_toml(file_contents)
|
109
|
-
manifest =
|
109
|
+
manifest = Tomlrb.parse file_contents
|
110
110
|
map_dependencies(manifest, 'constraint', 'name', 'version', 'runtime')
|
111
111
|
end
|
112
112
|
|
113
113
|
def self.parse_dep_lockfile(file_contents)
|
114
|
-
manifest =
|
114
|
+
manifest = Tomlrb.parse file_contents
|
115
115
|
map_dependencies(manifest, 'projects', 'name', 'revision', 'runtime')
|
116
116
|
end
|
117
117
|
|
@@ -61,12 +61,12 @@ module Bibliothecary
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def self.parse_pipfile(file_contents)
|
64
|
-
manifest =
|
64
|
+
manifest = Tomlrb.parse(file_contents)
|
65
65
|
map_dependencies(manifest['packages'], 'runtime') + map_dependencies(manifest['dev-packages'], 'develop')
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.parse_poetry(file_contents)
|
69
|
-
manifest =
|
69
|
+
manifest = Tomlrb.parse(file_contents)['tool']['poetry']
|
70
70
|
map_dependencies(manifest['dependencies'], 'runtime') + map_dependencies(manifest['dev-dependencies'], 'develop')
|
71
71
|
end
|
72
72
|
|
@@ -124,7 +124,7 @@ module Bibliothecary
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def self.parse_poetry_lock(file_contents)
|
127
|
-
manifest =
|
127
|
+
manifest = Tomlrb.parse(file_contents)
|
128
128
|
deps = []
|
129
129
|
manifest["package"].each do |package|
|
130
130
|
# next if group == "_meta"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliothecary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.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: 2021-06-
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: tomlrb
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: librariesio-gem-parser
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +206,7 @@ dependencies:
|
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
|
-
description:
|
209
|
+
description:
|
210
210
|
email:
|
211
211
|
- andrewnez@gmail.com
|
212
212
|
executables:
|
@@ -274,7 +274,7 @@ homepage: https://github.com/librariesio/bibliothecary
|
|
274
274
|
licenses:
|
275
275
|
- AGPL-3.0
|
276
276
|
metadata: {}
|
277
|
-
post_install_message:
|
277
|
+
post_install_message:
|
278
278
|
rdoc_options: []
|
279
279
|
require_paths:
|
280
280
|
- lib
|
@@ -289,8 +289,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
289
|
- !ruby/object:Gem::Version
|
290
290
|
version: '0'
|
291
291
|
requirements: []
|
292
|
-
rubygems_version: 3.
|
293
|
-
signing_key:
|
292
|
+
rubygems_version: 3.2.15
|
293
|
+
signing_key:
|
294
294
|
specification_version: 4
|
295
295
|
summary: Find and parse manifests
|
296
296
|
test_files: []
|