gstreamer 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gst/version.rb +36 -0
- data/lib/gst.rb +1 -0
- data/test/run-test.rb +2 -2
- data/test/test-version.rb +50 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2be6cb156e14727502f0b64b888b685cef338f3
|
4
|
+
data.tar.gz: 48123a4d3382973f6efa571eaf3b596b72368caa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f27bd4936d8c3d738a6ea2be4e712a54469329f278bc58cbcda6deda968d95522bf8fa7fe369be5f68e71f40881d7e3664eaa31c22334259638a70b5ff98a0f
|
7
|
+
data.tar.gz: ce26ce0e9176e44638972a67378f90160a57ca4bcec16bd53fa86a61ee23bdfc2d6e62c9e17de401f9a15e133bd32ff1444323228e404ede9e378c079bc86f16
|
data/lib/gst/version.rb
ADDED
@@ -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
|
+
|
18
|
+
module Gst
|
19
|
+
module Version
|
20
|
+
MAJOR, MINOR, MICRO, NANO = Gst.version
|
21
|
+
STRING = "#{MAJOR}.#{MINOR}.#{MICRO}.#{NANO}"
|
22
|
+
class << self
|
23
|
+
def or_later?(major, minor, micro=nil, nano=nil)
|
24
|
+
micro ||= 0
|
25
|
+
nano ||= 0
|
26
|
+
version = [
|
27
|
+
MAJOR,
|
28
|
+
MINOR,
|
29
|
+
MICRO,
|
30
|
+
NANO,
|
31
|
+
]
|
32
|
+
(version <=> [major, minor, micro, nano]) >= 0
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/lib/gst.rb
CHANGED
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014 Ruby-GNOME2 Project Team
|
3
|
+
# Copyright (C) 2014-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
|
@@ -56,4 +56,4 @@ end
|
|
56
56
|
|
57
57
|
Gst.init
|
58
58
|
|
59
|
-
exit Test::Unit::AutoRunner.run(true)
|
59
|
+
exit Test::Unit::AutoRunner.run(true, File.join(gstreamer_base, "test"))
|
@@ -0,0 +1,50 @@
|
|
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 TestGstVersion < Test::Unit::TestCase
|
18
|
+
|
19
|
+
test "STRING" do
|
20
|
+
major = Gst::Version::MAJOR
|
21
|
+
minor = Gst::Version::MINOR
|
22
|
+
micro = Gst::Version::MICRO
|
23
|
+
nano = Gst::Version::NANO
|
24
|
+
assert_equal([major, minor, micro, nano].join("."),
|
25
|
+
Gst::Version::STRING)
|
26
|
+
end
|
27
|
+
|
28
|
+
sub_test_case("#or_later?") do
|
29
|
+
test "same" do
|
30
|
+
assert_true(Gst::Version.or_later?(Gst::Version::MAJOR,
|
31
|
+
Gst::Version::MINOR,
|
32
|
+
Gst::Version::MICRO,
|
33
|
+
Gst::Version::NANO))
|
34
|
+
end
|
35
|
+
|
36
|
+
test "later" do
|
37
|
+
assert_true(Gst::Version.or_later?(Gst::Version::MAJOR,
|
38
|
+
Gst::Version::MINOR - 1,
|
39
|
+
Gst::Version::MICRO,
|
40
|
+
Gst::Version::NANO))
|
41
|
+
end
|
42
|
+
|
43
|
+
test "earlier" do
|
44
|
+
assert_false(Gst::Version.or_later?(Gst::Version::MAJOR,
|
45
|
+
Gst::Version::MINOR + 1,
|
46
|
+
Gst::Version::MICRO,
|
47
|
+
Gst::Version::NANO))
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gstreamer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.6
|
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-
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glib2
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.
|
19
|
+
version: 3.0.6
|
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.
|
26
|
+
version: 3.0.6
|
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: 3.0.
|
33
|
+
version: 3.0.6
|
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.
|
40
|
+
version: 3.0.6
|
41
41
|
description: Ruby/GStreamer is a Ruby binding for GStreamer.
|
42
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
43
43
|
executables: []
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/gst/registry.rb
|
66
66
|
- lib/gst/structure.rb
|
67
67
|
- lib/gst/type-find-factory.rb
|
68
|
+
- lib/gst/version.rb
|
68
69
|
- lib/gstreamer.rb
|
69
70
|
- sample/audio-example.rb
|
70
71
|
- sample/framestep1.rb
|
@@ -80,6 +81,7 @@ files:
|
|
80
81
|
- test/test-caps.rb
|
81
82
|
- test/test-child-proxy.rb
|
82
83
|
- test/test-element-factory.rb
|
84
|
+
- test/test-version.rb
|
83
85
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
84
86
|
licenses:
|
85
87
|
- LGPLv2.1 or later
|