Represents all dependencies
# File bundler/installer/parallel_installer.rb, line 68
def all_dependencies
@spec.dependencies
end
Represents only the non-development dependencies, the ones that are itself and are in the total list.
# File bundler/installer/parallel_installer.rb, line 56
def dependencies
@dependencies ||= begin
all_dependencies.reject {|dep| ignorable_dependency? dep }
end
end
Checks installed dependencies against spec's dependencies to make sure needed dependencies have been installed.
# File bundler/installer/parallel_installer.rb, line 49
def dependencies_installed?(all_specs)
installed_specs = all_specs.select(&:installed?).map(&:name)
dependencies.all? {|d| installed_specs.include? d.name }
end
# File bundler/installer/parallel_installer.rb, line 22
def enqueued?
state == :enqueued
end
# File bundler/installer/parallel_installer.rb, line 26
def failed?
state == :failed
end
# File bundler/installer/parallel_installer.rb, line 39
def has_post_install_message?
!post_install_message.empty?
end
# File bundler/installer/parallel_installer.rb, line 43
def ignorable_dependency?(dep)
dep.type == :development || dep.name == @name
end
# File bundler/installer/parallel_installer.rb, line 30
def installation_attempted?
installed? || failed?
end
# File bundler/installer/parallel_installer.rb, line 18
def installed?
state == :installed
end
# File bundler/installer/parallel_installer.rb, line 62
def missing_lockfile_dependencies(all_spec_names)
deps = all_dependencies.reject {|dep| ignorable_dependency? dep }
deps.reject {|dep| all_spec_names.include? dep.name }
end