# File lib/bundler/lazy_specification.rb, line 29 def ==(other) identifier == other.identifier end
# File lib/bundler/lazy_specification.rb, line 52 def __materialize__ @specification = source.specs.search(Gem::Dependency.new(name, version)).last end
# File lib/bundler/lazy_specification.rb, line 21 def full_name if platform == Gem::Platform::RUBY or platform.nil? then "#{@name}-#{@version}" else "#{@name}-#{@version}-#{platform}" end end
# File lib/bundler/lazy_specification.rb, line 64 def identifier @__identifier ||= [name, version, source, platform, dependencies].hash end
# File lib/bundler/lazy_specification.rb, line 56 def respond_to?(*args) super || @specification.respond_to?(*args) end
# File lib/bundler/lazy_specification.rb, line 33 def satisfies?(dependency) @name == dependency.name && dependency.requirement.satisfied_by?(Gem::Version.new(@version)) end
# File lib/bundler/lazy_specification.rb, line 37 def to_lock if platform == Gem::Platform::RUBY or platform.nil? out = " #{name} (#{version})\n" else out = " #{name} (#{version}-#{platform})\n" end dependencies.sort_by {|d| d.to_s }.each do |dep| next if dep.type == :development out << " #{dep.to_lock}\n" end out end
Generated with the Darkfish Rdoc Generator 2.