diff options
author | John Bampton <[email protected]> | 2025-05-29 05:30:38 +1000 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-06-03 07:47:14 +0900 |
commit | a763716a9682f367ee664f1f43e36daac9839cbe (patch) | |
tree | 05a00f42bce7e62a04e934dbbbd5ef5dac1d36b0 /lib | |
parent | d6aa1714fed3e8b5ee8bede00a8853c338ff6092 (diff) |
[rubygems/rubygems] misc: fix spelling
https://github.com/rubygems/rubygems/commit/0e40e7d938
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/specification.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 0b905a7ea7..68ebbf8bc3 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1002,7 +1002,7 @@ class Gem::Specification < Gem::BasicSpecification def self.find_in_unresolved_tree(path) unresolved_specs.each do |spec| spec.traverse do |_from_spec, _dep, to_spec, trail| - if to_spec.has_conflicts? || to_spec.conficts_when_loaded_with?(trail) + if to_spec.has_conflicts? || to_spec.conflicts_when_loaded_with?(trail) :next else return trail.reverse if to_spec.contains_requirable_file? path @@ -1649,7 +1649,7 @@ class Gem::Specification < Gem::BasicSpecification ## # return true if there will be conflict when spec if loaded together with the list of specs. - def conficts_when_loaded_with?(list_of_specs) # :nodoc: + def conflicts_when_loaded_with?(list_of_specs) # :nodoc: result = list_of_specs.any? do |spec| spec.runtime_dependencies.any? {|dep| (dep.name == name) && !satisfies_requirement?(dep) } end |