Skip to content

Commit

Permalink
io/console: drop 2.1.0 support [ci skip]
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 2, 2018
1 parent 013016b commit 1de78c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions ext/io/console/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion ext/io/console/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
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"
Expand Down
2 changes: 1 addition & 1 deletion ext/io/console/io-console.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.summary = "Console interface"
s.email = "[email protected]"
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]
Expand Down

0 comments on commit 1de78c5

Please sign in to comment.