lib/bowline/dependencies/lib/ext/rubygems.rb in bowline-0.5.3 vs lib/bowline/dependencies/lib/ext/rubygems.rb in bowline-0.5.4

- old
+ new

@@ -20,11 +20,11 @@ "you required #{dep}" end end end) -class ::Gem::Uninstaller +class ::Gem::Uninstaller #:nodoc: def self._with_silent_ui ui = Gem::DefaultUserInteraction.ui def ui.say(str) puts "- #{str}" @@ -62,11 +62,11 @@ ::Gem::Uninstaller._uninstall_others( source_index, installer.spec.name, installer.spec.version ) end) -class ::Gem::DependencyInstaller +class ::Gem::DependencyInstaller #:nodoc: alias old_fg find_gems_with_sources def find_gems_with_sources(dep) if @source_index.any? { |_, installed_spec| installed_spec.satisfies_requirement?(dep) @@ -76,11 +76,11 @@ old_fg(dep) end end -class ::Gem::SpecFetcher +class ::Gem::SpecFetcher #:nodoc: alias old_fetch fetch def fetch(*args) # in rubygems 1.3.2 fetch takes 4 parameters dependency, all, matching_platform, prerelease = *args idx = Gem::SourceIndex.from_installed_gems @@ -100,10 +100,10 @@ old_fetch(*args) end end end -class ::Gem::Specification +class ::Gem::Specification #:nodoc: def recursive_dependencies(from, index = Gem.source_index) specs = self.runtime_dependencies.map do |dep| spec = index.search(dep).last unless spec raise "Needed #{dep} for #{from}, but could not find it" \ No newline at end of file