1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/logger.rb: trim tail space of each line. no user visible change.

* lib/rss/dublincore.rb: fixed class definition mismatch.

        * sample/openssl/gen_csr.rb: fixed wrong usage text.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2004-03-26 16:47:16 +00:00
parent d6dc168b22
commit 223d1cb77b
4 changed files with 21 additions and 13 deletions

View file

@ -1,3 +1,11 @@
Sat Mar 27 01:47:09 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
* lib/logger.rb: trim tail space of each line. no user visible change.
* lib/rss/dublincore.rb: fixed class definition mismatch.
* sample/openssl/gen_csr.rb: fixed wrong usage text.
Thu Mar 25 23:15:24 2004 Dave Thomas <dave@pragprog.com> Thu Mar 25 23:15:24 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/ri/ri_options.rb (RI::Options::show_version): * lib/rdoc/ri/ri_options.rb (RI::Options::show_version):

View file

@ -167,7 +167,7 @@
# I, [Wed Mar 03 02:34:24 JST 1999 895701 #19074] INFO -- Main: info. # I, [Wed Mar 03 02:34:24 JST 1999 895701 #19074] INFO -- Main: info.
# #
# You may change the date and time format in this manner: # You may change the date and time format in this manner:
# #
# logger.datetime_format = "%Y-%m-%d %H:%M:%S" # logger.datetime_format = "%Y-%m-%d %H:%M:%S"
# # e.g. "2004-01-03 00:54:26" # # e.g. "2004-01-03 00:54:26"
# #
@ -259,7 +259,7 @@ class Logger
# #
# === Synopsis # === Synopsis
# #
# Logger#add(severity, message = nil, progname = nil) { ... } # Logger#add(severity, message = nil, progname = nil) { ... }
# #
# === Args # === Args
@ -355,18 +355,18 @@ class Logger
# #
# === Examples # === Examples
# #
# logger.info("MainApp") { "Received connection from #{ip}" } # logger.info("MainApp") { "Received connection from #{ip}" }
# # ... # # ...
# logger.info "Waiting for input from user" # logger.info "Waiting for input from user"
# # ... # # ...
# logger.info { "User typed #{input}" } # logger.info { "User typed #{input}" }
# #
# You'll probably stick to the second form above, unless you want to provide a # You'll probably stick to the second form above, unless you want to provide a
# program name (which you can do with <tt>Logger#progname=</tt> as well). # program name (which you can do with <tt>Logger#progname=</tt> as well).
# #
# === Return # === Return
# #
# See #add. # See #add.
# #
def info(progname = nil, &block) def info(progname = nil, &block)
add(INFO, nil, progname, &block) add(INFO, nil, progname, &block)
@ -487,7 +487,7 @@ private
# IO object). The beginning of each file created by this class is tagged # IO object). The beginning of each file created by this class is tagged
# with a header message. # with a header message.
# #
# This class is unlikely to be used directly; it is a backend for Logger. # This class is unlikely to be used directly; it is a backend for Logger.
# #
def initialize(log = nil, opt = {}) def initialize(log = nil, opt = {})
@dev = @filename = @shift_age = @shift_size = nil @dev = @filename = @shift_age = @shift_size = nil
@ -517,7 +517,7 @@ private
end end
end end
@dev.write(message) @dev.write(message)
end end
# #

View file

@ -46,11 +46,11 @@ module RSS
# For backward compatibility # For backward compatibility
DublincoreModel = DublinCoreModel DublincoreModel = DublinCoreModel
class RDF class RDF < Element
class Channel; include DublinCoreModel; end class Channel < Element; include DublinCoreModel; end
class Image; include DublinCoreModel; end class Image < Element; include DublinCoreModel; end
class Item; include DublinCoreModel; end class Item < Element; include DublinCoreModel; end
class Textinput; include DublinCoreModel; end class Textinput < Element; include DublinCoreModel; end
end end
prefix_size = DC_PREFIX.size + 1 prefix_size = DC_PREFIX.size + 1

View file

@ -8,7 +8,7 @@ include OpenSSL
def usage def usage
myname = File::basename($0) myname = File::basename($0)
$stderr.puts <<EOS $stderr.puts <<EOS
Usage: #{myname} name [keypair_file] Usage: #{myname} [--key keypair_file] name
name ... ex. /C=JP/O=RRR/OU=CA/CN=NaHi/emailAddress=nahi@example.org name ... ex. /C=JP/O=RRR/OU=CA/CN=NaHi/emailAddress=nahi@example.org
EOS EOS
exit exit