mvlc 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,51 @@
1
+ require "helper"
2
+
3
+ class MVLC::Player::WrapperTest < Minitest::Test
4
+
5
+ context "Wrapper" do
6
+
7
+ setup do
8
+ @player = Object.new
9
+ @player.stubs(:quit)
10
+ VLC::System.stubs(:new).returns(@player)
11
+ @player = MVLC::Player::Wrapper.new
12
+ end
13
+
14
+ context "#quit" do
15
+
16
+ setup do
17
+ #@vlc.expects(:quit).once
18
+ #@player.instance_variable_get("@threads").first.expects(:kill).once
19
+ end
20
+
21
+ teardown do
22
+ #@vlc.unstub(:quit)
23
+ # @player.instance_variable_get("@threads").first.unstub(:kill)
24
+ end
25
+
26
+ should "exit MPlayer and kill the player thread" do
27
+ assert @player.quit
28
+ end
29
+
30
+ end
31
+
32
+ context "#play" do
33
+
34
+ setup do
35
+ @player.expects(:play).once.returns(true)
36
+ end
37
+
38
+ teardown do
39
+ @player.unstub(:play)
40
+ end
41
+
42
+ should "lazily invoke mplayer and play" do
43
+ assert @player.play("file.mov")
44
+ #refute_nil @player.instance_variable_get("@player")
45
+ end
46
+
47
+ end
48
+
49
+ end
50
+
51
+ end
metadata ADDED
@@ -0,0 +1,250 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mvlc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ari Russo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.5'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.5.0
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '5.5'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.5.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: mocha
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.1'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.1.0
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.1'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.1.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: rake
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '10.4'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 10.4.2
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '10.4'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 10.4.2
73
+ - !ruby/object:Gem::Dependency
74
+ name: shoulda-context
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '1.2'
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.1
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.2'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 1.2.1
93
+ - !ruby/object:Gem::Dependency
94
+ name: analog
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0.3'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0.3'
113
+ - !ruby/object:Gem::Dependency
114
+ name: midi-eye
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '0.3'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 0.3.9
123
+ type: :runtime
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '0.3'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 0.3.9
133
+ - !ruby/object:Gem::Dependency
134
+ name: midi-message
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '0.4'
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: 0.4.1
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '0.4'
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 0.4.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: unimidi
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.4'
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 0.4.3
163
+ type: :runtime
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - "~>"
168
+ - !ruby/object:Gem::Version
169
+ version: '0.4'
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 0.4.3
173
+ - !ruby/object:Gem::Dependency
174
+ name: vlc-client
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '0.0'
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: 0.0.7
183
+ type: :runtime
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: '0.0'
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: 0.0.7
193
+ description: Control VLC Media Player with MIDI
194
+ email:
195
+ - ari.russo@gmail.com
196
+ executables: []
197
+ extensions: []
198
+ extra_rdoc_files: []
199
+ files:
200
+ - LICENSE
201
+ - README.md
202
+ - lib/mvlc.rb
203
+ - lib/mvlc/context.rb
204
+ - lib/mvlc/helper/numbers.rb
205
+ - lib/mvlc/instructions.rb
206
+ - lib/mvlc/instructions/midi.rb
207
+ - lib/mvlc/instructions/player.rb
208
+ - lib/mvlc/midi.rb
209
+ - lib/mvlc/midi/message_handler.rb
210
+ - lib/mvlc/midi/wrapper.rb
211
+ - lib/mvlc/player.rb
212
+ - lib/mvlc/player/state.rb
213
+ - lib/mvlc/player/wrapper.rb
214
+ - lib/mvlc/thread.rb
215
+ - test/context_test.rb
216
+ - test/helper.rb
217
+ - test/helper/numbers_test.rb
218
+ - test/instructions/midi_test.rb
219
+ - test/instructions/player_test.rb
220
+ - test/media/1.mov
221
+ - test/media/2.mov
222
+ - test/media/3.mov
223
+ - test/midi/message_handler_test.rb
224
+ - test/midi/wrapper_test.rb
225
+ - test/player/wrapper_test.rb
226
+ homepage: http://github.com/arirusso/mvlc
227
+ licenses:
228
+ - Apache-2.0
229
+ metadata: {}
230
+ post_install_message:
231
+ rdoc_options: []
232
+ require_paths:
233
+ - lib
234
+ required_ruby_version: !ruby/object:Gem::Requirement
235
+ requirements:
236
+ - - ">="
237
+ - !ruby/object:Gem::Version
238
+ version: '0'
239
+ required_rubygems_version: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: 1.3.6
244
+ requirements: []
245
+ rubyforge_project: mvlc
246
+ rubygems_version: 2.6.8
247
+ signing_key:
248
+ specification_version: 4
249
+ summary: Control VLC Media Player with MIDI
250
+ test_files: []