clutter-gtk 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +1 -0
- data/lib/clutter-gtk.rb +1 -1
- data/test/run-test.rb +27 -4
- data/test/test-clutter-gtk-embed.rb +21 -0
- metadata +15 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 11823c2b613df2a84cd6e5c61b430efbfcd2401e
|
4
|
+
data.tar.gz: 49374fc6c73653f5494ea27d80bd170bc99a0cd2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0754decfacdeefb5b71dcaceb8975aa4ed5d41ba8f3b1fa2f93dcb6e698846390f82fe52b01f6fbb60b128bafc8f5badc0def2ff443e4a7c92501d24b909940d
|
7
|
+
data.tar.gz: 6902fbfa916994c3f51cd4690aa2903c317b3d632ac1cee4eeaf02f2fc7e9df4bcfed057beb723d3dd5caf0b3936d4eaa89f88b39600c300594144bfad614d75
|
data/Rakefile
CHANGED
data/lib/clutter-gtk.rb
CHANGED
@@ -65,7 +65,7 @@ module ClutterGtk
|
|
65
65
|
1 + @init_arguments.size,
|
66
66
|
[$0] + @init_arguments,
|
67
67
|
]
|
68
|
-
error, argc, argv = init.invoke(arguments)
|
68
|
+
error, argc, argv = init.invoke(:arguments => arguments)
|
69
69
|
@init_arguments.replace(argv)
|
70
70
|
if error.to_i <= 0
|
71
71
|
raise InitError, "failed to initialize Clutter: #{error.name}"
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2012 Ruby-GNOME2 Project Team
|
3
|
+
# Copyright (C) 2012-2013 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,20 +16,36 @@
|
|
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
|
+
have_make = system("which make > /dev/null")
|
20
|
+
|
19
21
|
ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
|
20
22
|
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
21
23
|
|
22
24
|
glib_base = File.join(ruby_gnome2_base, "glib2")
|
25
|
+
atk_base = File.join(ruby_gnome2_base, "atk")
|
26
|
+
pango_base = File.join(ruby_gnome2_base, "pango")
|
27
|
+
gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
|
28
|
+
cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
|
23
29
|
gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
|
24
30
|
clutter_base = File.join(ruby_gnome2_base, "clutter")
|
31
|
+
gdk3_base = File.join(ruby_gnome2_base, "gdk3")
|
32
|
+
gtk3_base = File.join(ruby_gnome2_base, "gtk3")
|
33
|
+
clutter_gtk_base = File.join(ruby_gnome2_base, "clutter-gtk")
|
25
34
|
|
26
35
|
modules = [
|
27
36
|
[glib_base, "glib2"],
|
37
|
+
[atk_base, "atk"],
|
38
|
+
[pango_base, "pango"],
|
39
|
+
[gdk_pixbuf_base, "gdk_pixbuf2"],
|
40
|
+
[cairo_gobject_base, "cairo-gobject"],
|
28
41
|
[gobject_introspection_base, "gobject-introspection"],
|
29
42
|
[clutter_base, "clutter"],
|
43
|
+
[gdk3_base, "gdk3"],
|
44
|
+
[gtk3_base, "gtk3"],
|
45
|
+
[clutter_gtk_base, "clutter-gtk"],
|
30
46
|
]
|
31
47
|
modules.each do |target, module_name|
|
32
|
-
if
|
48
|
+
if File.exist?(File.join(target, "Makefile")) and have_make
|
33
49
|
`make -C #{target.dump} > /dev/null` or exit(false)
|
34
50
|
end
|
35
51
|
$LOAD_PATH.unshift(File.join(target, "ext", module_name))
|
@@ -39,12 +55,19 @@ end
|
|
39
55
|
$LOAD_PATH.unshift(File.join(glib_base, "test"))
|
40
56
|
require "glib-test-init"
|
41
57
|
|
58
|
+
$VERBOSE = false # TODO: remove me
|
59
|
+
|
42
60
|
$LOAD_PATH.unshift(File.join(gobject_introspection_base, "test"))
|
43
61
|
require "gobject-introspection-test-utils"
|
44
62
|
|
45
63
|
$LOAD_PATH.unshift(File.join(clutter_base, "test"))
|
46
64
|
require "clutter-test-utils"
|
47
65
|
|
48
|
-
|
66
|
+
$LOAD_PATH.unshift(File.join(clutter_gtk_base, "test"))
|
67
|
+
require "clutter-gtk-test-utils"
|
68
|
+
|
69
|
+
require "clutter-gtk"
|
49
70
|
|
50
|
-
|
71
|
+
# exclude sample/test-*
|
72
|
+
clutter_gtk_test_base = File.join(clutter_gtk_base, "test")
|
73
|
+
exit Test::Unit::AutoRunner.run(true, clutter_gtk_test_base)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
class ClutterGtkEmbedTest < Test::Unit::TestCase
|
18
|
+
def test_new
|
19
|
+
assert_not_nil(ClutterGtk::Embed.new)
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clutter-gtk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- The Ruby-GNOME2 Project Team
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: clutter
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.0.
|
19
|
+
version: 2.0.3
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0.
|
26
|
+
version: 2.0.3
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: gtk3
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.
|
33
|
+
version: 2.0.3
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.
|
40
|
+
version: 2.0.3
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: test-unit-notify
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description: Ruby/ClutterGTK is a Ruby binding of Clutter-GTK.
|
@@ -77,28 +70,28 @@ files:
|
|
77
70
|
- sample/window-test2.rb
|
78
71
|
- test/clutter-gtk-test-utils.rb
|
79
72
|
- test/run-test.rb
|
73
|
+
- test/test-clutter-gtk-embed.rb
|
80
74
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
81
75
|
licenses: []
|
76
|
+
metadata: {}
|
82
77
|
post_install_message:
|
83
78
|
rdoc_options: []
|
84
79
|
require_paths:
|
85
80
|
- lib
|
86
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
82
|
requirements:
|
89
|
-
- -
|
83
|
+
- - '>='
|
90
84
|
- !ruby/object:Gem::Version
|
91
|
-
version: 1.
|
85
|
+
version: 1.9.3
|
92
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
87
|
requirements:
|
95
|
-
- -
|
88
|
+
- - '>='
|
96
89
|
- !ruby/object:Gem::Version
|
97
90
|
version: '0'
|
98
91
|
requirements: []
|
99
92
|
rubyforge_project:
|
100
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.0.14
|
101
94
|
signing_key:
|
102
|
-
specification_version:
|
95
|
+
specification_version: 4
|
103
96
|
summary: Ruby/ClutterGTK is a Ruby binding of Clutter-GTK.
|
104
97
|
test_files: []
|