clutter-gstreamer 3.0.3 → 3.0.4

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
  SHA1:
3
- metadata.gz: d819eb41592d3182e1df09cb6ef130917c56ee17
4
- data.tar.gz: 810160a280b0c94a1020177f277fb50ef172ae65
3
+ metadata.gz: 110dbbfe23f9b2b0f7e43ff8245dc511da13dfd7
4
+ data.tar.gz: 4778495cfc6ef850b325b18d44914b9e4b1e9462
5
5
  SHA512:
6
- metadata.gz: bb7854c3f6e1dce8a73cedb1c288aac5a1e033f06c81bf61afd9bb379bc510d42f005e67767e5e4897bacf0308290fe8a8b4a5eec08ae2e273f881e7b1e7f991
7
- data.tar.gz: abba5cc875cf36432a463ca8951972cd32bdf141cce09d35c76e86e630d4ded8ae44519abcf0e37adc57407ddd10b1c2bfd43b94fca359cb6cfbab393ef7fa11
6
+ metadata.gz: 4ede23b6a29773cfae8f727bc0d5802f1bc2d61be372e52422c09f3b0bf9a24cfaa442ac5debf63e727fe95df3600ae728faa5ee191ed6e449feb47012d722e2
7
+ data.tar.gz: 196bb47f851c3b3b0e965d35e6ac862e8bfbf59d99e32a5e2a95fa51fb5622200547969353e3eb6a4e7c8662d1777b7f1fb97dcdec182ee706c43745bd3258ea
data/Rakefile CHANGED
@@ -23,7 +23,6 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
23
23
  package.summary = "Ruby/ClutterGStreamer is a Ruby binding of Clutter-GStreamer."
24
24
  package.description = "Ruby/ClutterGStreamer is a Ruby binding of Clutter-GStreamer."
25
25
  package.dependency.gem.runtime = ["gdk_pixbuf2", "clutter", "gstreamer"]
26
- package.dependency.gem.development = ["test-unit-notify"]
27
26
  package.windows.packages = []
28
27
  package.windows.dependencies = []
29
28
  package.windows.build_dependencies = [
@@ -53,6 +52,10 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
53
52
  :configure_args => [
54
53
  "--enable-introspection",
55
54
  ],
55
+ :patches => [
56
+ "clutter-gst-3.0.10-remove-introspection-compiler-dependency.diff",
57
+ ],
58
+ :need_autoreconf => true,
56
59
  :built_file => "bin/libclutter-gst-3.0-0.dll",
57
60
  },
58
61
  }
@@ -0,0 +1,36 @@
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 ClutterGst
18
+ module Version
19
+ MAJOR = ClutterGst::MAJOR_VERSION
20
+ MINOR = ClutterGst::MINOR_VERSION
21
+ MICRO = ClutterGst::MICRO_VERSION
22
+ STRING = ClutterGst::VERSION_S
23
+
24
+ class << self
25
+ def or_later?(major, minor, micro=nil)
26
+ micro ||= 0
27
+ version = [
28
+ MAJOR,
29
+ MINOR,
30
+ MICRO,
31
+ ]
32
+ (version <=> [major, minor, micro]) >= 0
33
+ end
34
+ end
35
+ end
36
+ end
data/lib/clutter-gst.rb CHANGED
@@ -30,6 +30,8 @@ module ClutterGst
30
30
  GLib::Log.set_log_domain(LOG_DOMAIN)
31
31
 
32
32
  class << self
33
+ attr_accessor :load_version
34
+
33
35
  def const_missing(name)
34
36
  init
35
37
  if const_defined?(name)
@@ -46,11 +48,15 @@ module ClutterGst
46
48
  end
47
49
  Gst.init if Gst.respond_to?(:init)
48
50
  Clutter.init if Clutter.respond_to?(:init)
51
+
49
52
  loader = Loader.new(self, argv)
53
+ loader.version = load_version
50
54
  loader.load
51
55
  end
52
56
  end
53
57
 
58
+ self.load_version = nil
59
+
54
60
  class Loader < GObjectIntrospection::Loader
55
61
  NAMESPACE = "ClutterGst"
56
62
 
@@ -80,6 +86,7 @@ module ClutterGst
80
86
  end
81
87
 
82
88
  def post_load(repository, namespace)
89
+ require "clutter-gst/version"
83
90
  end
84
91
 
85
92
  def initialize_post(object)
File without changes
@@ -31,6 +31,8 @@ require "optparse"
31
31
 
32
32
  require "clutter-gst"
33
33
 
34
+ ClutterGst.load_version = "2.0"
35
+
34
36
  SEEK_H = 14
35
37
  SEEK_W = 440
36
38
 
@@ -28,6 +28,8 @@
28
28
 
29
29
  require "clutter-gst"
30
30
 
31
+ ClutterGst.load_version = "2.0"
32
+
31
33
  stage = Clutter::Stage.new
32
34
  stage.user_resizable = true
33
35
  stage.signal_connect("destroy") do
@@ -28,6 +28,8 @@
28
28
 
29
29
  require "clutter-gst"
30
30
 
31
+ ClutterGst.load_version = "2.0"
32
+
31
33
  stage = Clutter::Stage.new
32
34
  stage.signal_connect("destroy") do
33
35
  Clutter.main_quit
@@ -17,20 +17,17 @@
17
17
  require "test-unit"
18
18
 
19
19
  module ClutterGStreamerTestUtils
20
- def later_version?(major, minor, micro=nil)
20
+ def only_clutter_gstreamer_version(major, minor, micro=nil)
21
21
  micro ||= 0
22
- clutter_gstreamer_version = [
23
- ClutterGst::MAJOR_VERSION,
24
- ClutterGst::MINOR_VERSION,
25
- ClutterGst::MICRO_VERSION,
26
- ]
27
- (clutter_gstreamer_version <=> [major, minor, micro]) >= 0
22
+ unless ClutterGst::Version.or_later?(major, minor, micro)
23
+ omit("Require Clutter-GStreamer >= #{major}.#{minor}.#{micro}")
24
+ end
28
25
  end
29
26
 
30
- def only_clutter_gstreamer_version(major, minor, micro=nil)
27
+ def only_older_clutter_gstreamer_version(major, minor, micro=nil)
31
28
  micro ||= 0
32
- unless later_version?(major, minor, micro)
33
- omit("Require Clutter-GStreamer >= #{major}.#{minor}.#{micro}")
29
+ if ClutterGst::Version.or_later?(major, minor, micro)
30
+ omit("Require Clutter-GStreamer < #{major}.#{minor}.#{micro}")
34
31
  end
35
32
  end
36
33
 
@@ -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 TestClutterGstVersion < Test::Unit::TestCase
18
+ include ClutterGStreamerTestUtils
19
+
20
+ test "STRING" do
21
+ major = ClutterGst::Version::MAJOR
22
+ minor = ClutterGst::Version::MINOR
23
+ micro = ClutterGst::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ ClutterGst::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(ClutterGst::Version.or_later?(ClutterGst::Version::MAJOR,
31
+ ClutterGst::Version::MINOR,
32
+ ClutterGst::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(ClutterGst::Version.or_later?(ClutterGst::Version::MAJOR,
37
+ ClutterGst::Version::MINOR - 1,
38
+ ClutterGst::Version::MICRO))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(ClutterGst::Version.or_later?(ClutterGst::Version::MAJOR,
43
+ ClutterGst::Version::MINOR + 1,
44
+ ClutterGst::Version::MICRO))
45
+ end
46
+ end
47
+ end
@@ -18,8 +18,17 @@ class ClutterGstVideoSinkTest < Test::Unit::TestCase
18
18
  include ClutterGStreamerTestUtils
19
19
 
20
20
  def test_texture
21
+ only_older_clutter_gstreamer_version(3, 0)
21
22
  texture = Clutter::Texture.new
22
23
  sink = ClutterGst::VideoSink.new(texture)
23
24
  assert_equal(texture, sink.texture)
24
25
  end
26
+
27
+ test "#ready?" do
28
+ only_clutter_gstreamer_version(3, 0)
29
+ sink = ClutterGst::VideoSink.new
30
+ assert do
31
+ not sink.ready?
32
+ end
33
+ end
25
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter-gstreamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
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-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gdk_pixbuf2
@@ -16,56 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.3
19
+ version: 3.0.4
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.0.3
26
+ version: 3.0.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: clutter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.3
33
+ version: 3.0.4
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: 3.0.3
40
+ version: 3.0.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gstreamer
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.3
47
+ version: 3.0.4
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: 3.0.3
55
- - !ruby/object:Gem::Dependency
56
- name: test-unit-notify
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
54
+ version: 3.0.4
69
55
  description: Ruby/ClutterGStreamer is a Ruby binding of Clutter-GStreamer.
70
56
  email: ruby-gnome2-devel-en@lists.sourceforge.net
71
57
  executables: []
@@ -74,15 +60,17 @@ extra_rdoc_files: []
74
60
  files:
75
61
  - Rakefile
76
62
  - lib/clutter-gst.rb
63
+ - lib/clutter-gst/version.rb
77
64
  - lib/clutter-gstreamer.rb
78
- - sample/media-actions-pause.png
79
- - sample/media-actions-start.png
80
- - sample/vid-panel.png
81
- - sample/video-player.rb
82
- - sample/video-sink-navigation.rb
83
- - sample/video-sink.rb
65
+ - sample/2.0/media-actions-pause.png
66
+ - sample/2.0/media-actions-start.png
67
+ - sample/2.0/vid-panel.png
68
+ - sample/2.0/video-player.rb
69
+ - sample/2.0/video-sink-navigation.rb
70
+ - sample/2.0/video-sink.rb
84
71
  - test/clutter-gstreamer-test-utils.rb
85
72
  - test/run-test.rb
73
+ - test/test-clutter-gst-version.rb
86
74
  - test/test-clutter-gst-video-sink.rb
87
75
  homepage: http://ruby-gnome2.sourceforge.jp/
88
76
  licenses: