wnck3 3.4.0 → 3.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/test/helper.rb +1 -3
  3. data/test/run-test.rb +24 -52
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d02d3843b7c1899c93500e81be84e18890036e2d46a539a516808dccfad816b7
4
- data.tar.gz: bda38fb2b7fe7b0e77ead2d4cfe2b8e90f271cae8fc5a59bd8d22a2c1c8a73ed
3
+ metadata.gz: 0f429e04bd9d8a26b3e313716ed68de997646aba26c6f66dee2cc7b234623ae6
4
+ data.tar.gz: 8b0943f699f08e82dc3c3597031752843e44e78481d1deda42109fc8e1118570
5
5
  SHA512:
6
- metadata.gz: b47d365597186d74084053f0c330b9bc012afd9930cfd9378a8192752384dcc9521f22621212e4bda4411ed2ac11471ccfe07898a61f00375ad15b354e7e3ba0
7
- data.tar.gz: c4fdc5509882d934743e80d8e8b28ef6b7759103174903fa8f4c8302372cc045c3f65de2e0faafbeef16547c6235794b4790dee08e5c918e3f4c5d9e6d66e566
6
+ metadata.gz: 14ec22cc683394425973ac866875bd63b3f79b9f815beae9f839b785eaf4d2349778b0a6a0b1f7beebda688505a5270f22691ab000155f89b9ca9083f1f3e1ce
7
+ data.tar.gz: f3a70896ea16bc1797a550d1e65b8814aaaffec9e7de4b4befd7d6eb13fcb4eb6ed0ec4f4a62d17c93dff82813f98ae3c9f4c8e169864b68a6531447f1781201
data/test/helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2019-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,8 +14,6 @@
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"
18
-
19
17
  module WnckTestHelper
20
18
  private
21
19
  def only_version(major, minor, micro=nil)
data/test/run-test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2019 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2019-2021 Ruby-GNOME2 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,59 +16,31 @@
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
- gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
24
- gio_base = File.join(ruby_gnome2_base, "gio2")
25
- atk_base = File.join(ruby_gnome2_base, "atk")
26
- cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
27
- pango_base = File.join(ruby_gnome2_base, "pango")
28
- gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
29
- gdk_base = File.join(ruby_gnome2_base, "gdk3")
30
- gtk_base = File.join(ruby_gnome2_base, "gtk3")
31
- wnck_base = File.join(ruby_gnome2_base, "wnck3")
32
-
33
- modules = [
34
- [glib_base, "glib2"],
35
- [gobject_introspection_base, "gobject-introspection"],
36
- [gio_base, "gio2"],
37
- [atk_base, "atk"],
38
- [cairo_gobject_base, "cairo-gobject"],
39
- [pango_base, "pango"],
40
- [gdk_pixbuf_base, "gdk_pixbuf2"],
41
- [gdk_base, "gdk3"],
42
- [gtk_base, "gtk3"],
43
- [wnck_base, "wnck3"],
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)
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
+ "wnck3",
33
+ ]) do
34
+ begin
35
+ require "wnck3"
36
+ rescue GObjectIntrospection::RepositoryError
37
+ puts("Omit because typelib file doesn't exist: #{$!.message}")
38
+ exit(true)
50
39
  end
51
- $LOAD_PATH.unshift(File.join(target, "ext", module_name))
52
- $LOAD_PATH.unshift(File.join(target, "lib"))
53
- end
54
40
 
55
- $LOAD_PATH.unshift(File.join(glib_base, "test"))
56
- require "glib-test-init"
41
+ require "gtk3"
57
42
 
58
- $LOAD_PATH.unshift(File.join(wnck_base, "test"))
59
- require_relative "helper"
43
+ Gtk.init
60
44
 
61
- $VERBOSE = true
62
-
63
- begin
64
- require "wnck3"
65
- rescue GObjectIntrospection::RepositoryError
66
- puts("Omit because typelib file doesn't exist: #{$!.message}")
67
- exit(true)
45
+ require_relative "helper"
68
46
  end
69
-
70
- require "gtk3"
71
-
72
- Gtk.init
73
-
74
- exit(Test::Unit::AutoRunner.run(true, File.join(wnck_base, "test")))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wnck3
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,14 +16,14 @@ 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
26
+ version: 3.4.5
27
27
  description: Ruby/WNCK3 is a Ruby binding of libwnck 3.
28
28
  email: ruby-gnome2-devel-en@lists.sourceforge.net
29
29
  executables: []
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
- rubygems_version: 3.1.0.pre1
65
+ rubygems_version: 3.3.0.dev
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Ruby/WNCK3 is a Ruby binding of libwnck 3.