module Polisher::RPM::RequirementGemReference
Public Class Methods
included(base)
click to toggle source
# File lib/polisher/rpm/requirement/gem_reference.rb, line 9 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
gem?()
click to toggle source
Whether or not this requirement specified a ruby gem dependency
# File lib/polisher/rpm/requirement/gem_reference.rb, line 34 def gem? !!(str =~ RPM::Spec::SPEC_GEM_REQ_MATCHER) end
gem_name()
click to toggle source
Return the name of the gem which this requirement is for. Returns nil if this is not a gem requirement
# File lib/polisher/rpm/requirement/gem_reference.rb, line 40 def gem_name # XXX need to explicitly run regex here to get $1 !!(str =~ RPM::Spec::SPEC_GEM_REQ_MATCHER) ? $1 : nil end