clutter 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 59b93961b1a13fef923289569ea1a2f25013ab1f
4
+ data.tar.gz: e45ee9f3af93529b9e00c13e6cb5d7e668caffd0
5
+ SHA512:
6
+ metadata.gz: 0f329fb47a6f3557fde7a355f10ef9002f536d1a9b7bc62ad79a7224364a58125e4d77bc7738596db7abe9552a197be3f1703a3f384631541d510b32998e79cc
7
+ data.tar.gz: 0e9363c8f275cbec27450c1175b6d620d39946beed32c0f41e86cd2a68af3a70ffa0e9431f7944d86b6428c940f682ae50ab89c6f3a4be0de73c06fdea895be1
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- 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
@@ -79,7 +79,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
79
79
  :name => "cogl",
80
80
  :download_site => :gnome,
81
81
  :label => "Cogl",
82
- :version => "1.14.0",
82
+ :version => "1.16.0",
83
83
  :compression_method => "xz",
84
84
  :windows => {
85
85
  :configure_args => [
@@ -92,7 +92,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
92
92
  :name => "json-glib",
93
93
  :download_site => :gnome,
94
94
  :label => "JSON-GLib",
95
- :version => "0.16.0",
95
+ :version => "0.16.2",
96
96
  :compression_method => "xz",
97
97
  :windows => {
98
98
  :configure_args => [
@@ -104,7 +104,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
104
104
  :name => "clutter",
105
105
  :download_site => :gnome,
106
106
  :label => "Clutter",
107
- :version => "1.14.4",
107
+ :version => "1.16.2",
108
108
  :compression_method => "xz",
109
109
  :windows => {
110
110
  :configure_args => [
data/lib/clutter.rb CHANGED
@@ -82,7 +82,7 @@ module Clutter
82
82
  1 + @init_arguments.size,
83
83
  [$0] + @init_arguments,
84
84
  ]
85
- error, argc, argv = init.invoke(arguments)
85
+ error, argc, argv = init.invoke(:arguments => arguments)
86
86
  @init_arguments.replace(argv)
87
87
  if error.to_i <= 0
88
88
  raise InitError, "failed to initialize Clutter: #{error.name}"
@@ -59,9 +59,7 @@ end
59
59
 
60
60
  main_stage = stage
61
61
 
62
- stage_size = stage.size
63
- stage_width = stage_size.width
64
- stage_height = stage_size.height
62
+ stage_width, stage_height = stage.size
65
63
 
66
64
  bouncer_width = 50
67
65
  bouncer_height = 50
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2012-2013 Ruby-GNOME2 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
@@ -18,4 +18,9 @@ require "test-unit"
18
18
  require "test/unit/notify"
19
19
 
20
20
  module ClutterTestUtils
21
+ def omit_if_clutter_color_hash_expect_arguments
22
+ unless Clutter::Color.method(:hash).parameters.empty?
23
+ omit("This test can't be run on this environment.")
24
+ end
25
+ end
21
26
  end
data/test/run-test.rb CHANGED
@@ -20,11 +20,13 @@ ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
20
20
  ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
21
21
 
22
22
  glib_base = File.join(ruby_gnome2_base, "glib2")
23
+ cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
23
24
  gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
24
25
  clutter_base = File.join(ruby_gnome2_base, "clutter")
25
26
 
26
27
  modules = [
27
28
  [glib_base, "glib2"],
29
+ [cairo_gobject_base, "cairo-gobject"],
28
30
  [gobject_introspection_base, "gobject-introspection"],
29
31
  [clutter_base, "clutter"],
30
32
  ]
@@ -15,27 +15,35 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  class ClutterColorTest < Test::Unit::TestCase
18
+ include ClutterTestUtils
19
+
18
20
  def test_rgb
21
+ omit_if_clutter_color_hash_expect_arguments
19
22
  assert_equal("#ff0000ff", Clutter::Color.rgb(255, 0, 0).to_s)
20
23
  end
21
24
 
22
25
  def test_rgba
26
+ omit_if_clutter_color_hash_expect_arguments
23
27
  assert_equal("#ff00007f", Clutter::Color.rgb(255, 0, 0, 127).to_s)
24
28
  end
25
29
 
26
30
  def test_hls
31
+ omit_if_clutter_color_hash_expect_arguments
27
32
  assert_equal("#20dfdfff", Clutter::Color.hls(180, 0.5, 0.75).to_s)
28
33
  end
29
34
 
30
35
  def test_hlsa
36
+ omit_if_clutter_color_hash_expect_arguments
31
37
  assert_equal("#20dfdf7f", Clutter::Color.hls(180, 0.5, 0.75, 127).to_s)
32
38
  end
33
39
 
34
40
  def test_pixel
41
+ omit_if_clutter_color_hash_expect_arguments
35
42
  assert_equal("#20dfdf7f", Clutter::Color.pixel(0x20dfdf7f).to_s)
36
43
  end
37
44
 
38
45
  def test_parse
46
+ omit_if_clutter_color_hash_expect_arguments
39
47
  assert_equal("#20dfdf7f",
40
48
  Clutter::Color.parse("rgba(32, 223, 223, 0.5)").to_s)
41
49
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
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-05-26 00:00:00.000000000 Z
11
+ date: 2013-12-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: cairo-gobject
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.2
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.2
26
+ version: 2.0.3
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: gobject-introspection
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.2
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.2
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/Clutter is a Ruby binding of Clutter.
@@ -96,26 +89,25 @@ files:
96
89
  - test/test-clutter-color.rb
97
90
  homepage: http://ruby-gnome2.sourceforge.jp/
98
91
  licenses: []
92
+ metadata: {}
99
93
  post_install_message:
100
94
  rdoc_options: []
101
95
  require_paths:
102
96
  - lib
103
97
  required_ruby_version: !ruby/object:Gem::Requirement
104
- none: false
105
98
  requirements:
106
- - - ! '>='
99
+ - - '>='
107
100
  - !ruby/object:Gem::Version
108
- version: 1.8.5
101
+ version: 1.9.3
109
102
  required_rubygems_version: !ruby/object:Gem::Requirement
110
- none: false
111
103
  requirements:
112
- - - ! '>='
104
+ - - '>='
113
105
  - !ruby/object:Gem::Version
114
106
  version: '0'
115
107
  requirements: []
116
108
  rubyforge_project:
117
- rubygems_version: 1.8.23
109
+ rubygems_version: 2.0.14
118
110
  signing_key:
119
- specification_version: 3
111
+ specification_version: 4
120
112
  summary: Ruby/Clutter is a Ruby binding of Clutter.
121
113
  test_files: []