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

ruby-changes:45492

From: nagachika <ko1@a...>
Date: Wed, 8 Feb 2017 01:38:57 +0900 (JST)
Subject: [ruby-changes:45492] nagachika:r57565 (ruby_2_3): merge revision(s) 56224: [Backport #12785]

nagachika	2017-02-08 01:38:52 +0900 (Wed, 08 Feb 2017)

  New Revision: 57565

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

  Log:
    merge revision(s) 56224: [Backport #12785]
    
    * test/misc/test_ruby_mode.rb (assert_indent): since write-region
      in Emacs 25.1 no longer displays the "Wrote file" message, shows
      the explicit message to check if successfully finished.
      [ruby-core:77355] [Bug #12785]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/test/misc/test_ruby_mode.rb
    branches/ruby_2_3/version.h
Index: ruby_2_3/test/misc/test_ruby_mode.rb
===================================================================
--- ruby_2_3/test/misc/test_ruby_mode.rb	(revision 57564)
+++ ruby_2_3/test/misc/test_ruby_mode.rb	(revision 57565)
@@ -19,6 +19,9 @@ end https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/misc/test_ruby_mode.rb#L19
 class TestRubyMode
   EVAL_OPT = "--eval"
   EXPR_SAVE = "(save-buffer)"
+  finish_mark = "ok-#{$$}"
+  FINISH_MARK = /^#{finish_mark}$/
+  EXPR_FINISH = "(print \'#{finish_mark})"
   EXPR_RUBYMODE = "(ruby-mode)"
   EXPR_NOBACKUP = "(progn" \
   " (set (make-local-variable \'backup-inhibited) t)" \
@@ -32,6 +35,7 @@ class TestRubyMode https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/misc/test_ruby_mode.rb#L35
     exprs = exprs.map {|expr| [EVAL_OPT, expr]}.flatten
     exprs.unshift(EVAL_OPT, EXPR_RUBYMODE)
     exprs.unshift(EVAL_OPT, EXPR_NOBACKUP)
+    exprs.push(EVAL_OPT, EXPR_FINISH)
     output = IO.popen([*EMACS, tmp.path, *exprs, err:[:child, :out]], "r") {|e| e.read}
     tmp.open
     result = tmp.read
@@ -50,7 +54,7 @@ class TestRubyMode https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/misc/test_ruby_mode.rb#L54
         source.gsub!(space, '')
       end
       result, output = run_emacs(source, EXPR_INDENT, EXPR_SAVE)
-      assert_match(/^Wrote /, output)
+      assert_match(FINISH_MARK, output)
       assert_equal(expected, result, message(*message) {diff expected, result})
     end
 
Index: ruby_2_3/version.h
===================================================================
--- ruby_2_3/version.h	(revision 57564)
+++ ruby_2_3/version.h	(revision 57565)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1
 #define RUBY_VERSION "2.3.3"
-#define RUBY_RELEASE_DATE "2017-01-17"
-#define RUBY_PATCHLEVEL 237
+#define RUBY_RELEASE_DATE "2017-02-08"
+#define RUBY_PATCHLEVEL 238
 
 #define RUBY_RELEASE_YEAR 2017
-#define RUBY_RELEASE_MONTH 1
-#define RUBY_RELEASE_DAY 17
+#define RUBY_RELEASE_MONTH 2
+#define RUBY_RELEASE_DAY 8
 
 #include "ruby/version.h"
 

Property changes on: ruby_2_3
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r56224


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

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