Array
# File lib/bundler/resolver.rb, line 66 def activate_platform(platform) unless @activated.include?(platform) @activated << platform return __dependencies[platform] || [] end [] end
# File lib/bundler/resolver.rb, line 86 def for?(platform) @specs[platform] end
# File lib/bundler/resolver.rb, line 44 def initialize_copy(o) super @required_by = o.required_by.dup @activated = o.activated.dup end
# File lib/bundler/resolver.rb, line 74 def name @name ||= first.name end
# File lib/bundler/resolver.rb, line 82 def source @source ||= first.source end
# File lib/bundler/resolver.rb, line 90 def to_s "#{name} (#{version})" end
# File lib/bundler/resolver.rb, line 50 def to_specs specs = {} @activated.each do |p| if s = @specs[p] platform = generic(Gem::Platform.new(s.platform)) next if specs[platform] lazy_spec = LazySpecification.new(name, version, platform, source) lazy_spec.dependencies.replace s.dependencies specs[platform] = lazy_spec end end specs.values end
Generated with the Darkfish Rdoc Generator 2.