[前][次][番号順一覧][スレッド一覧]

ruby-changes:22622

From: naruse <ko1@a...>
Date: Sat, 18 Feb 2012 11:47:54 +0900 (JST)
Subject: [ruby-changes:22622] naruse:r34671 (trunk): * tool/enc-unicode.rb: don't use 1.9 feature on tools.

naruse	2012-02-18 11:47:41 +0900 (Sat, 18 Feb 2012)

  New Revision: 34671

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34671

  Log:
    * tool/enc-unicode.rb: don't use 1.9 feature on tools.

  Modified files:
    trunk/ChangeLog
    trunk/tool/enc-unicode.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34670)
+++ ChangeLog	(revision 34671)
@@ -1,3 +1,7 @@
+Sat Feb 18 07:52:45 2012  NARUSE, Yui  <naruse@r...>
+
+	* tool/enc-unicode.rb: don't use 1.9 feature on tools.
+
 Sat Feb 18 02:48:39 2012  Aaron Patterson <aaron@t...>
 
 	* lib/fileutils.rb: refactored FileUtil methods to use the
Index: tool/enc-unicode.rb
===================================================================
--- tool/enc-unicode.rb	(revision 34670)
+++ tool/enc-unicode.rb	(revision 34671)
@@ -125,9 +125,9 @@
 
 def parse_scripts(data, categories)
   files = [
-    {fn: 'DerivedCoreProperties.txt', title: 'Derived Property'},
-    {fn: 'Scripts.txt', title: 'Script'},
-    {fn: 'PropList.txt', title: 'Binary Property'}
+    {:fn => 'DerivedCoreProperties.txt', :title => 'Derived Property'},
+    {:fn => 'Scripts.txt', :title => 'Script'},
+    {:fn => 'PropList.txt', :title => 'Binary Property'}
   ]
   current = nil
   cps = []
@@ -231,7 +231,7 @@
 # the group
 def make_const(prop, data, name)
   puts "\n/* '#{prop}': #{name} */"
-  if origprop = $const_cache.key(data)
+  if origprop = $const_cache.index(data)
     puts "#define CR_#{prop} CR_#{origprop}"
   else
     $const_cache[prop] = data

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]