aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-15 20:52:48 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-15 20:52:48 +0000
commit1cefad432e2aca805ae2451aedf40ce88636f95a (patch)
tree0f1047bcd71fbe4994a8ae382324e65c915b3999
parent1cde307767f375bf88d57426259a05b0f567e4ed (diff)
downloadruby-1cefad432e2aca805ae2451aedf40ce88636f95a.tar.gz
* lib/gserver.rb: [DOC] Fixed typo in example by @stomar [Bug #9543] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/gserver.rb12
2 files changed, 10 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index cff07e679a..ca6dc82583 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Mar 16 05:51:55 2014 Zachary Scott <e@zzak.io>
+
+ * lib/gserver.rb: [DOC] Fixed typo in example by @stomar [Bug #9543]
+
Sat Mar 15 18:54:03 2014 Kazuki Tsujimoto <kazuki@callcc.net>
* ext/.document: remove refinement from documentable directories.
diff --git a/lib/gserver.rb b/lib/gserver.rb
index 4d566fcf2e..d7b4a0783e 100644
--- a/lib/gserver.rb
+++ b/lib/gserver.rb
@@ -37,7 +37,7 @@ require "thread"
# super(port, *args)
# end
# def serve(io)
-# io.puts(Time.now.to_s)
+# io.puts(Time.now.to_i)
# end
# end
#
@@ -144,7 +144,7 @@ class GServer
attr_reader :port
# Host on which to bind, as a String
attr_reader :host
- # Maximum number of connections to accept at at ime, as a Fixnum
+ # Maximum number of connections to accept at a time, as a Fixnum
attr_reader :maxConnections
# IO Device on which log messages should be written
attr_accessor :stdlog
@@ -156,7 +156,7 @@ class GServer
# Called when a client connects, if auditing is enabled.
#
- # +client+:: a TCPSocket instances representing the client that connected
+ # +client+:: a TCPSocket instance representing the client that connected
#
# Return true to allow this client to connect, false to prevent it.
def connecting(client)
@@ -192,7 +192,7 @@ class GServer
# Called if #debug is true whenever an unhandled exception is raised.
# This implementation simply logs the backtrace.
#
- # +detail+:: The Exception that was caught
+ # +detail+:: the Exception that was caught
def error(detail)
log(detail.backtrace.join("\n"))
end
@@ -212,9 +212,9 @@ class GServer
# Create a new server
#
- # +port+:: the port, as a Fixnum, on which to listen.
+ # +port+:: the port, as a Fixnum, on which to listen
# +host+:: the host to bind to
- # +maxConnections+:: The maximum number of simultaneous connections to
+ # +maxConnections+:: the maximum number of simultaneous connections to
# accept
# +stdlog+:: IO device on which to log messages
# +audit+:: if true, lifecycle callbacks will be called. See #audit