Class: Bundler::PubGrub::StaticPackageSource
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
BasicPackageSource
|
|
Instance Chain:
self,
BasicPackageSource
|
|
Inherits: |
Bundler::PubGrub::BasicPackageSource
|
Defined in: | lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb |
Class Method Summary
BasicPackageSource
- Inherited
Instance Method Summary
- #all_versions_for(package)
- #dependencies_for(package, version)
- #parse_dependency(package, dependency)
- #root_dependencies
BasicPackageSource
- Inherited
#all_versions_for | Override me! |
#dependencies_for | Override me! |
#incompatibilities_for, #no_versions_incompatibility_for, | |
#parse_dependency | Override me! |
#root_dependencies | Override me! |
#sort_versions_by_preferred | Override me (maybe). |
#versions_for |
Constructor Details
.new {|DSL.new(@packages, @root_deps)| ... } ⇒ StaticPackageSource
Instance Method Details
#all_versions_for(package)
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb', line 42
def all_versions_for(package) @packages[package].keys end
#dependencies_for(package, version)
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb', line 50
def dependencies_for(package, version) @packages[package][version] end
#parse_dependency(package, dependency)
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb', line 54
def parse_dependency(package, dependency) return false unless @packages.key?(package) Bundler::PubGrub::RubyGems.parse_constraint(package, dependency) end
#root_dependencies
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb', line 46
def root_dependencies @root_deps end