Changeset 19020 for lang/ruby

Show
Ignore:
Timestamp:
09/09/08 01:47:36 (2 months ago)
Author:
drry
Message:
  • fixed a HTML.
  • fixed a regexp.
  • removed an unnecessary svn:mime-type property for the README.
  • et cetera.
Location:
lang/ruby/misc/toshokan/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/misc/toshokan/trunk/README.ja

    • Property svn:mime-type deleted
    r11593 r19020  
    2323* 準備 
    2424 
    25 インストール(コピー)したディレクトリの bin/toshokan.txt のIdをPasswordを 
     25インストール(コピー)したディレクトリの bin/toshokan.txt のIDとPasswordを 
    2626編集する。 
    2727 
  • lang/ruby/misc/toshokan/trunk/bin/config.rb

    r11593 r19020  
    2424        fp.each_line do |line| 
    2525          line.strip! 
    26           next if line =~ /^#/; 
    27           next if line == "" 
     26          next if line =~ /^(?:#|$)/; 
    2827          libcode, id, password = line.split(":") 
    2928          libcode.upcase! 
     
    4645  end 
    4746end 
    48  
    49  
    50  
    51  
  • lang/ruby/misc/toshokan/trunk/bin/crawler.rb

    r11593 r19020  
    3636out = ARGV[1].nil? ? "./toshokan.html" : ARGV[1] 
    3737File.open(out, "w") do |fp| 
    38   tmpl = '<html><head><meta http-equiv="content" content="text/html; charset=UTF-8"><title>TOSHOKAN</title></head><body>%s</body></html>' 
     38  tmpl = '<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>TOSHOKAN</title></head><body>%s</body></html>' 
    3939  fp.write(tmpl % buffer) 
    4040end