vte3 3.0.5 → 3.0.6
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.
- checksums.yaml +4 -4
- data/lib/vte3/deprecated.rb +21 -4
- data/test/run-test.rb +1 -1
- data/test/test-pty.rb +9 -10
- data/test/test-terminal-properties.rb +5 -34
- data/test/test-terminal-signals.rb +0 -9
- data/test/test-terminal.rb +12 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30a67e091124764310876893178d9c4a82008308
|
4
|
+
data.tar.gz: d764de4adbeb647d58d051311542d1450a51d1ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0bfa2311ded52fd15130554143a8191891a99e79e077e0748a360592cad332be7f963fc289bfa577a262625b10045be80a63face4b83820dca19f82ce53b64e
|
7
|
+
data.tar.gz: ee8ff2e2c3524482dbc9a9e4dd3ef679b6235fe5571efc8b2843a01e33982289b26c2c7cd00f6f55bd9fddc4445265129ca68d1c4a359ae3749a24e585f70666
|
data/lib/vte3/deprecated.rb
CHANGED
@@ -17,12 +17,29 @@
|
|
17
17
|
module Vte
|
18
18
|
extend GLib::Deprecatable
|
19
19
|
|
20
|
+
if const_defined?(:TerminalEraseBinding)
|
21
|
+
define_deprecated_const :EraseBinding, "Vte::TerminalEraseBinding"
|
22
|
+
else
|
23
|
+
define_deprecated_const :TerminalEraseBinding, "Vte::EraseBinding"
|
24
|
+
end
|
25
|
+
|
26
|
+
if const_defined?(:TerminalCursorBlinkMode)
|
27
|
+
define_deprecated_const :CursorBlinkMode, "Vte::TerminalCursorBlinkMode"
|
28
|
+
else
|
29
|
+
define_deprecated_const :TerminalCursorBlinkMode, "Vte::CursorBlinkMode"
|
30
|
+
end
|
31
|
+
|
32
|
+
if const_defined?(:TerminalCursorShape)
|
33
|
+
define_deprecated_const :CursorShape, "Vte::TerminalCursorShape"
|
34
|
+
else
|
35
|
+
define_deprecated_const :TerminalCursorShape, "Vte::CursorShape"
|
36
|
+
end
|
37
|
+
|
38
|
+
|
20
39
|
class Terminal
|
21
40
|
extend GLib::Deprecatable
|
22
|
-
|
23
|
-
define_deprecated_const :
|
24
|
-
define_deprecated_const :CursorShape, 'Vte::TerminalCursorShape'
|
25
|
-
define_deprecated_const :WriteFlags, 'Vte::TerminalWriteFlags'
|
41
|
+
|
42
|
+
define_deprecated_const :WriteFlags, "Vte::TerminalWriteFlags"
|
26
43
|
|
27
44
|
define_deprecated_method :fork_pty, :raise => "Use 'Vte::Pty#fork'."
|
28
45
|
define_deprecated_method :using_xft?, :warn => "Don't use this method." do |_self|
|
data/test/run-test.rb
CHANGED
data/test/test-pty.rb
CHANGED
@@ -27,16 +27,15 @@ class TestPty < Test::Unit::TestCase
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_size
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
assert_equal(term_type, @pty.term)
|
30
|
+
original = @pty.size
|
31
|
+
begin
|
32
|
+
row = 80
|
33
|
+
col = 24
|
34
|
+
@pty.set_size(row, col)
|
35
|
+
assert_equal([row, col], @pty.size)
|
36
|
+
ensure
|
37
|
+
@pty.set_size(*original)
|
38
|
+
end
|
40
39
|
end
|
41
40
|
|
42
41
|
def test_utf8
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014 Ruby-GNOME2 Project Team
|
1
|
+
# Copyright (C) 2014-2015 Ruby-GNOME2 Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -31,40 +31,29 @@ class TestTerminalProperties < Test::Unit::TestCase
|
|
31
31
|
assert_false(@terminal.audible_bell?)
|
32
32
|
end
|
33
33
|
|
34
|
-
def test_background_image_file
|
35
|
-
image_name = "image_file"
|
36
|
-
@terminal.background_image_file = image_name
|
37
|
-
assert_equal(image_name, @terminal.background_image_file)
|
38
|
-
end
|
39
|
-
|
40
34
|
def test_backspace_binding
|
41
|
-
bind = Vte::
|
35
|
+
bind = Vte::EraseBinding::DELETE_SEQUENCE
|
42
36
|
@terminal.backspace_binding = bind
|
43
37
|
assert_equal(bind, @terminal.backspace_binding)
|
44
38
|
end
|
45
39
|
|
46
40
|
def test_cursor_blink_mode
|
47
|
-
cursor_mode = Vte::
|
41
|
+
cursor_mode = Vte::CursorBlinkMode::ON
|
48
42
|
@terminal.cursor_blink_mode = cursor_mode
|
49
43
|
assert_equal(cursor_mode, @terminal.cursor_blink_mode)
|
50
44
|
end
|
51
45
|
|
52
46
|
def test_cursor_shape
|
53
|
-
shape = Vte::
|
47
|
+
shape = Vte::CursorShape::IBEAM
|
54
48
|
@terminal.cursor_shape = shape
|
55
49
|
assert_equal(shape, @terminal.cursor_shape)
|
56
50
|
end
|
57
51
|
|
58
52
|
def test_delete_binding
|
59
|
-
bind = Vte::
|
53
|
+
bind = Vte::EraseBinding::ASCII_DELETE
|
60
54
|
@terminal.delete_binding = bind
|
61
55
|
assert_equal(bind, @terminal.delete_binding)
|
62
56
|
end
|
63
|
-
def test_emulation
|
64
|
-
terminal_type = "vt100"
|
65
|
-
@terminal.emulation = terminal_type
|
66
|
-
assert_equal(terminal_type, @terminal.emulation)
|
67
|
-
end
|
68
57
|
|
69
58
|
def test_encoding
|
70
59
|
encoding = "UTF-16"
|
@@ -84,18 +73,6 @@ class TestTerminalProperties < Test::Unit::TestCase
|
|
84
73
|
assert_true(@terminal.pointer_autohide?)
|
85
74
|
end
|
86
75
|
|
87
|
-
def test_rewrap_on_resize
|
88
|
-
omit_if_not_respond(@terminal, :rewrap_on_resize?)
|
89
|
-
@terminal.rewrap_on_resize = false
|
90
|
-
assert_false(@terminal.rewrap_on_resize?)
|
91
|
-
end
|
92
|
-
|
93
|
-
def test_scroll_background
|
94
|
-
scroll = true
|
95
|
-
@terminal.scroll_background = scroll
|
96
|
-
assert_true(@terminal.scroll_background?)
|
97
|
-
end
|
98
|
-
|
99
76
|
def test_scroll_on_keystroke
|
100
77
|
scroll = true
|
101
78
|
@terminal.scroll_on_keystroke = scroll
|
@@ -113,10 +90,4 @@ class TestTerminalProperties < Test::Unit::TestCase
|
|
113
90
|
@terminal.scrollback_lines = lines
|
114
91
|
assert_equal(lines, @terminal.scrollback_lines)
|
115
92
|
end
|
116
|
-
|
117
|
-
def test_visible_bell
|
118
|
-
visible = true
|
119
|
-
@terminal.visible_bell = visible
|
120
|
-
assert_true(@terminal.visible_bell?)
|
121
|
-
end
|
122
93
|
end
|
@@ -19,15 +19,6 @@ class TestTerminalSignals < Test::Unit::TestCase
|
|
19
19
|
@terminal = Vte::Terminal.new
|
20
20
|
end
|
21
21
|
|
22
|
-
def test_beep_signal
|
23
|
-
called = false
|
24
|
-
@terminal.signal_connect("beep") do
|
25
|
-
called = true
|
26
|
-
end
|
27
|
-
@terminal.signal_emit("beep")
|
28
|
-
assert_true(called)
|
29
|
-
end
|
30
|
-
|
31
22
|
def test_copy_clipboard_signal
|
32
23
|
called = false
|
33
24
|
@terminal.signal_connect("copy-clipboard") do
|
data/test/test-terminal.rb
CHANGED
@@ -27,9 +27,18 @@ class TestTerminal < Test::Unit::TestCase
|
|
27
27
|
assert_equal(font, @terminal.font)
|
28
28
|
end
|
29
29
|
|
30
|
-
sub_test_case "#
|
30
|
+
sub_test_case "#spawn" do
|
31
|
+
teardown do
|
32
|
+
loop = GLib::MainLoop.new
|
33
|
+
GLib::Idle.add do
|
34
|
+
loop.quit
|
35
|
+
GLib::Source::REMOVE
|
36
|
+
end
|
37
|
+
loop.run
|
38
|
+
end
|
39
|
+
|
31
40
|
test "success" do
|
32
|
-
pid = @terminal.
|
41
|
+
pid = @terminal.spawn(:argv => ["echo"])
|
33
42
|
assert do
|
34
43
|
pid > 0
|
35
44
|
end
|
@@ -37,7 +46,7 @@ class TestTerminal < Test::Unit::TestCase
|
|
37
46
|
|
38
47
|
test "failure" do
|
39
48
|
assert_raise(GLib::SpawnError) do
|
40
|
-
@terminal.
|
49
|
+
@terminal.spawn(:argv => ["nonexistent"])
|
41
50
|
end
|
42
51
|
end
|
43
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vte3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.
|
19
|
+
version: 3.0.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.
|
26
|
+
version: 3.0.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gobject-introspection
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0.
|
33
|
+
version: 3.0.6
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.0.
|
40
|
+
version: 3.0.6
|
41
41
|
description: Ruby/VTE is a Ruby binding of VTE.
|
42
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
43
43
|
executables: []
|