clutter 2.2.5 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea4bee67052ac394ce8b3bcd9a6a97720013886c
4
- data.tar.gz: 558aea70b4fadacf848ae839abd5d58c3c63dc0a
3
+ metadata.gz: 810fa9198d0fd0502517658b504ae6315752dfdb
4
+ data.tar.gz: 02e08e97a0a7e1c0d2bd8714ce914cf9054cd03d
5
5
  SHA512:
6
- metadata.gz: 8074b5587f0ae0a8b09643e0ad6b5c0f3dfd86e1d90fd53ff54681297f25a62a4c085a18aab0962bdd0805020c3c22047ff15d16f8b6c2b32a05083695cd2efe
7
- data.tar.gz: 30513df305f8d552e2bdd2020794cb4c1bdfd01861e0b9c92fcaba176a20a3a0aaaf0afd03f789f1fef13a814b6150d257a665dc01d658af66358051102d21bb
6
+ metadata.gz: 3a9d1e3c2f1e922855e46dbe4b575b140db21ea9562bf7a8c193df96be696b9815cb67a7801b0552f75640ba381d4430cf781b2adb25c79969d93a61830874ca
7
+ data.tar.gz: 3db592918a7d22cfeb3561dab7ef657310d44be27507a75c5a929404a973a52f9c60e89b20a3921dacf02db575ad2013f9f6fa1d83bbdffb8f08ba80e07d7b9c
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2012-2014 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2012-2015 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
@@ -82,7 +82,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
82
82
  :name => "cogl",
83
83
  :download_site => :gnome,
84
84
  :label => "Cogl",
85
- :version => "1.18.2",
85
+ :version => "1.20.0",
86
86
  :compression_method => "xz",
87
87
  :windows => {
88
88
  :configure_args => [
@@ -96,14 +96,14 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
96
96
  :name => "json-glib",
97
97
  :download_site => :gnome,
98
98
  :label => "JSON-GLib",
99
- :version => "1.0.2",
99
+ :version => "1.0.4",
100
100
  :compression_method => "xz",
101
101
  :windows => {
102
102
  :configure_args => [
103
103
  "--enable-introspection",
104
104
  ],
105
105
  :patches => [
106
- "json-glib-1.0.2-add-missing-config-h.diff",
106
+ # "json-glib-1.0.2-add-missing-config-h.diff",
107
107
  ],
108
108
  :need_autoreconf => true,
109
109
  :built_file => "bin/libjson-glib-1.0-0.dll",
@@ -113,7 +113,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
113
113
  :name => "clutter",
114
114
  :download_site => :gnome,
115
115
  :label => "Clutter",
116
- :version => "1.20.0",
116
+ :version => "1.22.4",
117
117
  :compression_method => "xz",
118
118
  :windows => {
119
119
  :configure_args => [
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2014 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2012-2015 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
@@ -50,7 +50,7 @@ module Clutter
50
50
  remove_method(:const_missing)
51
51
  end
52
52
  loader = Loader.new(self, argv)
53
- loader.load("Clutter")
53
+ loader.load
54
54
  require "clutter/actor"
55
55
  require "clutter/actor-iter"
56
56
  require "clutter/animatable"
@@ -63,6 +63,7 @@ module Clutter
63
63
  require "clutter/text"
64
64
  require "clutter/text-buffer"
65
65
  require "clutter/threads"
66
+ require "clutter/version"
66
67
  end
67
68
  end
68
69
 
@@ -70,6 +71,8 @@ module Clutter
70
71
  class InitError < StandardError
71
72
  end
72
73
 
74
+ NAMESPACE = "Clutter"
75
+
73
76
  def initialize(base_module, init_arguments)
74
77
  super(base_module)
75
78
  @init_arguments = init_arguments
@@ -78,6 +81,10 @@ module Clutter
78
81
  @event_infos = []
79
82
  end
80
83
 
84
+ def load
85
+ super(NAMESPACE)
86
+ end
87
+
81
88
  private
82
89
  def pre_load(repository, namespace)
83
90
  init = repository.find(namespace, "init")
@@ -95,6 +102,8 @@ module Clutter
95
102
  @base_module.const_set("Threads", @threads_module)
96
103
  @feature_module = Module.new
97
104
  @base_module.const_set("Feature", @feature_module)
105
+ @version_module = Module.new
106
+ @base_module.const_set("Version", @version_module)
98
107
  end
99
108
 
100
109
  def post_load(repository, namespace)
@@ -106,6 +115,12 @@ module Clutter
106
115
  load_events
107
116
  end
108
117
 
118
+ def initialize_post(object)
119
+ super
120
+ return unless object.is_a?(GLib::Object)
121
+ self.class.reference_gobject(object, :sink => true)
122
+ end
123
+
109
124
  def load_events
110
125
  @event_infos.each do |event_info|
111
126
  define_struct(event_info, :parent => Event)
@@ -161,6 +176,8 @@ module Clutter
161
176
  when /\AKEY_/
162
177
  @key_constants[info.name] = true
163
178
  @keys_module.const_set(info.name, info.value)
179
+ when /_VERSION\z/
180
+ @version_module.const_set($PREMATCH, info.value)
164
181
  else
165
182
  @other_constant_infos << info
166
183
  end
@@ -0,0 +1,28 @@
1
+ # Copyright (C) 2015 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
+ module Clutter
18
+ module Version
19
+ STRING = [MAJOR, MINOR, MICRO].join(".")
20
+
21
+ class << self
22
+ def or_later?(major, minor, micro=nil)
23
+ micro ||= 0
24
+ Clutter.check_version?(major, minor, micro)
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2012-2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2012-2015 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
@@ -44,8 +44,6 @@ end
44
44
  $LOAD_PATH.unshift(File.join(glib_base, "test"))
45
45
  require "glib-test-init"
46
46
 
47
- $VERBOSE = false # TODO: remove me
48
-
49
47
  $LOAD_PATH.unshift(File.join(gobject_introspection_base, "test"))
50
48
  require "gobject-introspection-test-utils"
51
49
 
@@ -54,6 +52,14 @@ require "clutter-test-utils"
54
52
 
55
53
  require "clutter"
56
54
 
57
- Clutter.init([])
55
+ repository = GObjectIntrospection::Repository.default
56
+ begin
57
+ repository.require(Clutter::Loader::NAMESPACE)
58
+ rescue GLib::Error
59
+ puts("Omit because typelib file doesn't exist: #{$!.message}")
60
+ exit(true)
61
+ end
62
+
63
+ Clutter.init
58
64
 
59
65
  exit Test::Unit::AutoRunner.run(true, clutter_base)
@@ -0,0 +1,47 @@
1
+ # Copyright (C) 2015 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 TestClutterVersion < Test::Unit::TestCase
18
+ include ClutterTestUtils
19
+
20
+ test "STRING" do
21
+ major = Clutter::Version::MAJOR
22
+ minor = Clutter::Version::MINOR
23
+ micro = Clutter::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ Clutter::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(Clutter::Version.or_later?(Clutter::Version::MAJOR,
31
+ Clutter::Version::MINOR,
32
+ Clutter::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(Clutter::Version.or_later?(Clutter::Version::MAJOR,
37
+ Clutter::Version::MINOR - 1,
38
+ Clutter::Version::MICRO))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(Clutter::Version.or_later?(Clutter::Version::MAJOR,
43
+ Clutter::Version::MINOR + 1,
44
+ Clutter::Version::MICRO))
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo-gobject
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.5
19
+ version: 3.0.1
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: 2.2.5
26
+ version: 3.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gobject-introspection
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.5
33
+ version: 3.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.5
40
+ version: 3.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pango
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.5
47
+ version: 3.0.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.5
54
+ version: 3.0.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: test-unit-notify
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,6 +86,7 @@ files:
86
86
  - lib/clutter/text-buffer.rb
87
87
  - lib/clutter/text.rb
88
88
  - lib/clutter/threads.rb
89
+ - lib/clutter/version.rb
89
90
  - sample/basic-actor.rb
90
91
  - sample/bin-layout.rb
91
92
  - sample/box-layout.rb
@@ -117,6 +118,7 @@ files:
117
118
  - test/test-clutter-shader-effect.rb
118
119
  - test/test-clutter-text-buffer.rb
119
120
  - test/test-clutter-timeline.rb
121
+ - test/test-clutter-version.rb
120
122
  homepage: http://ruby-gnome2.sourceforge.jp/
121
123
  licenses:
122
124
  - LGPLv2.1 or later