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

ruby-changes:2451

From: ko1@a...
Date: 16 Nov 2007 03:37:25 +0900
Subject: [ruby-changes:2451] why - Ruby:r13942 (trunk): * ext/syck/rubyext.c: Node#value defined twice.

why	2007-11-16 03:36:51 +0900 (Fri, 16 Nov 2007)

  New Revision: 13942

  Modified files:
    trunk/ChangeLog
    trunk/ext/syck/rubyext.c
    trunk/lib/yaml/basenode.rb
    trunk/lib/yaml/types.rb

  Log:
    * ext/syck/rubyext.c: Node#value defined twice.
    
    * lib/yaml/: several method redefinitions causing warnings.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/yaml/types.rb?r1=13942&r2=13941
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/yaml/basenode.rb?r1=13942&r2=13941
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13942&r2=13941
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/syck/rubyext.c?r1=13942&r2=13941

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13941)
+++ ChangeLog	(revision 13942)
@@ -1,3 +1,9 @@
+Fri Nov 16 03:36:01 2007  why the lucky stiff  <why@r...>
+
+	* ext/syck/rubyext.c: Node#value defined twice.
+
+	* lib/yaml/: several method redefinitions causing warnings.
+
 Fri Nov 16 03:01:00 2007  why the lucky stiff  <why@r...>
 
 	* lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit.
Index: lib/yaml/basenode.rb
===================================================================
--- lib/yaml/basenode.rb	(revision 13941)
+++ lib/yaml/basenode.rb	(revision 13942)
@@ -184,7 +184,7 @@
         #
         def []( *key )
             if Hash === @value
-                v = @value.detect { |k,v| k.transform == key.first }
+                v = @value.detect { |k,| k.transform == key.first }
                 v[1] if v
             elsif Array === @value
                 @value.[]( *key )
Index: lib/yaml/types.rb
===================================================================
--- lib/yaml/types.rb	(revision 13941)
+++ lib/yaml/types.rb	(revision 13942)
@@ -10,7 +10,6 @@
     #
     class PrivateType
         def self.tag_subclasses?; false; end
-        attr_accessor :type_id, :value
         verbose, $VERBOSE = $VERBOSE, nil
         def initialize( type, val )
             @type_id = type; @value = val
@@ -28,7 +27,6 @@
     #
     class DomainType
         def self.tag_subclasses?; false; end
-        attr_accessor :domain, :type_id, :value
         verbose, $VERBOSE = $VERBOSE, nil
         def initialize( domain, type, val )
             @domain = domain; @type_id = type; @value = val
Index: ext/syck/rubyext.c
===================================================================
--- ext/syck/rubyext.c	(revision 13941)
+++ ext/syck/rubyext.c	(revision 13942)
@@ -2188,7 +2188,6 @@
      */
     cScalar = rb_define_class_under( rb_syck, "Scalar", cNode );
     rb_define_alloc_func( cScalar, syck_scalar_alloc );
-    rb_define_attr( cNode, "value", 1, 0 );
     rb_define_method( cScalar, "initialize", syck_scalar_initialize, 3 );
     rb_define_method( cScalar, "value=", syck_scalar_value_set, 1 );
     rb_define_method( cScalar, "style=", syck_scalar_style_set, 1 );

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

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