geminabox 3.1.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'json'
4
- require 'uri'
5
-
6
- module Geminabox
7
- module RubygemsDependency
8
-
9
- class << self
10
-
11
- def for(*gems)
12
-
13
- url = [
14
- rubygems_uri,
15
- '?gems=',
16
- gems.map(&:to_s).join(',')
17
- ].join
18
- body = Geminabox.http_adapter.get_content(url)
19
- Marshal.load(body)
20
- rescue Exception => e
21
- return [] if Geminabox.allow_remote_failure
22
- raise e
23
- end
24
-
25
- def rubygems_uri
26
- URI.join(Geminabox.bundler_ruby_gems_url, '/api/v1/dependencies')
27
- end
28
-
29
- end
30
- end
31
- end
32
-