ruby-changes:41189
From: a_matsuda <ko1@a...>
Date: Wed, 23 Dec 2015 12:43:32 +0900 (JST)
Subject: [ruby-changes:41189] a_matsuda:r53261 (trunk): [DOC] Fix typos
a_matsuda 2015-12-23 12:43:23 +0900 (Wed, 23 Dec 2015) New Revision: 53261 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53261 Log: [DOC] Fix typos * benchmark.rb * getoptlong.rb * irb.rb * net/http.rb * net/http/header.rb * net/imap.rb * optparse.rb * pstore.rb * webrick.rb * xmlrpc.rb [ci skip] Modified files: trunk/lib/benchmark.rb trunk/lib/getoptlong.rb trunk/lib/irb.rb trunk/lib/net/http/header.rb trunk/lib/net/http.rb trunk/lib/net/imap.rb trunk/lib/optparse.rb trunk/lib/pstore.rb trunk/lib/webrick.rb trunk/lib/xmlrpc.rb Index: lib/webrick.rb =================================================================== --- lib/webrick.rb (revision 53260) +++ lib/webrick.rb (revision 53261) @@ -9,7 +9,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/webrick.rb#L9 # # A WEBrick server can be composed of multiple WEBrick servers or servlets to # provide differing behavior on a per-host or per-path basis. WEBrick -# includes servlets for handling CGI scripts, ERb pages, Ruby blocks and +# includes servlets for handling CGI scripts, ERB pages, Ruby blocks and # directory listings. # # WEBrick also includes tools for daemonizing a process and starting a process Index: lib/xmlrpc.rb =================================================================== --- lib/xmlrpc.rb (revision 53260) +++ lib/xmlrpc.rb (revision 53261) @@ -71,7 +71,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/xmlrpc.rb#L71 # # * General # * possible to choose between XMLParser module (Expat wrapper) and REXML/NQXML (pure Ruby) parsers -# * Marshalling Ruby objects to Hashs and reconstruct them later from a Hash +# * Marshalling Ruby objects to Hashes and reconstruct them later from a Hash # * SandStorm component architecture XMLRPC::Client interface # # == Howto Index: lib/benchmark.rb =================================================================== --- lib/benchmark.rb (revision 53260) +++ lib/benchmark.rb (revision 53261) @@ -26,7 +26,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/benchmark.rb#L26 # # puts Benchmark.measure { "a"*1_000_000_000 } # -# On my machine (OSX 10.8.3 on i5 1.7 Ghz) this generates: +# On my machine (OSX 10.8.3 on i5 1.7 GHz) this generates: # # 0.350000 0.400000 0.750000 ( 0.835234) # Index: lib/pstore.rb =================================================================== --- lib/pstore.rb (revision 53260) +++ lib/pstore.rb (revision 53261) @@ -190,7 +190,7 @@ class PStore https://github.com/ruby/ruby/blob/trunk/lib/pstore.rb#L190 # store.transaction do # begin transaction # # load some data into the store... # store[:single_object] = "My data..." - # store[:obj_heirarchy] = { "Kev Jackson" => ["rational.rb", "pstore.rb"], + # store[:obj_hierarchy] = { "Kev Jackson" => ["rational.rb", "pstore.rb"], # "James Gray" => ["erb.rb", "pstore.rb"] } # end # commit changes to data store file # Index: lib/getoptlong.rb =================================================================== --- lib/getoptlong.rb (revision 53260) +++ lib/getoptlong.rb (revision 53261) @@ -575,7 +575,7 @@ class GetoptLong https://github.com/ruby/ruby/blob/trunk/lib/getoptlong.rb#L575 else # # This is a non-option argument. - # Only RETURN_IN_ORDER falled into here. + # Only RETURN_IN_ORDER fell into here. # return '', argument end Index: lib/optparse.rb =================================================================== --- lib/optparse.rb (revision 53260) +++ lib/optparse.rb (revision 53261) @@ -120,7 +120,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L120 # # -n, --name=NAME Name to say hello to # # -h, --help Prints this help # -# === Required Arugments +# === Required Arguments # # For options that require an argument, option specification strings may include an # option name in all caps. If an option is used without the required argument, @@ -175,7 +175,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L175 # As an example, the built-in +Time+ conversion is used. The other built-in # conversions behave in the same way. # OptionParser will attempt to parse the argument -# as a +Time+. If it succeeeds, that time will be passed to the +# as a +Time+. If it succeeds, that time will be passed to the # handler block. Otherwise, an exception will be raised. # # require 'optparse' Index: lib/irb.rb =================================================================== --- lib/irb.rb (revision 53260) +++ lib/irb.rb (revision 53261) @@ -329,7 +329,7 @@ require "irb/locale" https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L329 # irb.3(<Foo:0x4010af3c>):003:0> bar #=> bar => nil # # kill jobs 1, 2, and 3 # irb.3(<Foo:0x4010af3c>):004:0> kill 1, 2, 3 -# # list open sesssions, should only include main session +# # list open sessions, should only include main session # irb(main):009:0> jobs # #0->irb on main (#<Thread:0x400fb7e4> : running) # # quit irb @@ -344,7 +344,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L344 # Displays current configuration. # - # Modifing the configuration is achieved by sending a message to IRB.conf. + # Modifying the configuration is achieved by sending a message to IRB.conf. # # See IRB@Configuration for more information. def IRB.conf Index: lib/net/http/header.rb =================================================================== --- lib/net/http/header.rb (revision 53260) +++ lib/net/http/header.rb (revision 53261) @@ -378,7 +378,7 @@ module Net::HTTPHeader https://github.com/ruby/ruby/blob/trunk/lib/net/http/header.rb#L378 # +params+ is the form data set; it is an Array of Arrays or a Hash # +enctype is the type to encode the form data set. # It is application/x-www-form-urlencoded or multipart/form-data. - # +formpot+ is an optional hash to specify the detail. + # +formopt+ is an optional hash to specify the detail. # # boundary:: the boundary of the multipart message # charset:: the charset of the message. All names and the values of Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 53260) +++ lib/net/http.rb (revision 53261) @@ -929,7 +929,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L929 while true raise Net::OpenTimeout if timeout <= 0 start = Process.clock_gettime Process::CLOCK_MONOTONIC - # to_io is requied because SSLSocket doesn't have wait_readable yet + # to_io is required because SSLSocket doesn't have wait_readable yet case s.connect_nonblock(exception: false) when :wait_readable; s.to_io.wait_readable(timeout) when :wait_writable; s.to_io.wait_writable(timeout) Index: lib/net/imap.rb =================================================================== --- lib/net/imap.rb (revision 53260) +++ lib/net/imap.rb (revision 53261) @@ -779,7 +779,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/imap.rb#L779 # # The +set+ parameter is a number or a range between two numbers, # or an array of those. The number is a message sequence number, - # where -1 repesents a '*' for use in range notation like 100..-1 + # where -1 represents a '*' for use in range notation like 100..-1 # being interpreted as '100:*'. Beware that the +exclude_end?+ # property of a Range object is ignored, and the contents of a # range are independent of the order of the range endpoints as per -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/