changeset 67:a421c2fefc32 draft

Fix the argument for FileUtils.mkdir_p()
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 26 Jun 2012 18:41:57 +0900
parents 0ae73ca14d99
children db1502243712
files after5.rb
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Mon Jun 25 23:32:04 2012 +0900
+++ b/after5.rb	Tue Jun 26 18:41:57 2012 +0900
@@ -4,7 +4,7 @@
 # Associative Scheduling Table - after5
 # (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org]
 # $Id: after5.rb,v 1.19 2012/04/01 11:52:25 yuuji Exp yuuji $
-# Last modified Mon Jun 25 23:30:32 2012 on firestorm
+# Last modified Tue Jun 26 18:40:51 2012 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 $hgid = <<_HGID_.split[1..-2].join(" ")
@@ -1683,7 +1683,7 @@
             proc {
             require 'fileutils'
             begin
-              test(?d, spoolto) or FileUtils.mkdir_p(spoolto, 0750)
+              test(?d, spoolto) or FileUtils.mkdir_p(spoolto, :mode => 0750)
               test(?w, spoolto)
             rescue
               nil
@@ -3051,12 +3051,12 @@
 	    } + \
 	    @H.element("td"){
 	      if ghash['admin'].grep(user)[0]
-		@H.text("groupname-#{g}", ghash['name'], nil, 20)
+		@H.text("groupname-#{g}", ghash['name'], nil, 12)
 	      else
 		ghash['name']
 	      end + '<br>' + \
               # If this group is inviteonly and the user is not a member,
-              # 
+              # one cannot join.
               if memberp && @sc.isadmin(user, g) ||
                   !@sc.getgroupattr(g, 'inviteonly')
                 @H.radio("groupadd-#{g}", "yes", "IN", memberp) + " / " + \
@@ -3073,7 +3073,9 @@
                   memlist.unshift(user)
                 end
                 memlist.collect{|u|
-                  @sc.nickname(u) + \
+                  @H.element("abbr", "title"=>mailaddress(u)) {
+                    @sc.nickname(u)
+                  } + \
                   ((u == user) ? ("("+@H.text("mail4-#{g}", memberp, 30, 180)+")") : "")
                 }.join(", ")
               }

yatex.org