class Polisher::Upstream
Public Class Methods
parse(source)
click to toggle source
Parse the specified upstream source, automatically dispatches to correct upstream parser depending on format of specified source
@returns instance of class representing parsed source
# File lib/polisher/adaptors/upstream.rb, line 17 def self.parse(source) if source.gem? Polisher::Gem.parse(:gem => source) elsif source.gemspec? Polisher::Gem.parse(:gemspec => source) elsif source.gemfile? Polisher::Gemfile.parse(source) end end