vte3 3.4.3 → 3.4.7

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
  SHA256:
3
- metadata.gz: e29115967a39a2cc7ec73b5fd4fd6599c9343f578d54f4a57398f22b0bbc9dc9
4
- data.tar.gz: 21aa839f92a65555e9c66da1116a006ad860ee42a18b81ad1cab84f1c827eafa
3
+ metadata.gz: 9e539f5af4faea366fc5d9ba4c5636921f4f8a23b012af691e7556065507d810
4
+ data.tar.gz: f2d317296e4152e678a26971a58f202170eb99831c0982dda0540ff132f39847
5
5
  SHA512:
6
- metadata.gz: 4ff64ff142c980adc8f6b1fb1815186d33af56e7d024cb9ffebba0a16bcca51b6692b781adb89875918f027b70b6e465326f6975a9dff50aea8f26bf0a582dc1
7
- data.tar.gz: 94d9069af2ed4b3b830c0183a12b08e9efd4ef151f8908542bfe5a836c0ae6f0d44d0d10df416f6b314d08aad8b13d7071433b7ba13ab1cb8953c3ddb272b183
6
+ metadata.gz: d816a6a9b6c844fabaf538a30312c99d62fe9db559ecc7f5a53dbe2d468a106a7de7eefe8337976f47e1bbca282540e1e8ec8f06651020d8cd8584d838fe8903
7
+ data.tar.gz: b3a2f3e0623083f52e9be51c57e5fdbfd5cb1dd463280fbc313c7578f9e74898f7efa6834f1d3ebc4902bb3d59175ce0a84eed22ef1eee29be5f55c7f260f445
data/test/run-test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2014-2020 Ruby-GNOME Project Team
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
- ruby_gnome_base = File.join(File.dirname(__FILE__), "..", "..")
20
- ruby_gnome_base = File.expand_path(ruby_gnome_base)
21
-
22
- glib_base = File.join(ruby_gnome_base, "glib2")
23
- atk_base = File.join(ruby_gnome_base, "atk")
24
- pango_base = File.join(ruby_gnome_base, "pango")
25
- gdk_pixbuf_base = File.join(ruby_gnome_base, "gdk_pixbuf2")
26
- cairo_gobject_base = File.join(ruby_gnome_base, "cairo-gobject")
27
- gobject_introspection_base = File.join(ruby_gnome_base, "gobject-introspection")
28
- gio2_base = File.join(ruby_gnome_base, "gio2")
29
- gdk3_base = File.join(ruby_gnome_base, "gdk3")
30
- gtk3_base = File.join(ruby_gnome_base, "gtk3")
31
- vte3_base = File.join(ruby_gnome_base, "vte3")
32
-
33
- modules = [
34
- [glib_base, "glib2"],
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"))
@@ -16,6 +16,34 @@
16
16
 
17
17
  class TestTerminalSignals < Test::Unit::TestCase
18
18
  def setup
19
+ if Vte::Version.or_later?(0, 64)
20
+ omit("VTE 0.64 or later doesn't work in Docker by default")
21
+ # /usr/include/c++/11/bits/shared_ptr_base.h:976: std::__shared_ptr_access<
22
+ # _Tp,
23
+ # _Lp,
24
+ # <anonymous>,
25
+ # <anonymous>
26
+ # >::element_type&
27
+ # std::__shared_ptr_access<
28
+ # _Tp,
29
+ # _Lp,
30
+ # <anonymous>,
31
+ # <anonymous>
32
+ # >::operator*() const [
33
+ # with
34
+ # _Tp = vte::platform::Clipboard;
35
+ # __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic;
36
+ # bool <anonymous> = false;
37
+ # bool <anonymous> = false;
38
+ # std::__shared_ptr_access<
39
+ # _Tp,
40
+ # _Lp,
41
+ # <anonymous>,
42
+ # <anonymous>
43
+ # >::element_type = vte::platform::Clipboard
44
+ #]: Assertion '_M_get() != nullptr' failed.
45
+ end
46
+
19
47
  @terminal = Vte::Terminal.new
20
48
  end
21
49
 
@@ -34,6 +34,17 @@ class TestTerminal < Test::Unit::TestCase
34
34
  @child_exit_callback_id = @terminal.signal_connect("child-exited") do
35
35
  @loop.quit
36
36
  end
37
+
38
+ if Vte::Version.or_later?(0, 64)
39
+ omit("VTE 0.64 or later doesn't work in Docker by default")
40
+ # Fedora Rawhide test in Docker reports:
41
+ # Failed to fdwalk: Operation not permitted
42
+ # not NotFound.
43
+ #
44
+ # The following discussions may be related:
45
+ # https://github.com/mviereck/x11docker/issues/346
46
+ # https://github.com/containers/podman/issues/10130
47
+ end
37
48
  end
38
49
 
39
50
  teardown do
@@ -56,10 +67,28 @@ class TestTerminal < Test::Unit::TestCase
56
67
  end
57
68
 
58
69
  test "failure" do
59
- assert_raise(GLib::SpawnError) do
60
- @terminal.spawn(:argv => ["nonexistent"])
70
+ if Vte::Version.or_later?(0, 62)
71
+ error_class = Gio::IOError::NotFound
72
+ else
73
+ error_class = GLib::SpawnError
74
+ end
75
+ assert_raise(error_class) do
76
+ @terminal.spawn(:argv => ["/bin/nonexistent"])
61
77
  @wait_child_exited = true
62
78
  end
63
79
  end
64
80
  end
81
+
82
+ def test_get_text_range
83
+ only_vte_version(0, 52)
84
+ text, attributes = @terminal.get_text_range(0, 0, 1, 1)
85
+ assert_equal([
86
+ "\n",
87
+ [[0, 80]],
88
+ ],
89
+ [
90
+ text,
91
+ attributes.collect {|a| [a.row, a.column]},
92
+ ])
93
+ end
65
94
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014 Ruby-GNOME2 Project Team
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 "test-unit"
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.3
4
+ version: 3.4.7
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: 2020-05-10 00:00:00.000000000 Z
11
+ date: 2021-07-30 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.4.3
19
+ version: 3.4.7
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.4.3
27
- description: Ruby/VTE is a Ruby binding of VTE.
26
+ version: 3.4.7
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,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.2.0.pre1
73
+ rubygems_version: 3.3.0.dev
74
74
  signing_key:
75
75
  specification_version: 4
76
- summary: Ruby/VTE is a Ruby binding of VTE.
76
+ summary: Ruby/VTE is a Ruby binding of VTE for GTK+ 3
77
77
  test_files: []