ruby-changes:48244
From: hsbt <ko1@a...>
Date: Sun, 22 Oct 2017 20:27:12 +0900 (JST)
Subject: [ruby-changes:48244] hsbt:r60359 (trunk): Fixed misspelling words.
hsbt 2017-10-22 20:27:06 +0900 (Sun, 22 Oct 2017) New Revision: 60359 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60359 Log: Fixed misspelling words. These are detected by https://github.com/client9/misspell Modified files: trunk/ext/fcntl/fcntl.c trunk/ext/socket/lib/socket.rb trunk/ext/win32/lib/win32/sspi.rb trunk/lib/net/http/header.rb trunk/lib/racc/rdoc/grammar.en.rdoc trunk/test/-ext-/string/test_capacity.rb trunk/test/net/imap/test_imap.rb trunk/test/net/imap/test_imap_response_parser.rb trunk/test/pathname/test_pathname.rb trunk/test/ruby/test_array.rb trunk/test/ruby/test_class.rb trunk/test/ruby/test_fiber.rb trunk/test/ruby/test_io.rb trunk/test/ruby/test_syntax.rb Index: test/net/imap/test_imap_response_parser.rb =================================================================== --- test/net/imap/test_imap_response_parser.rb (revision 60358) +++ test/net/imap/test_imap_response_parser.rb (revision 60359) @@ -247,7 +247,7 @@ EOF https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap_response_parser.rb#L247 assert_equal("AUTH=PLAIN", response.data.last) end - def test_mixed_boundry + def test_mixed_boundary parser = Net::IMAP::ResponseParser.new response = parser.parse("* 2688 FETCH (UID 179161 BODYSTRUCTURE (" \ "(\"TEXT\" \"PLAIN\" (\"CHARSET\" \"iso-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 200 4 NIL NIL NIL)" \ Index: test/net/imap/test_imap.rb =================================================================== --- test/net/imap/test_imap.rb (revision 60358) +++ test/net/imap/test_imap.rb (revision 60359) @@ -315,7 +315,7 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L315 imap.idle(0.2) do |res| responses.push(res) end - # There is no gurantee that this thread has received all the responses, + # There is no guarantee that this thread has received all the responses, # so check the response length. if responses.length > 0 assert_instance_of(Net::IMAP::ContinuationRequest, responses[0]) @@ -328,7 +328,7 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L328 end end end - # Also, there is no gurantee that the server thread has stored + # Also, there is no guarantee that the server thread has stored # all the requests into the array, so check the length. if requests.length > 0 assert_equal("RUBY0001 IDLE\r\n", requests[0]) Index: test/pathname/test_pathname.rb =================================================================== --- test/pathname/test_pathname.rb (revision 60358) +++ test/pathname/test_pathname.rb (revision 60359) @@ -544,7 +544,7 @@ class TestPathname < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/pathname/test_pathname.rb#L544 defassert(:pathsubext, 'lex.yy.o', 'lex.yy.c', '.o') defassert(:pathsubext, 'fooaa.o', 'fooaa', '.o') defassert(:pathsubext, 'd.e/aa.o', 'd.e/aa', '.o') - defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embeded[ruby-core:31640]', '.bug-3664') + defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embedded[ruby-core:31640]', '.bug-3664') def test_sub_matchdata result = Pathname("abc.gif").sub(/\..*/) { Index: test/-ext-/string/test_capacity.rb =================================================================== --- test/-ext-/string/test_capacity.rb (revision 60358) +++ test/-ext-/string/test_capacity.rb (revision 60359) @@ -8,7 +8,7 @@ class Test_StringCapacity < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_capacity.rb#L8 Bug::String.capacity(str) end - def test_capacity_embeded + def test_capacity_embedded size = RbConfig::SIZEOF['void*'] * 3 - 1 assert_equal size, capa('foo') end Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 60358) +++ test/ruby/test_io.rb (revision 60359) @@ -3586,7 +3586,7 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3586 after = ObjectSpace.count_objects(res)[:T_STRING] assert_equal before, after, 'no strings left over after write [ruby-core:78898] [Bug #13085]' - assert_not_predicate buf, :frozen?, 'no inadvertant freeze' + assert_not_predicate buf, :frozen?, 'no inadvertent freeze' assert_equal buf.bytesize, n, 'IO#write wrote expected size' assert_equal s, n, 'IO#syswrite wrote expected size' end Index: test/ruby/test_syntax.rb =================================================================== --- test/ruby/test_syntax.rb (revision 60358) +++ test/ruby/test_syntax.rb (revision 60359) @@ -1041,7 +1041,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L1041 begin; tap do result << :begin - raise "An exception occured!" + raise "An exception occurred!" ensure result << :ensure end @@ -1057,7 +1057,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L1057 begin; tap do result << :begin - raise "An exception occured!" + raise "An exception occurred!" rescue result << :rescue else Index: test/ruby/test_class.rb =================================================================== --- test/ruby/test_class.rb (revision 60358) +++ test/ruby/test_class.rb (revision 60359) @@ -89,7 +89,7 @@ class TestClass < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_class.rb#L89 end end - def test_instanciate_singleton_class + def test_instantiate_singleton_class c = class << Object.new; self; end assert_raise(TypeError) { c.new } end Index: test/ruby/test_fiber.rb =================================================================== --- test/ruby/test_fiber.rb (revision 60358) +++ test/ruby/test_fiber.rb (revision 60359) @@ -234,7 +234,7 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L234 assert_instance_of(Class, Fiber.new(&Class.new.method(:undef_method)).resume(:to_s), bug5083) end - def test_prohibit_resume_transfered_fiber + def test_prohibit_resume_transferred_fiber assert_raise(FiberError){ root_fiber = Fiber.current f = Fiber.new{ Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 60358) +++ test/ruby/test_array.rb (revision 60359) @@ -2624,8 +2624,8 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L2624 def test_array_subclass assert_equal(Array2, Array2[1,2,3].uniq.class, "[ruby-dev:34581]") - assert_equal(Array2, Array2[1,2][0,1].class) # embeded - assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embeded + assert_equal(Array2, Array2[1,2][0,1].class) # embedded + assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embedded end def test_inspect Index: lib/racc/rdoc/grammar.en.rdoc =================================================================== --- lib/racc/rdoc/grammar.en.rdoc (revision 60358) +++ lib/racc/rdoc/grammar.en.rdoc (revision 60359) @@ -16,7 +16,7 @@ You can insert comments about all places https://github.com/ruby/ruby/blob/trunk/lib/racc/rdoc/grammar.en.rdoc#L16 The class block is formed like this: class CLASS_NAME - [precedance table] + [precedence table] [token declarations] [expected number of S/R conflicts] [options] Index: lib/net/http/header.rb =================================================================== --- lib/net/http/header.rb (revision 60358) +++ lib/net/http/header.rb (revision 60359) @@ -77,7 +77,7 @@ module Net::HTTPHeader https://github.com/ruby/ruby/blob/trunk/lib/net/http/header.rb#L77 else val = val.to_s if /[\r\n]/n.match?(val.b) - raise ArgumentError, 'header field value cannnot include CR/LF' + raise ArgumentError, 'header field value cannot include CR/LF' end @header[key.downcase] = [val] end @@ -90,7 +90,7 @@ module Net::HTTPHeader https://github.com/ruby/ruby/blob/trunk/lib/net/http/header.rb#L90 else val = val.to_s if /[\r\n]/n.match?(val.b) - raise ArgumentError, 'header field value cannnot include CR/LF' + raise ArgumentError, 'header field value cannot include CR/LF' end ary.push val end Index: ext/socket/lib/socket.rb =================================================================== --- ext/socket/lib/socket.rb (revision 60358) +++ ext/socket/lib/socket.rb (revision 60359) @@ -446,7 +446,7 @@ class BasicSocket < IO https://github.com/ruby/ruby/blob/trunk/ext/socket/lib/socket.rb#L446 # Linux-specific optimizations to avoid fcntl for IO#read_nonblock # and IO#write_nonblock using MSG_DONTWAIT - # Do other platforms suport MSG_DONTWAIT reliably? + # Do other platforms support MSG_DONTWAIT reliably? if RUBY_PLATFORM =~ /linux/ && Socket.const_defined?(:MSG_DONTWAIT) def read_nonblock(len, str = nil, exception: true) # :nodoc: case rv = __recv_nonblock(len, 0, str, exception) Index: ext/win32/lib/win32/sspi.rb =================================================================== --- ext/win32/lib/win32/sspi.rb (revision 60358) +++ ext/win32/lib/win32/sspi.rb (revision 60359) @@ -73,7 +73,7 @@ module Win32 https://github.com/ruby/ruby/blob/trunk/ext/win32/lib/win32/sspi.rb#L73 end end - # Creates binary representaiton of a SecBufferDesc structure, + # Creates binary representations of a SecBufferDesc structure, # including the SecBuffer contained inside. class SecurityBuffer Index: ext/fcntl/fcntl.c =================================================================== --- ext/fcntl/fcntl.c (revision 60358) +++ ext/fcntl/fcntl.c (revision 60359) @@ -68,7 +68,7 @@ Init_fcntl(void) https://github.com/ruby/ruby/blob/trunk/ext/fcntl/fcntl.c#L68 #ifdef F_DUPFD /* Document-const: F_DUPFD * - * Duplicate a file descriptor to the mimimum unused file descriptor + * Duplicate a file descriptor to the minimum unused file descriptor * greater than or equal to the argument. * * The close-on-exec flag of the duplicated file descriptor is set. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/