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

ruby-changes:44111

From: kou <ko1@a...>
Date: Sun, 18 Sep 2016 22:52:03 +0900 (JST)
Subject: [ruby-changes:44111] kou:r56184 (trunk): * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.

kou	2016-09-18 22:51:57 +0900 (Sun, 18 Sep 2016)

  New Revision: 56184

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56184

  Log:
    * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
      [Bug #12773][ruby-dev:49813]
      Reported by Kazuhiro NISHIYAMA. Thanks!!!

  Modified files:
    trunk/ChangeLog
    trunk/lib/rss/rss.rb
Index: lib/rss/rss.rb
===================================================================
--- lib/rss/rss.rb	(revision 56183)
+++ lib/rss/rss.rb	(revision 56184)
@@ -326,7 +326,6 @@ EOC https://github.com/ruby/ruby/blob/trunk/lib/rss/rss.rb#L326
 
     def inherit_convert_attr_reader(*attrs)
       attrs.each do |attr|
-        attr = attr.id2name if attr.kind_of?(Integer)
         module_eval(<<-EOC, *get_file_and_line_from_caller(2))
         def #{attr}_without_inherit
           convert(@#{attr})
@@ -347,7 +346,6 @@ EOC https://github.com/ruby/ruby/blob/trunk/lib/rss/rss.rb#L346
 
     def uri_convert_attr_reader(*attrs)
       attrs.each do |attr|
-        attr = attr.id2name if attr.kind_of?(Integer)
         module_eval(<<-EOC, *get_file_and_line_from_caller(2))
         def #{attr}_without_base
           convert(@#{attr})
@@ -368,7 +366,6 @@ EOC https://github.com/ruby/ruby/blob/trunk/lib/rss/rss.rb#L366
 
     def convert_attr_reader(*attrs)
       attrs.each do |attr|
-        attr = attr.id2name if attr.kind_of?(Integer)
         module_eval(<<-EOC, *get_file_and_line_from_caller(2))
         def #{attr}
           convert(@#{attr})
@@ -379,7 +376,6 @@ EOC https://github.com/ruby/ruby/blob/trunk/lib/rss/rss.rb#L376
 
     def yes_clean_other_attr_reader(*attrs)
       attrs.each do |attr|
-        attr = attr.id2name if attr.kind_of?(Integer)
         module_eval(<<-EOC, __FILE__, __LINE__ + 1)
           attr_reader(:#{attr})
           def #{attr}?
@@ -391,7 +387,6 @@ EOC https://github.com/ruby/ruby/blob/trunk/lib/rss/rss.rb#L387
 
     def yes_other_attr_reader(*attrs)
       attrs.each do |attr|
-        attr = attr.id2name if attr.kind_of?(Integer)
         module_eval(<<-EOC, __FILE__, __LINE__ + 1)
           attr_reader(:#{attr})
           def #{attr}?
@@ -409,7 +404,6 @@ EOC https://github.com/ruby/ruby/blob/trunk/lib/rss/rss.rb#L404
       end
       separator ||= ", "
       attrs.each do |attr|
-        attr = attr.id2name if attr.kind_of?(Integer)
         module_eval(<<-EOC, __FILE__, __LINE__ + 1)
           attr_reader(:#{attr})
           def #{attr}_content
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56183)
+++ ChangeLog	(revision 56184)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Sep 18 22:48:54 2016  Kouhei Sutou  <kou@c...>
+
+	* lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
+	  [Bug #12773][ruby-dev:49813]
+	  Reported by Kazuhiro NISHIYAMA. Thanks!!!
+
 Sun Sep 18 19:23:47 2016  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* lib/sync.rb: Fix NameError when error.

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

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