module Geminabox::RubygemsDependency
Public Class Methods
for(*gems)
click to toggle source
# File lib/geminabox/rubygems_dependency.rb, line 8 def for(*gems) url = [ rubygems_uri, '?gems=', gems.map(&:to_s).join(',') ].join body = Geminabox.http_adapter.get_content(url) JSON.parse(body) rescue Exception => e return [] if Geminabox.allow_remote_failure raise e end
rubygems_uri()
click to toggle source
# File lib/geminabox/rubygems_dependency.rb, line 22 def rubygems_uri "https://bundler.rubygems.org/api/v1/dependencies.json" end