bibliothecary 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliothecary/parsers/carthage.rb +1 -1
- data/lib/bibliothecary/parsers/clojars.rb +1 -1
- data/lib/bibliothecary/parsers/hex.rb +2 -2
- data/lib/bibliothecary/parsers/maven.rb +1 -1
- data/lib/bibliothecary/parsers/npm.rb +1 -1
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63862e85e3869ed89e0fd67e3c880fdf6e11710a
|
4
|
+
data.tar.gz: e63a382ed34ef91da60d964567baa14b62ea4305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12dc273cb5db780d643a33655bc9f712599b6bba7e8ff2c5532d8d2e38b23b4092e85d7a5c26a588afd513fd6aec7b8351ccd7fd5c9ca911ac8ed3d6673cb368
|
7
|
+
data.tar.gz: 621afd3937fdce67f3b78972e7e5ac16ddc9b10891b4fac2eadb99299787e9730e8f7d3323929bf6742a6b718aafabeb3d35901a83cebada9f3672c265b9f864
|
@@ -33,7 +33,7 @@ module Bibliothecary
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.map_dependencies(manifest, path)
|
36
|
-
response = Typhoeus.post("https://
|
36
|
+
response = Typhoeus.post("https://carthage.libraries.io/#{path}", params: {body: manifest})
|
37
37
|
json = JSON.parse(response.body)
|
38
38
|
|
39
39
|
json.map do |dependency|
|
@@ -16,7 +16,7 @@ module Bibliothecary
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.parse_manifest(manifest)
|
19
|
-
response = Typhoeus.post("https://clojars
|
19
|
+
response = Typhoeus.post("https://clojars.libraries.io/project.clj", body: manifest)
|
20
20
|
json = JSON.parse response.body
|
21
21
|
index = json.index("dependencies")
|
22
22
|
|
@@ -19,7 +19,7 @@ module Bibliothecary
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.parse_mix(manifest)
|
22
|
-
response = Typhoeus.post("https://mix
|
22
|
+
response = Typhoeus.post("https://mix.libraries.io/", body: manifest)
|
23
23
|
json = JSON.parse response.body
|
24
24
|
|
25
25
|
json.map do |name, version|
|
@@ -32,7 +32,7 @@ module Bibliothecary
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.parse_mix_lock(manifest)
|
35
|
-
response = Typhoeus.post("https://mix
|
35
|
+
response = Typhoeus.post("https://mix.libraries.io/lock", body: manifest)
|
36
36
|
json = JSON.parse response.body
|
37
37
|
|
38
38
|
json.map do |name, info|
|
@@ -52,7 +52,7 @@ module Bibliothecary
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.parse_gradle(manifest)
|
55
|
-
response = Typhoeus.post("https://gradle-parser.
|
55
|
+
response = Typhoeus.post("https://gradle-parser.libraries.io/parse", body: manifest)
|
56
56
|
json = JSON.parse(response.body)
|
57
57
|
|
58
58
|
return [] unless json['dependencies'] && json['dependencies']['compile'] && json['dependencies']['compile'].is_a?(Array)
|
@@ -40,7 +40,7 @@ module Bibliothecary
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.parse_yarn_lock(file_contents)
|
43
|
-
response = Typhoeus.post("https://yarn-parser.
|
43
|
+
response = Typhoeus.post("https://yarn-parser.libraries.io/parse", body: file_contents)
|
44
44
|
return [] unless response.response_code == 200
|
45
45
|
JSON.parse(response.body)
|
46
46
|
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: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|