vte3 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ece5691f451deec46b88d8cd60aa076f7ffc8dd7
4
- data.tar.gz: fc62ac648e1e21ae057ee74ca7eb2a17b05e0c19
3
+ metadata.gz: 30a67e091124764310876893178d9c4a82008308
4
+ data.tar.gz: d764de4adbeb647d58d051311542d1450a51d1ef
5
5
  SHA512:
6
- metadata.gz: 9dcf4c6bf6547ad2e8a4d8ff7953497ba7340fb46b07e912d64033f096a42ba94f2ed361413ab1061ff4308d37c597fe81f21f98dc5a76cc0474183e7dad72e3
7
- data.tar.gz: 4fa3e8ab170707307a00ed18498220e87ae6e7cd4f2dfa921fa1d10765cc8e231897238c00e983ad97aae6d1390fa2858bf99a8d96981f6b84f88f89727db3dd
6
+ metadata.gz: f0bfa2311ded52fd15130554143a8191891a99e79e077e0748a360592cad332be7f963fc289bfa577a262625b10045be80a63face4b83820dca19f82ce53b64e
7
+ data.tar.gz: ee8ff2e2c3524482dbc9a9e4dd3ef679b6235fe5571efc8b2843a01e33982289b26c2c7cd00f6f55bd9fddc4445265129ca68d1c4a359ae3749a24e585f70666
@@ -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
- define_deprecated_const :EraseBinding, 'Vte::TerminalEraseBinding'
23
- define_deprecated_const :CursorBlinkMode, 'Vte::TerminalCursorBlinkMode'
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
@@ -60,4 +60,4 @@ require "vte3-test-utils"
60
60
 
61
61
  require "vte3"
62
62
 
63
- exit Test::Unit::AutoRunner.run(true)
63
+ exit Test::Unit::AutoRunner.run(true, File.join(vte3_base, "test"))
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
- row = 80
31
- col = 24
32
- @pty.set_size(row, col)
33
- assert_equal([row, col], @pty.size)
34
- end
35
-
36
- def test_term
37
- term_type = "vt100"
38
- @pty.term = term_type
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::TerminalEraseBinding::DELETE_SEQUENCE
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::TerminalCursorBlinkMode::ON
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::TerminalCursorShape::IBEAM
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::TerminalEraseBinding::ASCII_DELETE
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
@@ -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 "#fork_command" do
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.fork_command(:argv => ["echo"])
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.fork_command(:argv => ["nonexistent"])
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.5
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-09-22 00:00:00.000000000 Z
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.5
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.5
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.5
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.5
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: []