gitlab-org--gitlab-foss/app/models/blob_viewer/podspec.rb
2018-08-03 01:44:16 -07:00

29 lines
475 B
Ruby

# frozen_string_literal: true
module BlobViewer
class Podspec < DependencyManager
include ServerSide
self.file_types = %i(podspec)
def manager_name
'CocoaPods'
end
def manager_url
'https://cocoapods.org/'
end
def package_type
'pod'
end
def package_name
@package_name ||= package_name_from_method_call('name')
end
def package_url
"https://cocoapods.org/pods/#{package_name}"
end
end
end