BigW Consortium Gitlab

gemspec.rb 441 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
module BlobViewer
  class Gemspec < DependencyManager
    include ServerSide

    self.file_types = %i(gemspec)

    def manager_name
      'RubyGems'
    end

    def manager_url
      'https://rubygems.org/'
    end

    def package_type
      'gem'
    end

    def package_name
      @package_name ||= package_name_from_method_call('name')
    end

    def package_url
      "https://rubygems.org/gems/#{package_name}"
    end
  end
end