# File lib/bundler/lazy_specification.rb, line 28 def ==(other) [name, version, dependencies, platform, source] == [other.name, other.version, other.dependencies, other.platform, other.source] 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 20 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 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.