gir_ffi-gst 0.0.1 → 0.0.2
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 +4 -4
- data/lib/gir_ffi-gst/child_proxy.rb +17 -0
- data/lib/gir_ffi-gst.rb +1 -0
- data/test/unit/child_proxy_test.rb +18 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 640a31bae51c49d756b4fad2ef8fbeabde33cb83
|
4
|
+
data.tar.gz: cd54eddd6d321567a189568d9f758063713d0fa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54fed7afec844ac11abe339f96d2f86f770613dcfbbe71654f2f341c3ade4ffb04dce2327201014b7b816adf6eb624f35b9b5bbc048d96c8ef8755ebbd3db06f
|
7
|
+
data.tar.gz: 422c61bb4716e9b2dab8457c40ff9da56e263dc7cb03946d02030088989f7467294673bedbcab5414aca6b6e78e0a4af219ca37e5ce9e13a77136fe651ec81f4
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Gst
|
2
|
+
load_class :ChildProxy
|
3
|
+
|
4
|
+
module ChildProxy
|
5
|
+
setup_instance_method :get_property
|
6
|
+
|
7
|
+
remove_method :get_property
|
8
|
+
|
9
|
+
def get_property name
|
10
|
+
pspec = type_class.find_property name
|
11
|
+
gvalue = GObject::Value.for_gtype pspec.value_type
|
12
|
+
Gst::Lib.gst_child_proxy_get_property self, name, gvalue
|
13
|
+
gvalue
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
data/lib/gir_ffi-gst.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require_relative '../test_helper'
|
2
|
+
|
3
|
+
describe Gst::ChildProxy do
|
4
|
+
let(:child_proxy) { Gst::Bin.new 'bin' }
|
5
|
+
|
6
|
+
describe '#get_property' do
|
7
|
+
it 'returns a gvalue of the correct type' do
|
8
|
+
gvalue = child_proxy.get_property 'async-handling'
|
9
|
+
gvalue.current_gtype.must_equal GObject::TYPE_BOOLEAN
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'returns a gvalue with the correct value' do
|
13
|
+
gvalue = child_proxy.get_property 'async-handling'
|
14
|
+
gvalue.get_value.must_equal false
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gir_ffi-gst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gir_ffi
|
@@ -78,11 +78,13 @@ files:
|
|
78
78
|
- Rakefile
|
79
79
|
- lib/gir_ffi-gst.rb
|
80
80
|
- lib/gir_ffi-gst/bin.rb
|
81
|
+
- lib/gir_ffi-gst/child_proxy.rb
|
81
82
|
- lib/gir_ffi-gst/element.rb
|
82
83
|
- lib/gir_ffi-gst/iterator.rb
|
83
84
|
- test/end_to_end/bin_test.rb
|
84
85
|
- test/test_helper.rb
|
85
86
|
- test/unit/bin_test.rb
|
87
|
+
- test/unit/child_proxy_test.rb
|
86
88
|
- test/unit/element_test.rb
|
87
89
|
- test/unit/iterator_test.rb
|
88
90
|
homepage: http://www.github.com/mvz/gir_ffi-gst
|
@@ -112,6 +114,7 @@ summary: GirFFI-based bindings for GStreamer
|
|
112
114
|
test_files:
|
113
115
|
- test/test_helper.rb
|
114
116
|
- test/unit/element_test.rb
|
117
|
+
- test/unit/child_proxy_test.rb
|
115
118
|
- test/unit/bin_test.rb
|
116
119
|
- test/unit/iterator_test.rb
|
117
120
|
- test/end_to_end/bin_test.rb
|