# File lib/geminabox/gem_version.rb, line 18 def <=>(other) sort = other.name <=> name sort = version <=> other.version if sort.zero? sort = (other.ruby? && !ruby?) ? 1 : -1 if sort.zero? && ruby? != other.ruby? sort = other.platform <=> platform if sort.zero? sort end
# File lib/geminabox/gem_version.rb, line 27 def ==(other) return false unless other.class == self.class [name, number, platform] == [other.name, other.number, other.platform] end
# File lib/geminabox/gem_version.rb, line 32 def gemfile_name included_platform = ruby? ? nil : platform [name, number, included_platform].compact.join('-') end
Generated with the Darkfish Rdoc Generator 2.