vte3 3.3.9 → 3.4.4
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/README.md +2 -2
- data/lib/vte3/terminal.rb +2 -2
- data/test/run-test.rb +17 -45
- data/test/test-terminal.rb +19 -1
- data/test/vte3-test-utils.rb +2 -2
- data/vte3.gemspec +2 -2
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37f40704c0f784ae904f8642b972e0fd2b6eb5a0c077c364a8303e739cbe1305
|
4
|
+
data.tar.gz: 9c2708cab4c76e4e44fb322366f79b3cead272634186440e93c67a757724c595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f604df173ecfd77a47065ba6f30407f8c5111d4ca320e67eb02f79adfff63709f1f27e47b5c8efd5dbaaa4a888421d8b516ea12ed8c46c574c9b8fa8479666d8
|
7
|
+
data.tar.gz: 4693e11dccba024fd1681d5d1458a5b9263126b1499d0c7af4090c4306f970120a72a194348b5f813de671d4367da3b8ed97afb6cf52e3666050821d5a2f6b80
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ Ruby/VTE3 is a Ruby binding of VTE for use with GTK3.
|
|
5
5
|
## Requirements
|
6
6
|
|
7
7
|
* Ruby/GTK3 in
|
8
|
-
[Ruby-
|
8
|
+
[Ruby-GNOME](https://ruby-gnome2.osdn.jp/)
|
9
9
|
* [VTE](https://live.gnome.org/Terminal/VTE)
|
10
10
|
|
11
11
|
## Install
|
@@ -14,7 +14,7 @@ Ruby/VTE3 is a Ruby binding of VTE for use with GTK3.
|
|
14
14
|
|
15
15
|
## License
|
16
16
|
|
17
|
-
Copyright (c) 2014 Ruby-
|
17
|
+
Copyright (c) 2014-2020 Ruby-GNOME Project Team
|
18
18
|
|
19
19
|
This program is free software. You can distribute/modify this program
|
20
20
|
under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
|
data/lib/vte3/terminal.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2015 Ruby-
|
1
|
+
# Copyright (C) 2015-2020 Ruby-GNOME 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
|
@@ -44,7 +44,7 @@ module Vte
|
|
44
44
|
pty_object
|
45
45
|
end
|
46
46
|
else
|
47
|
-
def spawn(options)
|
47
|
+
def spawn(options={})
|
48
48
|
pty_flags = options[:pty_flags] || PtyFlags::DEFAULT
|
49
49
|
working_directory = options[:working_directory]
|
50
50
|
argv = options[:argv] || [ENV["SHELL"] || "/bin/sh"]
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014-
|
3
|
+
# Copyright (C) 2014-2021 Ruby-GNOME Project Team
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,48 +16,20 @@
|
|
16
16
|
# License along with this library; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
[atk_base, "atk"],
|
36
|
-
[pango_base, "pango"],
|
37
|
-
[cairo_gobject_base, "cairo-gobject"],
|
38
|
-
[gdk_pixbuf_base, "gdk_pixbuf2"],
|
39
|
-
[gobject_introspection_base, "gobject-introspection"],
|
40
|
-
[gio2_base, "gio2"],
|
41
|
-
[gdk3_base, "gdk3"],
|
42
|
-
[gtk3_base, "gtk3"],
|
43
|
-
[vte3_base, "vte3"],
|
44
|
-
]
|
45
|
-
|
46
|
-
modules.each do |target, module_name|
|
47
|
-
makefile = File.join(target, "Makefile")
|
48
|
-
if File.exist?(makefile) and system("which make > /dev/null")
|
49
|
-
`make -C #{target.dump} > /dev/null` or exit(false)
|
50
|
-
end
|
51
|
-
$LOAD_PATH.unshift(File.join(target, "ext", module_name))
|
52
|
-
$LOAD_PATH.unshift(File.join(target, "lib"))
|
19
|
+
require_relative "../../glib2/test/run-test"
|
20
|
+
|
21
|
+
run_test(__dir__,
|
22
|
+
[
|
23
|
+
"glib2",
|
24
|
+
"gobject-introspection",
|
25
|
+
"gio2",
|
26
|
+
"gdk_pixbuf2",
|
27
|
+
"atk",
|
28
|
+
"cairo-gobject",
|
29
|
+
"pango",
|
30
|
+
"gdk3",
|
31
|
+
"gtk3",
|
32
|
+
"vte3",
|
33
|
+
]) do
|
34
|
+
require_relative "vte3-test-utils"
|
53
35
|
end
|
54
|
-
|
55
|
-
$LOAD_PATH.unshift(File.join(glib_base, "test"))
|
56
|
-
require "glib-test-init"
|
57
|
-
|
58
|
-
$LOAD_PATH.unshift(File.join(vte3_base, "test"))
|
59
|
-
require "vte3-test-utils"
|
60
|
-
|
61
|
-
require "vte3"
|
62
|
-
|
63
|
-
exit Test::Unit::AutoRunner.run(true, File.join(vte3_base, "test"))
|
data/test/test-terminal.rb
CHANGED
@@ -56,10 +56,28 @@ class TestTerminal < Test::Unit::TestCase
|
|
56
56
|
end
|
57
57
|
|
58
58
|
test "failure" do
|
59
|
-
|
59
|
+
if Vte::Version.or_later?(0, 62)
|
60
|
+
error_class = Gio::IOError::NotFound
|
61
|
+
else
|
62
|
+
error_class = GLib::SpawnError
|
63
|
+
end
|
64
|
+
assert_raise(error_class) do
|
60
65
|
@terminal.spawn(:argv => ["nonexistent"])
|
61
66
|
@wait_child_exited = true
|
62
67
|
end
|
63
68
|
end
|
64
69
|
end
|
70
|
+
|
71
|
+
def test_get_text_range
|
72
|
+
only_vte_version(0, 52)
|
73
|
+
text, attributes = @terminal.get_text_range(0, 0, 1, 1)
|
74
|
+
assert_equal([
|
75
|
+
"\n",
|
76
|
+
[[0, 80]],
|
77
|
+
],
|
78
|
+
[
|
79
|
+
text,
|
80
|
+
attributes.collect {|a| [a.row, a.column]},
|
81
|
+
])
|
82
|
+
end
|
65
83
|
end
|
data/test/vte3-test-utils.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014 Ruby-
|
1
|
+
# Copyright (C) 2014-2021 Ruby-GNOME 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
|
@@ -14,7 +14,7 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
require "
|
17
|
+
require "vte3"
|
18
18
|
|
19
19
|
module VteTestUtils
|
20
20
|
private
|
data/vte3.gemspec
CHANGED
@@ -20,8 +20,8 @@ require_relative "../glib2/version"
|
|
20
20
|
|
21
21
|
Gem::Specification.new do |s|
|
22
22
|
s.name = "vte3"
|
23
|
-
s.summary = "Ruby/VTE is a Ruby binding of VTE
|
24
|
-
s.description = "Ruby/VTE is a Ruby binding of VTE
|
23
|
+
s.summary = "Ruby/VTE is a Ruby binding of VTE for GTK+ 3"
|
24
|
+
s.description = "Ruby/VTE is a Ruby binding of VTE for GTK+ 3"
|
25
25
|
s.author = "The Ruby-GNOME Project Team"
|
26
26
|
s.email = "ruby-gnome2-devel-en@lists.sourceforge.net"
|
27
27
|
s.homepage = "https://ruby-gnome2.osdn.jp/"
|
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.
|
4
|
+
version: 3.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -16,15 +16,15 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.4.4
|
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.
|
27
|
-
description: Ruby/VTE is a Ruby binding of VTE
|
26
|
+
version: 3.4.4
|
27
|
+
description: Ruby/VTE is a Ruby binding of VTE for GTK+ 3
|
28
28
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
29
|
executables: []
|
30
30
|
extensions:
|
@@ -70,9 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
|
-
|
74
|
-
rubygems_version: 2.7.6.2
|
73
|
+
rubygems_version: 3.3.0.dev
|
75
74
|
signing_key:
|
76
75
|
specification_version: 4
|
77
|
-
summary: Ruby/VTE is a Ruby binding of VTE
|
76
|
+
summary: Ruby/VTE is a Ruby binding of VTE for GTK+ 3
|
78
77
|
test_files: []
|