lib/bibliothecary/parsers/swift.rb in bibliothecary-3.0.0 vs lib/bibliothecary/parsers/swift.rb in bibliothecary-3.0.1
- old
+ new
@@ -11,10 +11,10 @@
[]
end
end
def self.parse_package_swift(manifest)
- response = Typhoeus.post("http://192.241.154.173/to-json", body: manifest)
+ response = Typhoeus.post("http://swiftpm.honza.tech/to-json", body: manifest)
json = JSON.parse(response.body)
json["dependencies"].map do |dependency|
name = dependency['url'].gsub(/^https?:\/\//, '').gsub(/\.git$/,'')
version = "#{dependency['version']['lowerBound']} - #{dependency['version']['upperBound']}"
{