Class Gem::Specification
In: lib/extlib/rubygems.rb
Parent: Object
Specification SourceIndex lib/extlib/rubygems.rb Gem dot/m_20_0.png

Methods

sort_obj  

Public Instance methods

Overwrite this so that gems in the gems directory get preferred over gems from any other location. If there are two gems of different versions in the gems directory, the later one will load as usual.

@return <Array[Array]> The object used for sorting gem specs.

[Source]

    # File lib/extlib/rubygems.rb, line 34
34:     def sort_obj
35:       [@name, installation_path == File.join(defined?(Merb) && Merb.respond_to?(:root) ? Merb.root : Dir.pwd,"gems") ? 1 : -1, @version.to_ints, @new_platform == Gem::Platform::RUBY ? -1 : 1]
36:     end

[Validate]