summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-02 11:24:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-02 11:24:29 +0000
commit1de78c5fd89e7da938b6f92200e851e119ea74b7 (patch)
treeafec4222a05819b56e59b096412d1f78a4a219fc /ext
parent013016b9865f4e5efe42856116f499d624b60ead (diff)
io/console: drop 2.1.0 support [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/io/console/console.c7
-rw-r--r--ext/io/console/extconf.rb3
-rw-r--r--ext/io/console/io-console.gemspec2
3 files changed, 3 insertions, 9 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index e808907..54ff344 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -14,9 +14,6 @@
#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 recv)
}
#endif
-#ifndef HAVE_RB_SYM2STR
-# define rb_sym2str(sym) rb_id2str(SYM2ID(sym))
-#endif
-
typedef struct {
int vmin;
int vtime;
diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb
index 8f02c89..a6049da 100644
--- a/ext/io/console/extconf.rb
+++ b/ext/io/console/extconf.rb
@@ -17,11 +17,12 @@ else
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"
diff --git a/ext/io/console/io-console.gemspec b/ext/io/console/io-console.gemspec
index 5072452..d72c365 100644
--- a/ext/io/console/io-console.gemspec
+++ b/ext/io/console/io-console.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.summary = "Console interface"
s.email = "nobu@ruby-lang.org"
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]