Fix typo
Credits goes to @ekohl for noticing this: https://src.fedoraproject.org/rpms/ruby/pull-request/186#comment-214161
This commit is contained in:
parent
68e8d5a90b
commit
4d2320dc9b
@ -19,7 +19,7 @@ module RubyGemsReq
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Report conflicting gem dependencies including their version.
|
# Report conflicting gem dependencies including their version.
|
||||||
def self.gem_depenencies(specification)
|
def self.gem_dependencies(specification)
|
||||||
specification.runtime_dependencies.each do |dependency|
|
specification.runtime_dependencies.each do |dependency|
|
||||||
conflict_strings = Helpers::requirement_versions_to_rpm(dependency.requirement).map do |requirement|
|
conflict_strings = Helpers::requirement_versions_to_rpm(dependency.requirement).map do |requirement|
|
||||||
requirement_string = "rubygem(#{dependency.name}) #{requirement}"
|
requirement_string = "rubygem(#{dependency.name}) #{requirement}"
|
||||||
@ -39,7 +39,7 @@ module RubyGemsReq
|
|||||||
begin
|
begin
|
||||||
specification = Gem::Specification.load filename
|
specification = Gem::Specification.load filename
|
||||||
|
|
||||||
gem_depenencies(specification)
|
gem_dependencies(specification)
|
||||||
rescue => e
|
rescue => e
|
||||||
# Ignore all errors.
|
# Ignore all errors.
|
||||||
end
|
end
|
||||||
|
@ -58,7 +58,7 @@ module RubyGemsReq
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Report all gem dependencies including their version.
|
# Report all gem dependencies including their version.
|
||||||
def self.gem_depenencies(specification)
|
def self.gem_dependencies(specification)
|
||||||
specification.runtime_dependencies.each do |dependency|
|
specification.runtime_dependencies.each do |dependency|
|
||||||
dependency_name = "rubygem(#{dependency.name})"
|
dependency_name = "rubygem(#{dependency.name})"
|
||||||
requirements = Helpers::requirement_versions_to_rpm(dependency.requirement)
|
requirements = Helpers::requirement_versions_to_rpm(dependency.requirement)
|
||||||
@ -75,7 +75,7 @@ module RubyGemsReq
|
|||||||
specification = Gem::Specification.load filename
|
specification = Gem::Specification.load filename
|
||||||
|
|
||||||
rubygems_dependency(specification)
|
rubygems_dependency(specification)
|
||||||
gem_depenencies(specification)
|
gem_dependencies(specification)
|
||||||
rescue => e
|
rescue => e
|
||||||
# Ignore all errors.
|
# Ignore all errors.
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user