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

ruby-changes:41421

From: nobu <ko1@a...>
Date: Sun, 10 Jan 2016 18:43:32 +0900 (JST)
Subject: [ruby-changes:41421] nobu:r53494 (trunk): ext/-test-: reduce feature names

nobu	2016-01-10 18:43:47 +0900 (Sun, 10 Jan 2016)

  New Revision: 53494

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

  Log:
    ext/-test-: reduce feature names
    
    * ext/-test-/**/extconf.rb: bring up extension libraries which
      have same name as the parent directory to reduce feature names.

  Modified files:
    trunk/ext/-test-/bug-3571/bug.c
    trunk/ext/-test-/bug-3571/extconf.rb
    trunk/ext/-test-/bug-5832/bug.c
    trunk/ext/-test-/bug-5832/extconf.rb
    trunk/ext/-test-/bug_reporter/extconf.rb
    trunk/ext/-test-/funcall/extconf.rb
    trunk/ext/-test-/iseq_load/extconf.rb
    trunk/ext/-test-/load/dot.dot/extconf.rb
    trunk/ext/-test-/num2int/extconf.rb
    trunk/ext/-test-/path_to_class/extconf.rb
    trunk/ext/-test-/typeddata/extconf.rb
    trunk/ext/-test-/wait_for_single_fd/extconf.rb
    trunk/test/-ext-/bug_reporter/test_bug_reporter.rb
    trunk/test/-ext-/funcall/test_passing_block.rb
    trunk/test/-ext-/iseq_load/test_iseq_load.rb
    trunk/test/-ext-/load/test_dot_dot.rb
    trunk/test/-ext-/num2int/test_num2int.rb
    trunk/test/-ext-/path_to_class/test_path_to_class.rb
    trunk/test/-ext-/test_bug-3571.rb
    trunk/test/-ext-/test_bug-5832.rb
    trunk/test/-ext-/typeddata/test_typeddata.rb
    trunk/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
Index: test/-ext-/iseq_load/test_iseq_load.rb
===================================================================
--- test/-ext-/iseq_load/test_iseq_load.rb	(revision 53493)
+++ test/-ext-/iseq_load/test_iseq_load.rb	(revision 53494)
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/iseq_load/test_iseq_load.rb#L2
 require 'test/unit'
 
 class TestIseqLoad < Test::Unit::TestCase
-  require '-test-/iseq_load/iseq_load'
+  require '-test-/iseq_load'
   ISeq = RubyVM::InstructionSequence
 
   def test_bug8543
Index: test/-ext-/load/test_dot_dot.rb
===================================================================
--- test/-ext-/load/test_dot_dot.rb	(revision 53493)
+++ test/-ext-/load/test_dot_dot.rb	(revision 53494)
@@ -5,7 +5,7 @@ class Test_DotDot < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/load/test_dot_dot.rb#L5
   def test_load_dot_dot
     feature = '[ruby-dev:41774]'
     assert_nothing_raised(LoadError, feature) {
-      require '-test-/load/dot.dot/dot.dot'
+      require '-test-/load/dot.dot'
     }
   end
 end
Index: test/-ext-/funcall/test_passing_block.rb
===================================================================
--- test/-ext-/funcall/test_passing_block.rb	(revision 53493)
+++ test/-ext-/funcall/test_passing_block.rb	(revision 53494)
@@ -7,7 +7,7 @@ class TestFuncall < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/funcall/test_passing_block.rb#L7
       yield(*args) if block
     end
   end
-  require '-test-/funcall/funcall'
+  require '-test-/funcall'
 
   def test_with_funcall2
     ok = nil
Index: test/-ext-/num2int/test_num2int.rb
===================================================================
--- test/-ext-/num2int/test_num2int.rb	(revision 53493)
+++ test/-ext-/num2int/test_num2int.rb	(revision 53494)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/num2int/test_num2int.rb#L1
 # frozen_string_literal: false
 require 'test/unit'
-require '-test-/num2int/num2int'
+require '-test-/num2int'
 
 class TestNum2int < Test::Unit::TestCase
   SHRT_MIN = -32768
Index: test/-ext-/bug_reporter/test_bug_reporter.rb
===================================================================
--- test/-ext-/bug_reporter/test_bug_reporter.rb	(revision 53493)
+++ test/-ext-/bug_reporter/test_bug_reporter.rb	(revision 53494)
@@ -14,7 +14,7 @@ class TestBugReporter < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/-ext-/bug_reporter/test_bug_reporter.rb#L14
     ]
     tmpdir = Dir.mktmpdir
 
-    args = ["--disable-gems", "-r-test-/bug_reporter/bug_reporter",
+    args = ["--disable-gems", "-r-test-/bug_reporter",
             "-C", tmpdir]
     stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
     assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT")
Index: test/-ext-/test_bug-3571.rb
===================================================================
--- test/-ext-/test_bug-3571.rb	(revision 53493)
+++ test/-ext-/test_bug-3571.rb	(revision 53494)
@@ -16,6 +16,6 @@ SRC https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_bug-3571.rb#L16
       "-:2:in `start'",
       "-:2:in `<main>'",
     ]
-    assert_in_out_err(%w"-r-test-/bug-3571/bug", src, [], out, bug3571)
+    assert_in_out_err(%w"-r-test-/bug_3571", src, [], out, bug3571)
   end
 end
Index: test/-ext-/test_bug-5832.rb
===================================================================
--- test/-ext-/test_bug-5832.rb	(revision 53493)
+++ test/-ext-/test_bug-5832.rb	(revision 53494)
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_bug-5832.rb#L1
 # frozen_string_literal: false
-require '-test-/bug-5832/bug'
+require '-test-/bug_5832'
 
 class Test_BUG_5832 < Test::Unit::TestCase
   def test_block_passing
Index: test/-ext-/typeddata/test_typeddata.rb
===================================================================
--- test/-ext-/typeddata/test_typeddata.rb	(revision 53493)
+++ test/-ext-/typeddata/test_typeddata.rb	(revision 53494)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/typeddata/test_typeddata.rb#L1
 # frozen_string_literal: false
 require 'test/unit'
-require "-test-/typeddata/typeddata"
+require "-test-/typeddata"
 
 class Test_TypedData < Test::Unit::TestCase
   def test_wrong_argtype
Index: test/-ext-/path_to_class/test_path_to_class.rb
===================================================================
--- test/-ext-/path_to_class/test_path_to_class.rb	(revision 53493)
+++ test/-ext-/path_to_class/test_path_to_class.rb	(revision 53494)
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/path_to_class/test_path_to_class.rb#L2
 require 'test/unit'
 
 class Test_PathToClass < Test::Unit::TestCase
-  require '-test-/path_to_class/path_to_class'
+  require '-test-/path_to_class'
 
   def test_path_to_class
     bug5691 = '[ruby-core:41410]'
Index: test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
===================================================================
--- test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb	(revision 53493)
+++ test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb	(revision 53494)
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb#L2
 require 'test/unit'
 
 class TestWaitForSingleFD < Test::Unit::TestCase
-  require '-test-/wait_for_single_fd/wait_for_single_fd'
+  require '-test-/wait_for_single_fd'
 
   def with_pipe
     r, w = IO.pipe
Index: ext/-test-/num2int/extconf.rb
===================================================================
--- ext/-test-/num2int/extconf.rb	(revision 53493)
+++ ext/-test-/num2int/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/num2int/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/num2int/num2int")
+create_makefile("-test-/num2int")
Index: ext/-test-/load/dot.dot/extconf.rb
===================================================================
--- ext/-test-/load/dot.dot/extconf.rb	(revision 53493)
+++ ext/-test-/load/dot.dot/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/load/dot.dot/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/load/dot.dot/dot.dot")
+create_makefile("-test-/load/dot.dot")
Index: ext/-test-/typeddata/extconf.rb
===================================================================
--- ext/-test-/typeddata/extconf.rb	(revision 53493)
+++ ext/-test-/typeddata/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/typeddata/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/typeddata/typeddata")
+create_makefile("-test-/typeddata")
Index: ext/-test-/path_to_class/extconf.rb
===================================================================
--- ext/-test-/path_to_class/extconf.rb	(revision 53493)
+++ ext/-test-/path_to_class/extconf.rb	(revision 53494)
@@ -4,4 +4,4 @@ inits = $srcs.map {|s| File.basename(s, https://github.com/ruby/ruby/blob/trunk/ext/-test-/path_to_class/extconf.rb#L4
 inits.delete("init")
 inits.map! {|s|"X(#{s})"}
 $defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
-create_makefile("-test-/path_to_class/path_to_class")
+create_makefile("-test-/path_to_class")
Index: ext/-test-/bug_reporter/extconf.rb
===================================================================
--- ext/-test-/bug_reporter/extconf.rb	(revision 53493)
+++ ext/-test-/bug_reporter/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/bug_reporter/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/bug_reporter/bug_reporter")
+create_makefile("-test-/bug_reporter")
Index: ext/-test-/iseq_load/extconf.rb
===================================================================
--- ext/-test-/iseq_load/extconf.rb	(revision 53493)
+++ ext/-test-/iseq_load/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/iseq_load/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/iseq_load/iseq_load")
+create_makefile("-test-/iseq_load")
Index: ext/-test-/bug-3571/extconf.rb
===================================================================
--- ext/-test-/bug-3571/extconf.rb	(revision 53493)
+++ ext/-test-/bug-3571/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/bug-3571/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/bug-3571/bug")
+create_makefile("-test-/bug_3571")
Index: ext/-test-/bug-3571/bug.c
===================================================================
--- ext/-test-/bug-3571/bug.c	(revision 53493)
+++ ext/-test-/bug-3571/bug.c	(revision 53494)
@@ -16,7 +16,7 @@ bug_start(VALUE self, VALUE hash) https://github.com/ruby/ruby/blob/trunk/ext/-test-/bug-3571/bug.c#L16
 }
 
 void
-Init_bug(void)
+Init_bug_3571(void)
 {
     VALUE mBug = rb_define_module("Bug");
     rb_define_module_function(mBug, "start", bug_start, 0);
Index: ext/-test-/bug-5832/extconf.rb
===================================================================
--- ext/-test-/bug-5832/extconf.rb	(revision 53493)
+++ ext/-test-/bug-5832/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/bug-5832/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/bug-5832/bug")
+create_makefile("-test-/bug_5832")
Index: ext/-test-/bug-5832/bug.c
===================================================================
--- ext/-test-/bug-5832/bug.c	(revision 53493)
+++ ext/-test-/bug-5832/bug.c	(revision 53494)
@@ -7,7 +7,7 @@ bug_funcall_callback(VALUE self, VALUE o https://github.com/ruby/ruby/blob/trunk/ext/-test-/bug-5832/bug.c#L7
 }
 
 void
-Init_bug(void)
+Init_bug_5832(void)
 {
     VALUE mBug = rb_define_module("Bug");
     rb_define_module_function(mBug, "funcall_callback", bug_funcall_callback, 1);
Index: ext/-test-/wait_for_single_fd/extconf.rb
===================================================================
--- ext/-test-/wait_for_single_fd/extconf.rb	(revision 53493)
+++ ext/-test-/wait_for_single_fd/extconf.rb	(revision 53494)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/wait_for_single_fd/extconf.rb#L1
 # frozen_string_literal: false
-create_makefile("-test-/wait_for_single_fd/wait_for_single_fd")
+create_makefile("-test-/wait_for_single_fd")
Index: ext/-test-/funcall/extconf.rb
===================================================================
--- ext/-test-/funcall/extconf.rb	(revision 53493)
+++ ext/-test-/funcall/extconf.rb	(revision 53494)
@@ -1,3 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/funcall/extconf.rb#L1
 # frozen_string_literal: false
 require 'mkmf'
-create_makefile("-test-/funcall/funcall")
+create_makefile("-test-/funcall")

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

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