gir_ffi-gst 0.0.8 → 0.0.9

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
  SHA256:
3
- metadata.gz: 2644a7c21b93306c56815c39032f043dd26dd85a9caec85704de17efefa71fed
4
- data.tar.gz: ffcff02f00f5ff4bb027a3e40e1a9a31eae5061ac991b70d585f25d88f9921e6
3
+ metadata.gz: d18e1edde412637ae53f4e80f96ee37fafc57ef0b055f7a2d0e76b558ccf599b
4
+ data.tar.gz: 8d971b25d50825ae7572b087d302af188a8acc3ba6d042f6af2e56ae6507405f
5
5
  SHA512:
6
- metadata.gz: d822b76cb0e309e096da279766ecb5081f21db6409cf976c01cfbfba8860808b5dc72b5bad3b124b1faa39f7ac88a2e70538df76cd98381418d349582f2d8565
7
- data.tar.gz: cbed1c4ab894489490f4221023d11c8d268f09ba143e411678d43adce9c2759846b2805ead86d17986cf39ba7d3ca29bc9849e0bf5b0cd103c5a2401656f9805
6
+ metadata.gz: d1f74887f7959b0aafdd4f5116bc0af866425a7738bad248f56c78ccef1aa994278b64a67d20fff090801d554faaa14e36642bf3e0946861f314c98e0c05db11
7
+ data.tar.gz: c45e384561088ec171e1d6472b6a2ac55e6788b875aed6ef18275f064a3220eaf60562f29a20f2ec9a8dd9120b42e11d551f6142fe4d4b0755b96b3762aabf2b
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Bundler::GemHelper.install_tasks
8
8
  namespace :test do
9
9
  Rake::TestTask.new(:unit) do |t|
10
10
  t.libs = ['lib']
11
- t.test_files = FileList['test/unit/*_test.rb']
11
+ t.test_files = FileList['test/gir_ffi-gst/*_test.rb']
12
12
  t.warning = true
13
13
  end
14
14
 
@@ -9,7 +9,13 @@ module Gst
9
9
 
10
10
  def each
11
11
  resync
12
- foreach { |item, _ud| yield item.get_value }
12
+ continue = true
13
+ foreach do |item, _ud|
14
+ break unless continue
15
+ continue = false
16
+ yield item.get_value
17
+ continue = true
18
+ end
13
19
  end
14
20
  end
15
21
  end
File without changes
File without changes
@@ -31,4 +31,17 @@ describe Gst::Iterator do
31
31
  end
32
32
  result.name.must_equal 'othername'
33
33
  end
34
+
35
+ it 'allows redoing an iteration' do
36
+ bin.add Gst::ElementFactory.make 'fakesink', 'othername'
37
+ iterator.map(&:name).must_equal %w(othername testname)
38
+ count = 0
39
+ result = []
40
+ iterator.each do |it|
41
+ count += 1
42
+ result << it.name
43
+ redo if count == 1
44
+ end
45
+ result.must_equal %w(othername othername testname)
46
+ end
34
47
  end
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.8
4
+ version: 0.0.9
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: 2018-03-25 00:00:00.000000000 Z
11
+ date: 2018-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gir_ffi
@@ -69,12 +69,12 @@ files:
69
69
  - lib/gir_ffi-gst/element.rb
70
70
  - lib/gir_ffi-gst/iterator.rb
71
71
  - test/end_to_end/bin_test.rb
72
+ - test/gir_ffi-gst/base_test.rb
73
+ - test/gir_ffi-gst/bin_test.rb
74
+ - test/gir_ffi-gst/child_proxy_test.rb
75
+ - test/gir_ffi-gst/element_test.rb
76
+ - test/gir_ffi-gst/iterator_test.rb
72
77
  - test/test_helper.rb
73
- - test/unit/base_test.rb
74
- - test/unit/bin_test.rb
75
- - test/unit/child_proxy_test.rb
76
- - test/unit/element_test.rb
77
- - test/unit/iterator_test.rb
78
78
  homepage: http://www.github.com/mvz/gir_ffi-gst
79
79
  licenses:
80
80
  - LGPL-2.1+
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: 2.3.0
90
+ version: 2.1.0
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
@@ -100,10 +100,10 @@ signing_key:
100
100
  specification_version: 4
101
101
  summary: GirFFI-based bindings for GStreamer
102
102
  test_files:
103
- - test/unit/bin_test.rb
104
- - test/unit/iterator_test.rb
105
- - test/unit/child_proxy_test.rb
106
- - test/unit/base_test.rb
107
- - test/unit/element_test.rb
108
103
  - test/test_helper.rb
104
+ - test/gir_ffi-gst/bin_test.rb
105
+ - test/gir_ffi-gst/iterator_test.rb
106
+ - test/gir_ffi-gst/child_proxy_test.rb
107
+ - test/gir_ffi-gst/base_test.rb
108
+ - test/gir_ffi-gst/element_test.rb
109
109
  - test/end_to_end/bin_test.rb