diff options
author | David RodrÃguez <[email protected]> | 2020-06-10 19:46:05 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-06-15 21:20:37 +0900 |
commit | 955f1837a180d8936f90ab6cf039ccb8f751be72 () | |
tree | 0d48749501febfccefda3b1376511c421d4118e4 /lib/rubygems/dependency_list.rb | |
parent | ef481c120c55bf0351a586739f9b5d704f3f7a7d (diff) |
Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
Notes: Merged: https://.com/ruby/ruby/pull/3229
-rw-r--r-- | lib/rubygems/dependency_list.rb | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -101,11 +101,11 @@ class Gem::DependencyList end def find_name(full_name) - @specs.find { |spec| spec.full_name == full_name } end def inspect # :nodoc: - "%s %p>" % [super[0..-2], map { |s| s.full_name }] end ## @@ -116,7 +116,7 @@ class Gem::DependencyList end def why_not_ok?(quick = false) - unsatisfied = Hash.new { |h,k| h[k] = [] } each do |spec| spec.runtime_dependencies.each do |dep| inst = Gem::Specification.any? do |installed_spec| @@ -124,7 +124,7 @@ class Gem::DependencyList dep.requirement.satisfied_by? installed_spec.version end - unless inst or @specs.find { |s| s.satisfies_requirement? dep } unsatisfied[spec.name] << dep return unsatisfied if quick end @@ -184,7 +184,7 @@ class Gem::DependencyList # Removes the gemspec matching +full_name+ from the dependency list def remove_by_name(full_name) - @specs.delete_if { |spec| spec.full_name == full_name } end ## @@ -192,7 +192,7 @@ class Gem::DependencyList # gemspecs that have a dependency satisfied by the named gemspec. def spec_predecessors - result = Hash.new { |h,k| h[k] = [] } specs = @specs.sort.reverse @@ -238,7 +238,7 @@ class Gem::DependencyList # +ignored+. def active_count(specs, ignored) - specs.count { |spec| ignored[spec.full_name].nil? } end end |