bibliothecary 1.4.1 → 1.4.2
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/maven.rb +1 -0
- data/lib/bibliothecary/parsers/swift.rb +1 -1
- data/lib/bibliothecary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f8a50e840d707f085b11ff12f9033303546f4d6
|
4
|
+
data.tar.gz: 6b0f613937fd994c4d90eceaa16e30fba3d2a9ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9276e5d2594eedc7ad89f972f870efdbf096ad2c7a36840f4fa3a43d249ad8fc8d66792d0fcaf047276210b7babf51a393576e12b24d12e22e32d34640425e70
|
7
|
+
data.tar.gz: 8f3db5617d6ef3e3344404f88af15d2838873b193a7e434e881119c173969a56decde5145b6063b2929334bb283bf4cf103f590a5940038777d701500589254a
|
@@ -95,6 +95,7 @@ module Bibliothecary
|
|
95
95
|
else
|
96
96
|
xml = manifest
|
97
97
|
end
|
98
|
+
return [] unless xml.respond_to?('dependencies')
|
98
99
|
xml.dependencies.locate('dependency').map do |dependency|
|
99
100
|
{
|
100
101
|
name: "#{extract_pom_dep_info(xml, dependency, 'groupId')}:#{extract_pom_dep_info(xml, dependency, 'artifactId')}",
|
@@ -31,7 +31,7 @@ module Bibliothecary
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.parse_package_swift(manifest)
|
34
|
-
response = Typhoeus.post("http://
|
34
|
+
response = Typhoeus.post("http://192.241.154.173/to-json", body: manifest)
|
35
35
|
json = JSON.parse(response.body)
|
36
36
|
json["dependencies"].map do |dependency|
|
37
37
|
name = dependency['url'].gsub(/^https?:\/\//, '').gsub(/\.git$/,'')
|