Sha256: 06c112479c0e0674b19edc1023f54c77e1fddc291d7a00541101ad86412e3e2b

Contents?: true

Size: 716 Bytes

Versions: 7

Compression:

Stored size: 716 Bytes

Contents

module Jets::Api
  class Gems < Base
    class << self
      def download(params={})
        params = global_params.merge(params)
        api.post("gems/download", params)
      end

      def exist(params={})
        params = global_params.merge(params)
        api.post("gems/exist", params)
      end

      def report(params={})
        params = global_params.merge(params)
        api.post("gems/report", params)
      end

      def registered(params={})
        params = global_params.merge(params)
        api.post("gems/registered", params)
      end

      def ruby_folder
        major, minor, _ = RUBY_VERSION.split('.')
        [major, minor, '0'].join('.') # 2.5.1 => 2.5.0
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jets-api-0.2.0 lib/jets/api/gems.rb
jets-api-0.1.5 lib/jets/api/gems.rb
jets-api-0.1.4 lib/jets/api/gems.rb
jets-api-0.1.3 lib/jets/api/gems.rb
jets-api-0.1.2 lib/jets/api/gems.rb
jets-api-0.1.1 lib/jets/api/gems.rb
jets-api-0.1.0 lib/jets/api/gems.rb