Skip to content

Commit 0e40e7d

Browse files
committed
misc: fix spelling
1 parent bce0fb2 commit 0e40e7d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/rubygems/specification.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def self.find_in_unresolved(path)
10021002
def self.find_in_unresolved_tree(path)
10031003
unresolved_specs.each do |spec|
10041004
spec.traverse do |_from_spec, _dep, to_spec, trail|
1005-
if to_spec.has_conflicts? || to_spec.conficts_when_loaded_with?(trail)
1005+
if to_spec.has_conflicts? || to_spec.conflicts_when_loaded_with?(trail)
10061006
:next
10071007
else
10081008
return trail.reverse if to_spec.contains_requirable_file? path
@@ -1649,7 +1649,7 @@ def conflicts
16491649
##
16501650
# return true if there will be conflict when spec if loaded together with the list of specs.
16511651

1652-
def conficts_when_loaded_with?(list_of_specs) # :nodoc:
1652+
def conflicts_when_loaded_with?(list_of_specs) # :nodoc:
16531653
result = list_of_specs.any? do |spec|
16541654
spec.runtime_dependencies.any? {|dep| (dep.name == name) && !satisfies_requirement?(dep) }
16551655
end

test/rubygems/test_gem_command_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_find_login_alias_command
4343
assert_kind_of Gem::Commands::SigninCommand, command
4444
end
4545

46-
def test_find_logout_alias_comamnd
46+
def test_find_logout_alias_command
4747
command = @command_manager.find_command "logout"
4848

4949
assert_kind_of Gem::Commands::SignoutCommand, command

test/rubygems/test_gem_installer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,10 +1938,10 @@ def spec.validate(*args); end
19381938
end
19391939

19401940
def test_pre_install_checks_malicious_platform_before_eval
1941-
gem_with_ill_formated_platform = File.expand_path("packages/ill-formatted-platform-1.0.0.10.gem", __dir__)
1941+
gem_with_ill_formatted_platform = File.expand_path("packages/ill-formatted-platform-1.0.0.10.gem", __dir__)
19421942

19431943
installer = Gem::Installer.at(
1944-
gem_with_ill_formated_platform,
1944+
gem_with_ill_formatted_platform,
19451945
install_dir: @gemhome,
19461946
user_install: false,
19471947
force: true

test/rubygems/test_webauthn_listener.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def teardown
1717
super
1818
end
1919

20-
def test_listener_thread_retreives_otp_code
20+
def test_listener_thread_retrieves_otp_code
2121
thread = Gem::GemcutterUtilities::WebauthnListener.listener_thread(Gem.host, @server)
2222
Gem::MockBrowser.get Gem::URI("http://localhost:#{@port}?code=xyz")
2323

0 commit comments

Comments
 (0)