vte 1.0.3 → 1.1.0
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/ext/vte/rbvte-terminal.c +7 -57
- data/ext/vte/rbvte.h +5 -28
- data/lib/vte/deprecated.rb +0 -39
- metadata +9 -10
- data/ChangeLog +0 -134
data/ext/vte/rbvte-terminal.c
CHANGED
@@ -93,56 +93,6 @@ rg_initialize(VALUE self)
|
|
93
93
|
}
|
94
94
|
|
95
95
|
#if VTE_CHECK_VERSION(0, 26, 0)
|
96
|
-
static const char *
|
97
|
-
rb_grn_inspect (VALUE object)
|
98
|
-
{
|
99
|
-
VALUE inspected;
|
100
|
-
|
101
|
-
inspected = rb_funcall(object, rb_intern("inspect"), 0);
|
102
|
-
return StringValueCStr(inspected);
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
static void
|
107
|
-
rb_grn_scan_options (VALUE options, ...)
|
108
|
-
{
|
109
|
-
VALUE original_options = options;
|
110
|
-
VALUE available_keys;
|
111
|
-
const char *key;
|
112
|
-
VALUE *value;
|
113
|
-
va_list args;
|
114
|
-
|
115
|
-
options = rb_check_convert_type(options, T_HASH, "Hash", "to_hash");
|
116
|
-
if (NIL_P(options)) {
|
117
|
-
options = rb_hash_new();
|
118
|
-
} else if (options == original_options) {
|
119
|
-
options = rb_funcall(options, rb_intern("dup"), 0);
|
120
|
-
}
|
121
|
-
|
122
|
-
available_keys = rb_ary_new();
|
123
|
-
va_start(args, options);
|
124
|
-
key = va_arg(args, const char *);
|
125
|
-
while (key) {
|
126
|
-
VALUE rb_key;
|
127
|
-
value = va_arg(args, VALUE *);
|
128
|
-
|
129
|
-
rb_key = ID2SYM(rb_intern(key));
|
130
|
-
rb_ary_push(available_keys, rb_key);
|
131
|
-
*value = rb_funcall(options, rb_intern("delete"), 1, rb_key);
|
132
|
-
|
133
|
-
key = va_arg(args, const char *);
|
134
|
-
}
|
135
|
-
va_end(args);
|
136
|
-
|
137
|
-
if (RVAL2CBOOL(rb_funcall(options, rb_intern("empty?"), 0)))
|
138
|
-
return;
|
139
|
-
|
140
|
-
rb_raise(rb_eArgError,
|
141
|
-
"unexpected key(s) exist: %s: available keys: %s",
|
142
|
-
rb_grn_inspect(rb_funcall(options, rb_intern("keys"), 0)),
|
143
|
-
rb_grn_inspect(available_keys));
|
144
|
-
}
|
145
|
-
|
146
96
|
static VALUE
|
147
97
|
fork_command_default_argv(void)
|
148
98
|
{
|
@@ -171,13 +121,13 @@ fork_command_full(int argc, VALUE *argv, VALUE self)
|
|
171
121
|
GError *error = NULL;
|
172
122
|
|
173
123
|
rb_scan_args(argc, argv, "01", &options);
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
124
|
+
rbg_scan_options(options,
|
125
|
+
"pty_flags", &rb_pty_flags,
|
126
|
+
"working_directory", &rb_working_directory,
|
127
|
+
"argv", &rb_command_argv,
|
128
|
+
"envv", &rb_envv,
|
129
|
+
"spawn_flags", &rb_spawn_flags,
|
130
|
+
NULL);
|
181
131
|
pty_flags = NIL_P(rb_pty_flags) ?
|
182
132
|
VTE_PTY_DEFAULT :
|
183
133
|
RVAL2GFLAGS(rb_pty_flags, VTE_TYPE_PTY_FLAGS);
|
data/ext/vte/rbvte.h
CHANGED
@@ -21,33 +21,10 @@
|
|
21
21
|
#define RVAL2PFD(obj) ((PangoFontDescription*)RVAL2BOXED(self, PANGO_TYPE_FONT_DESCRIPTION))
|
22
22
|
#define PFD2RVAL(obj) (BOXED2RVAL(obj, PANGO_TYPE_FONT_DESCRIPTION))
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
rb_define_module_function(RG_TARGET_NAMESPACE, ope, rg_m_operator_ ## func, argc)
|
30
|
-
#define RG_DEF_SMETHOD(method, argc) \
|
31
|
-
rb_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
|
32
|
-
#define RG_DEF_SMETHOD_P(method, argc) \
|
33
|
-
rb_define_singleton_method(RG_TARGET_NAMESPACE, #method"?", rg_s_ ## method ## _p, argc)
|
34
|
-
#define RG_DEF_SMETHOD_OPERATOR(ope, func, argc) \
|
35
|
-
rb_define_singleton_method(RG_TARGET_NAMESPACE, ope, rg_s_operator_ ## func, argc)
|
36
|
-
#define RG_DEF_METHOD(method, argc) \
|
37
|
-
rb_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
|
38
|
-
#define RG_DEF_METHOD_P(method, argc) \
|
39
|
-
rb_define_method(RG_TARGET_NAMESPACE, #method"?", rg_ ## method ## _p, argc)
|
40
|
-
#define RG_DEF_METHOD_BANG(method, argc) \
|
41
|
-
rb_define_method(RG_TARGET_NAMESPACE, #method"!", rg_ ## method ## _bang, argc)
|
42
|
-
#define RG_DEF_METHOD_OPERATOR(ope, func, argc) \
|
43
|
-
rb_define_method(RG_TARGET_NAMESPACE, ope, rg_operator_ ## func, argc)
|
44
|
-
#define RG_DEF_ATTR(attr, read, write, ex) \
|
45
|
-
rb_attr(RG_TARGET_NAMESPACE, rb_intern(attr), read, write, ex)
|
46
|
-
#define RG_DEF_ALIAS(new, old) rb_define_alias(RG_TARGET_NAMESPACE, new, old)
|
47
|
-
|
48
|
-
extern void Init_vte_access(VALUE mVte);
|
49
|
-
extern void Init_vte_reaper(VALUE mVte);
|
50
|
-
extern void Init_vte_terminal(VALUE mVte);
|
51
|
-
extern void Init_vte_charattributes(VALUE mVte);
|
24
|
+
G_GNUC_INTERNAL void Init_vte_access(VALUE mVte);
|
25
|
+
G_GNUC_INTERNAL void Init_vte_reaper(VALUE mVte);
|
26
|
+
G_GNUC_INTERNAL void Init_vte_terminal(VALUE mVte);
|
27
|
+
G_GNUC_INTERNAL void Init_vte_charattributes(VALUE mVte);
|
28
|
+
G_GNUC_INTERNAL void Init_vte_pty(VALUE mVte);
|
52
29
|
|
53
30
|
#endif
|
data/lib/vte/deprecated.rb
CHANGED
@@ -1,42 +1,3 @@
|
|
1
|
-
module GLib
|
2
|
-
module Deprecatable
|
3
|
-
@@deprecated_const = {}
|
4
|
-
|
5
|
-
def define_deprecated_const(deprecated_const, new_const)
|
6
|
-
@@deprecated_const[self] ||= {}
|
7
|
-
@@deprecated_const[self][deprecated_const.to_sym] = new_const
|
8
|
-
end
|
9
|
-
|
10
|
-
def define_deprecated_method(deprecated_method, new_method)
|
11
|
-
if public_method_defined?(new_method)
|
12
|
-
define_method(deprecated_method) do |*args, &block|
|
13
|
-
warn "#{caller[0]}: '#{deprecated_method}' has been deprecated. Use '#{new_method}'."
|
14
|
-
__send__(new_method, *args, &block)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
private
|
20
|
-
|
21
|
-
def const_missing(deprecated_const)
|
22
|
-
if new_const = (@@deprecated_const[self] || {})[deprecated_const.to_sym]
|
23
|
-
if new_const = constant_get(new_const)
|
24
|
-
warn "#{caller[0]}: '#{[name, deprecated_const].join('::')}' has been deprecated. Use '#{new_const}'."
|
25
|
-
const_set(deprecated_const, new_const)
|
26
|
-
else
|
27
|
-
super
|
28
|
-
end
|
29
|
-
else
|
30
|
-
super
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def constant_get(const)
|
35
|
-
const.split('::').inject(Object){|r, c| r.const_get(c)} rescue nil
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
1
|
module Vte
|
41
2
|
extend GLib::Deprecatable
|
42
3
|
define_deprecated_const 'TerminalEraseBinding', 'Vte::Terminal::EraseBinding'
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vte
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.3
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
- The Ruby-GNOME2
|
13
|
+
- The Ruby-GNOME2 Project Team
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-05 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: gtk2
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 19
|
29
29
|
segments:
|
30
30
|
- 1
|
31
|
+
- 1
|
31
32
|
- 0
|
32
|
-
|
33
|
-
version: 1.0.3
|
33
|
+
version: 1.1.0
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
description: Ruby/VTE is a Ruby binding of VTE.
|
@@ -42,7 +42,6 @@ extensions:
|
|
42
42
|
extra_rdoc_files: []
|
43
43
|
|
44
44
|
files:
|
45
|
-
- ChangeLog
|
46
45
|
- README
|
47
46
|
- Rakefile
|
48
47
|
- extconf.rb
|
@@ -90,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
89
|
requirements: []
|
91
90
|
|
92
91
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.8.12
|
94
93
|
signing_key:
|
95
94
|
specification_version: 3
|
96
95
|
summary: Ruby/VTE is a Ruby binding of VTE.
|
data/ChangeLog
DELETED
@@ -1,134 +0,0 @@
|
|
1
|
-
2011-09-15 Kouhei Sutou <kou@cozmixng.org>
|
2
|
-
|
3
|
-
* lib/vte/deprecated.rb (GLib::Deprecatable#const_missing): don't
|
4
|
-
shadow real const_missing error.
|
5
|
-
|
6
|
-
2011-09-13 Masaaki Aoyagi
|
7
|
-
|
8
|
-
* lib/vte/deprecated.rb:
|
9
|
-
- change module name to GLib::Deprecatable(TODO: move to glib).
|
10
|
-
- improve warning message.
|
11
|
-
- fix constant_get
|
12
|
-
|
13
|
-
2011-09-11 Masaaki Aoyagi
|
14
|
-
|
15
|
-
* ext/vte/rbvte-terminal.c:
|
16
|
-
- add constants(EraseBinding,CursorBlinkMode,CursorShape).
|
17
|
-
* ext/vte/rbvte.c:
|
18
|
-
- delete deprecated constants(TerminalEraseBinding,TerminalCursorBlinkMode,TerminalCursorShape).
|
19
|
-
* lib/vte/deprecated.rb:
|
20
|
-
- define deprecated constants.
|
21
|
-
|
22
|
-
2011-09-11 Masaaki Aoyagi
|
23
|
-
|
24
|
-
* ext/vte/rbvte-terminal.c: merge 'match_set_cursor*' methods.
|
25
|
-
* lib/vte.rb: add require "vte/deprecated".
|
26
|
-
* lib/vte/deprecated.rb: add.
|
27
|
-
|
28
|
-
2011-09-11 Masaaki Aoyagi
|
29
|
-
|
30
|
-
* ext/vte/rbvte-terminal.c: not define method if property exist.
|
31
|
-
|
32
|
-
2011-09-11 Masaaki Aoyagi
|
33
|
-
|
34
|
-
* ext/vte/rbvte-terminal.c: change return value to self
|
35
|
-
|
36
|
-
2011-09-11 Masaaki Aoyagi
|
37
|
-
|
38
|
-
* ext/vte/rbvte.c,rbvte-pty.c,rbvte-terminal.c:
|
39
|
-
- implement version 0.26.2(exclude regular expressions)
|
40
|
-
|
41
|
-
2011-08-28 Masaaki Aoyagi
|
42
|
-
|
43
|
-
* ext/vte/rbvte-access.c: -> ext/vte/rbvte-terminalaccessible.c
|
44
|
-
|
45
|
-
2011-07-24 Masaaki Aoyagi
|
46
|
-
|
47
|
-
* ext/vte/*:
|
48
|
-
- divide by namespace.
|
49
|
-
- apply naming rules.
|
50
|
-
|
51
|
-
2011-07-23 Masaaki Aoyagi
|
52
|
-
|
53
|
-
* ext/vte/*.c: change file header comment.
|
54
|
-
|
55
|
-
2011-03-04 Kouhei Sutou <kou@clear-code.com>
|
56
|
-
|
57
|
-
* ext/vte/depend: fix .pc path. #3199587
|
58
|
-
Reported by OBATA Akio. Thanks!!!
|
59
|
-
|
60
|
-
2011-01-22 Masaaki Aoyagi
|
61
|
-
|
62
|
-
* src/lib/: -> lib/.
|
63
|
-
|
64
|
-
* src/: -> ext/vte/.
|
65
|
-
|
66
|
-
* extconf.rb: -> ext/vte/extconf.rb
|
67
|
-
|
68
|
-
* ext/vte/extconf.rb: support directory structure change.
|
69
|
-
|
70
|
-
* extconf.rb: add.
|
71
|
-
|
72
|
-
* Rakefile: add.
|
73
|
-
|
74
|
-
2010-09-23 Kouhei Sutou <kou@cozmixng.org>
|
75
|
-
|
76
|
-
* extconf.rb: support Ruby/GLib2 directory structure change.
|
77
|
-
|
78
|
-
2009-06-28 Kouhei Sutou <kou@cozmixng.org>
|
79
|
-
|
80
|
-
* src/rbvte-terminal.c:
|
81
|
-
- support vte_terminal_{set,get}_cursor_blink_mode().
|
82
|
-
- support vte_terminal_{set,get}_cursor_shape().
|
83
|
-
- support vte_terminal_get_pty().
|
84
|
-
- support vte_terminal_get_child_exit_status().
|
85
|
-
|
86
|
-
* extconf.rb, src/rbvte.h: use VTE_CHECK_VERSION provided by VTE itself.
|
87
|
-
|
88
|
-
2008-11-01 Kouhei Sutou <kou@cozmixng.org>
|
89
|
-
|
90
|
-
* src/: use RARRAY_PTR() and RARRAY_LEN().
|
91
|
-
|
92
|
-
2008-09-13 Kouhei Sutou <kou@cozmixng.org>
|
93
|
-
|
94
|
-
* extconf.rb: use check_cairo.
|
95
|
-
|
96
|
-
2008-04-13 Kouhei Sutou <kou@cozmixng.org>
|
97
|
-
|
98
|
-
* extconf.rb: fix rcairo's source path.
|
99
|
-
|
100
|
-
2007-07-13 Guillaume Cottenceau
|
101
|
-
|
102
|
-
* src/rbvte-terminal.c: replace RTEST uses by RVAL2CBOOL
|
103
|
-
|
104
|
-
2007-06-16 Kouhei Sutou <kou@cozmixng.org>
|
105
|
-
|
106
|
-
* src/rbvte-terminal.c: used RSTRING_LEN/RSTRING_PTR instead of
|
107
|
-
RSTRING()->len/ptr to support ruby 1.9.
|
108
|
-
|
109
|
-
2006-06-17 Masao Mutoh <mutoh@highway.ne.jp>
|
110
|
-
|
111
|
-
* sample/*.rb: code cleanup.
|
112
|
-
|
113
|
-
2006-05-26 Kouhei Sutou <kou@cozmixng.org>
|
114
|
-
|
115
|
-
* src/rbvte.h: added extern modifier.
|
116
|
-
|
117
|
-
2006-05-19 Kouhei Sutou <kou@cozmixng.org>
|
118
|
-
|
119
|
-
* src/rbvte-terminal.c (term_set_color_highlight,
|
120
|
-
term_set_word_chars): accepted nil.
|
121
|
-
(term_get_text, term_get_text_range, term_match_check): fixed
|
122
|
-
memory leak.
|
123
|
-
(word_char?): fixed typo.
|
124
|
-
|
125
|
-
2006-05-18 Kouhei Sutou <kou@cozmixng.org>
|
126
|
-
|
127
|
-
* src/rbvte-terminal.c (term_set_color_cursor): accepted nil.
|
128
|
-
|
129
|
-
* README: required 0.12.1 or later.
|
130
|
-
* extconf.rb: ditto.
|
131
|
-
|
132
|
-
2006-05-17 Kouhei Sutou <kou@cozmixng.org>
|
133
|
-
|
134
|
-
* .: imported.
|