genki-ruby-terminfo 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/extconf.rb +1 -0
- data/terminfo.c +2 -0
- metadata +3 -2
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ RUBYFORGE_PROJECT = "ruby-terminfo"
|
|
18
18
|
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
19
19
|
BIN_FILES = %w( )
|
20
20
|
|
21
|
-
VERS = "0.1"
|
21
|
+
VERS = "0.1.1"
|
22
22
|
REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
|
23
23
|
CLEAN.include ['**/.*.sw?', '*.gem', '.config']
|
24
24
|
RDOC_OPTS = [
|
data/extconf.rb
CHANGED
@@ -38,6 +38,7 @@ have_library("ncurses", "setupterm") or
|
|
38
38
|
have_library("curses", "setupterm")
|
39
39
|
|
40
40
|
have_type("rb_io_t", ["ruby.h", "rubyio.h"])
|
41
|
+
have_struct_member("rb_io_t", "fd", ["ruby.h", "rubyio.h"])
|
41
42
|
have_struct_member("OpenFile", "fd", ["ruby.h", "rubyio.h"])
|
42
43
|
|
43
44
|
create_header
|
data/terminfo.c
CHANGED
@@ -252,6 +252,8 @@ rt_tputs(VALUE self, VALUE v_str, VALUE v_affcnt)
|
|
252
252
|
|
253
253
|
#if defined(HAVE_ST_FD)
|
254
254
|
# define FILENO(fptr) (fptr->fd)
|
255
|
+
#elif defined(HAVE_RB_IO_T_FD)
|
256
|
+
# define FILENO(fptr) fileno(fptr->fd)
|
255
257
|
#else
|
256
258
|
# define FILENO(fptr) fileno(fptr->f)
|
257
259
|
#endif
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genki-ruby-terminfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanaka Akira
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-13 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -27,6 +27,7 @@ files:
|
|
27
27
|
- ChangeLog
|
28
28
|
- Rakefile
|
29
29
|
- lib/terminfo.rb
|
30
|
+
- extconf.h
|
30
31
|
- terminfo.c
|
31
32
|
- extconf.rb
|
32
33
|
has_rdoc: true
|