class Bundler::PubGrub::StaticPackageSource

Public Class Methods

new() { |dsl| ... } click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 26
def initialize
  @root_deps = {}
  @packages = {}

  yield DSL.new(@packages, @root_deps)

  super()
end

Public Instance Methods

all_versions_for(package) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 35
def all_versions_for(package)
  @packages[package].keys
end
dependencies_for(package, version) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 43
def dependencies_for(package, version)
  @packages[package][version]
end
parse_dependency(package, dependency) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 47
def parse_dependency(package, dependency)
  return false unless @packages.key?(package)

  Bundler::PubGrub::RubyGems.parse_constraint(package, dependency)
end
root_dependencies() click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 39
def root_dependencies
  @root_deps
end