vte3 3.4.0 → 3.4.5

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: 985e76ee9fec55de3ee3938d050bf24f1c9341fa4f4e6653cd1f355e732f36ba
4
- data.tar.gz: bf307b975856d30a9389e6969fc1b2f826ab633e5da9a7bdd07e0d4e6fec07be
3
+ metadata.gz: 461fe614d7e0ef2a7a3540dc528176a788a2aa299f346be7f5778e06da37d3ba
4
+ data.tar.gz: 943a7d574a003d3c5a43d4380dd998395cbdb5c0a57f394cceebcee084342e38
5
5
  SHA512:
6
- metadata.gz: e7b0a4c073bdcd312c970023dea516061681a3b8a6b98dbf6682af87996771b9c19cf9684357aea9e1b255cb313738e79d27a317b8dfa8281485cc3cb4bd9edb
7
- data.tar.gz: 335257283c8a143abe916571b231c49bc3ed034fffdf95609716460c2fc820aa36545dae4382d019b30198f8af0f6f2639894c55479cb9437fa8cf7bd83e2694
6
+ metadata.gz: 82d1b78441bd1cb6712666eb78ba2e2398913a0a303d2d249950c4d6b736e3eddc706e1ffa8d8d3227f05d1ab9ff8d8946b34fa48bf8db4f9207961d3cedfe26
7
+ data.tar.gz: f7ab1a2b90affd51bd2e84d549f32f153ba7e87f0ca4469350a1932ed7a71b131c67b6a20901f1d539b3dc9aeff4d972866631f65ac839123edae9db1a080882
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-GNOME2](https://ruby-gnome2.osdn.jp/)
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-GNOME2 Project Team
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-GNOME2 Project Team
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-2015 Ruby-GNOME2 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_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
20
- ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
21
-
22
- glib_base = File.join(ruby_gnome2_base, "glib2")
23
- atk_base = File.join(ruby_gnome2_base, "atk")
24
- pango_base = File.join(ruby_gnome2_base, "pango")
25
- gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
26
- cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
27
- gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
28
- gio2_base = File.join(ruby_gnome2_base, "gio2")
29
- gdk3_base = File.join(ruby_gnome2_base, "gdk3")
30
- gtk3_base = File.join(ruby_gnome2_base, "gtk3")
31
- vte3_base = File.join(ruby_gnome2_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.0
4
+ version: 3.4.5
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: 2019-10-10 00:00:00.000000000 Z
11
+ date: 2021-07-07 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.0
19
+ version: 3.4.5
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.0
27
- description: Ruby/VTE is a Ruby binding of VTE.
26
+ version: 3.4.5
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.1.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: []