From f89f194dcbe4f2e63b0bc173906e204ab60373ff Mon Sep 17 00:00:00 2001 From: Kitten King <53072918+kittenking@users.noreply.github.com> Date: Mon, 22 Jul 2019 20:03:19 +0530 Subject: [PATCH] Fix Typos (#1859) --- lib/puma/configuration.rb | 4 ++-- lib/puma/reactor.rb | 2 +- test/test_integration.rb | 4 ++-- tools/jungle/init.d/puma | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/puma/configuration.rb b/lib/puma/configuration.rb index 900a0105..6034520a 100644 --- a/lib/puma/configuration.rb +++ b/lib/puma/configuration.rb @@ -20,7 +20,7 @@ module Puma # In this class any "user" specified options take precedence over any # "file" specified options, take precedence over any "default" options. # - # User input is prefered over "defaults": + # User input is preferred over "defaults": # user_options = { foo: "bar" } # default_options = { foo: "zoo" } # options = UserFileDefaultOptions.new(user_options, default_options) @@ -32,7 +32,7 @@ module Puma # puts options.all_of(:foo) # # => ["bar", "zoo"] # - # A "file" option can be set. This config will be prefered over "default" options + # A "file" option can be set. This config will be preferred over "default" options # but will defer to any available "user" specified options. # # user_options = { foo: "bar" } diff --git a/lib/puma/reactor.rb b/lib/puma/reactor.rb index 0d419cfd..5bf10f2c 100644 --- a/lib/puma/reactor.rb +++ b/lib/puma/reactor.rb @@ -23,7 +23,7 @@ module Puma # A connection comes into a `Puma::Server` instance, it is then passed to a `Puma::Reactor` instance, # which stores it in an array and waits for any of the connections to be ready for reading. # - # The waiting/wake up is performed with nio4r, which will use the apropriate backend (libev, Java NIO or + # The waiting/wake up is performed with nio4r, which will use the appropriate backend (libev, Java NIO or # just plain IO#select). The call to `NIO::Selector#select` will "wake up" and # return the references to any objects that caused it to "wake". The reactor # then loops through each of these request objects, and sees if they're complete. If they diff --git a/test/test_integration.rb b/test/test_integration.rb index 94176ac1..c07c308f 100644 --- a/test/test_integration.rb +++ b/test/test_integration.rb @@ -210,7 +210,7 @@ class TestIntegration < Minitest::Test skip_on :jruby # we run ls to get a 'safe' pid to pass off as puma in cli stop - # do not want to accidently kill a valid other process + # do not want to accidentally kill a valid other process io = IO.popen(windows? ? "dir" : "ls") safe_pid = io.pid Process.wait safe_pid @@ -276,7 +276,7 @@ class TestIntegration < Minitest::Test rescue Errno::ECONNREFUSED # connection was was never accepted # it can therefore be re-tried before the - # client receives an empty reponse + # client receives an empty response next_replies << :connection_refused end end diff --git a/tools/jungle/init.d/puma b/tools/jungle/init.d/puma index 5f9e036f..32fe85d6 100755 --- a/tools/jungle/init.d/puma +++ b/tools/jungle/init.d/puma @@ -398,7 +398,7 @@ case "$1" in ;; remove) if [ "$#" -lt 2 ]; then - echo "Please, specifiy the app's directory to remove." + echo "Please, specify the app's directory to remove." exit 1 else do_remove $2