clutter-gstreamer 3.0.3-x86-mingw32 → 3.0.4-x86-mingw32

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: 0423f3f509c8e449fface271c4394aefb484e9c5
4
- data.tar.gz: 12707354aadf3b49b97b0b9065e712c29f1b3569
3
+ metadata.gz: ef9bb0fd56133410619adc8b5fcb1247a871636f
4
+ data.tar.gz: 7b508a8e9a21872ff0ec6c1980a61e39964eee8d
5
5
  SHA512:
6
- metadata.gz: 48cebabfd201f30192b387b1b08d748338016d0442fd9c86c009c95c321f847bbdde0d78b16516d382bb7b6283f65690f6b33aa699674b2bf8140741c4d64aff
7
- data.tar.gz: 608f6f7ff0934ad00a92edf22aa7ccdac109c618b2a3d4e79e04c4793c31e70b1837d6977d93739541d19709eb5797ae330097221aea073b50876ca27e04f177
6
+ metadata.gz: dc1484d0abe86aeb0049513d6bdcb1a03ce154a83e77dcd12508fdd74b1570d419ce4549037d0aefde7c4dc46f07842d0a06228e82617f5fbd329b663b7a667a
7
+ data.tar.gz: 6c9f6b0af08aab9b21735896ad8d11c479de78e7dc56965c887a44c75b6e04d3731dc6f8d4f03516d84a10c4464612aa847c99ac234c6633879919d1cda8fde3
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: x86-mingw32
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
  - vendor/local/bin/libclutter-gst-3.0-0.dll
88
76
  - vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-aspectratio.h