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

ruby-changes:38443

From: nobu <ko1@a...>
Date: Sun, 17 May 2015 23:47:53 +0900 (JST)
Subject: [ruby-changes:38443] nobu:r50524 (trunk): notimplement: rename

nobu	2015-05-17 23:47:36 +0900 (Sun, 17 May 2015)

  New Revision: 50524

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

  Log:
    notimplement: rename
    
    * ext/-test-/notimplement, test/-ext-/test_notimplement.rb:
      rename from bug-3662.

  Added directories:
    trunk/ext/-test-/notimplement/
  Added files:
    trunk/ext/-test-/notimplement/bug.c
    trunk/ext/-test-/notimplement/extconf.rb
    trunk/test/-ext-/test_notimplement.rb
  Removed files:
    trunk/ext/-test-/bug-3662/bug.c
    trunk/ext/-test-/bug-3662/extconf.rb
    trunk/test/-ext-/test_bug-3662.rb
Index: ext/-test-/notimplement/extconf.rb
===================================================================
--- ext/-test-/notimplement/extconf.rb	(revision 0)
+++ ext/-test-/notimplement/extconf.rb	(revision 50524)
@@ -0,0 +1 @@
+create_makefile("-test-/notimplement")

Property changes on: ext/-test-/notimplement/extconf.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: ext/-test-/notimplement/bug.c
===================================================================
--- ext/-test-/notimplement/bug.c	(revision 0)
+++ ext/-test-/notimplement/bug.c	(revision 50524)
@@ -0,0 +1,16 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/notimplement/bug.c#L1
+#include <ruby.h>
+
+static VALUE
+bug_funcall(int argc, VALUE *argv, VALUE self)
+{
+    if (argc < 1) rb_raise(rb_eArgError, "not enough argument");
+    return rb_funcall2(self, rb_to_id(*argv), argc-1, argv+1);
+}
+
+void
+Init_notimplement(void)
+{
+    VALUE mBug = rb_define_module("Bug");
+    rb_define_module_function(mBug, "funcall", bug_funcall, -1);
+    rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
+}

Property changes on: ext/-test-/notimplement/bug.c
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: ext/-test-/bug-3662/extconf.rb
===================================================================
--- ext/-test-/bug-3662/extconf.rb	(revision 50523)
+++ ext/-test-/bug-3662/extconf.rb	(revision 50524)
@@ -1 +0,0 @@
-create_makefile("-test-/bug-3662/bug")
Index: ext/-test-/bug-3662/bug.c
===================================================================
--- ext/-test-/bug-3662/bug.c	(revision 50523)
+++ ext/-test-/bug-3662/bug.c	(revision 50524)
@@ -1,16 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/bug-3662/bug.c#L0
-#include <ruby.h>
-
-static VALUE
-bug_funcall(int argc, VALUE *argv, VALUE self)
-{
-    if (argc < 1) rb_raise(rb_eArgError, "not enough argument");
-    return rb_funcall2(self, rb_to_id(*argv), argc-1, argv+1);
-}
-
-void
-Init_bug(void)
-{
-    VALUE mBug = rb_define_module("Bug");
-    rb_define_module_function(mBug, "funcall", bug_funcall, -1);
-    rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
-}
Index: test/-ext-/test_bug-3662.rb
===================================================================
--- test/-ext-/test_bug-3662.rb	(revision 50523)
+++ test/-ext-/test_bug-3662.rb	(revision 50524)
@@ -1,10 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_bug-3662.rb#L0
-require '-test-/bug-3662/bug'
-
-class Test_BUG_3662 < Test::Unit::TestCase
-  def test_funcall_notimplement
-    bug3662 = '[ruby-dev:41953]'
-    assert_raise(NotImplementedError, bug3662) {
-      Bug.funcall(:notimplement)
-    }
-  end
-end
Index: test/-ext-/test_notimplement.rb
===================================================================
--- test/-ext-/test_notimplement.rb	(revision 0)
+++ test/-ext-/test_notimplement.rb	(revision 50524)
@@ -0,0 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_notimplement.rb#L1
+require '-test-/notimplement'
+
+class TestNotImplement < Test::Unit::TestCase
+  def test_funcall_notimplement
+    bug3662 = '[ruby-dev:41953]'
+    assert_raise(NotImplementedError, bug3662) {
+      Bug.funcall(:notimplement)
+    }
+  end
+end

Property changes on: test/-ext-/test_notimplement.rb
___________________________________________________________________
Added: svn:eol-style
   + LF


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

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