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

ruby-changes:50499

From: nobu <ko1@a...>
Date: Fri, 2 Mar 2018 20:24:34 +0900 (JST)
Subject: [ruby-changes:50499] nobu:r62633 (trunk): io/console: drop 2.1.0 support [ci skip]

nobu	2018-03-02 20:24:29 +0900 (Fri, 02 Mar 2018)

  New Revision: 62633

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

  Log:
    io/console: drop 2.1.0 support [ci skip]

  Modified files:
    trunk/ext/io/console/console.c
    trunk/ext/io/console/extconf.rb
    trunk/ext/io/console/io-console.gemspec
Index: ext/io/console/extconf.rb
===================================================================
--- ext/io/console/extconf.rb	(revision 62632)
+++ ext/io/console/extconf.rb	(revision 62633)
@@ -17,11 +17,12 @@ else https://github.com/ruby/ruby/blob/trunk/ext/io/console/extconf.rb#L17
 end
 if ok
   have_header("sys/ioctl.h") if hdr
-  have_func("rb_sym2str")
   # rb_check_hash_type: 1.9.3
   # rb_io_get_write_io: 1.9.1
   # rb_cloexec_open: 2.0.0
   # rb_funcallv: 2.1.0
+  # RARRAY_CONST_PTR: 2.1.0
+  # rb_sym2str: 2.2.0
   $defs << "-D""ENABLE_IO_GETPASS=1"
   create_makefile("io/console") {|conf|
     conf << "\n""VK_HEADER = #{vk_header}\n"
Index: ext/io/console/io-console.gemspec
===================================================================
--- ext/io/console/io-console.gemspec	(revision 62632)
+++ ext/io/console/io-console.gemspec	(revision 62633)
@@ -9,7 +9,7 @@ Gem::Specification.new do |s| https://github.com/ruby/ruby/blob/trunk/ext/io/console/io-console.gemspec#L9
   s.summary = "Console interface"
   s.email = "nobu@r..."
   s.description = "add console capabilities to IO instances."
-  s.required_ruby_version = ">= 2.1.0"
+  s.required_ruby_version = ">= 2.2.0"
   s.homepage = "https://github.com/ruby/io-console"
   s.authors = ["Nobu Nakada"]
   s.require_path = %[lib]
Index: ext/io/console/console.c
===================================================================
--- ext/io/console/console.c	(revision 62632)
+++ ext/io/console/console.c	(revision 62633)
@@ -14,9 +14,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L14
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
 #endif
-#ifndef RARRAY_CONST_PTR
-# define RARRAY_CONST_PTR(ary) RARRAY_PTR(ary)
-#endif
 
 #if defined HAVE_TERMIOS_H
 # include <termios.h>
@@ -100,10 +97,6 @@ rb_f_send(int argc, VALUE *argv, VALUE r https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L97
 }
 #endif
 
-#ifndef HAVE_RB_SYM2STR
-# define rb_sym2str(sym) rb_id2str(SYM2ID(sym))
-#endif
-
 typedef struct {
     int vmin;
     int vtime;

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

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