mpvlib 0.3 → 0.4

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: f4d587cadccb6c0472282510234625104957046fc1187dffb1ff04b8d3a5303c
4
- data.tar.gz: b1778033b5a1bf563a20fd40178fb941d919d338d3e15fab1f18c363422c4f61
3
+ metadata.gz: aafe579a0cc4807c44cf4aa0b6cab484fe972dd2f67df0600a140f9ca3b7ba30
4
+ data.tar.gz: d951cb58da7bc4c7dc8a3c1829163fc3b319b06e5f0633b9332c8dd950c0339c
5
5
  SHA512:
6
- metadata.gz: e65d4b4eaaf0c2590a593cc36ae5ac5b6a5af7deba996e0db3970d112337e03701389f07cabe2acaa4049631f9db77520bd552696ef2db9410ef214c7c5c12a2
7
- data.tar.gz: ec2292bdd3da716092cb8fa1d700696603f95e1e08e34256c060192d3b56b67ca5ad7430fb567ce64c9de1ec3df99a665fa5f5201aa410d87cff4697abba7c57
6
+ metadata.gz: be6081898350a4f9c97563029a2e608feb29b26f08ffc00990579a680801ab2f5c2d2073e8268b5357e13d3b6f48020cfdf8b8a2e81d48adbdf28a4c152db0cb
7
+ data.tar.gz: 203d3df2cdce9de2407238cdbe20437bbc4c2383d1781aaa928a00e0541d8819f1b886ed8cfcb8a670d8fda730feb90c48ff28d641f79057d26c490a36ce0442
data/Rakefile CHANGED
@@ -1,7 +1,8 @@
1
- require 'bundler'
2
- require 'bundler/gem_tasks'
1
+ require 'rubygems/tasks'
3
2
  require 'rake/testtask'
4
3
 
4
+ Gem::Tasks.new
5
+
5
6
  Rake::TestTask.new do |t|
6
7
  t.libs << 'test'
7
8
  # t.libs << "lib"
@@ -257,7 +257,10 @@ module MPV
257
257
  if playlist
258
258
  @playlist_file.dirname.mkpath
259
259
  @playlist_file.open('w') do |io|
260
- playlist.each { |p| io.puts(p) }
260
+ playlist.each { |p|
261
+ raise "Track in playlist not defined or nonexistant: #{p.inspect}" unless p && p.exist?
262
+ io.puts(p)
263
+ }
261
264
  end
262
265
  end
263
266
  loadlist(@playlist_file)
@@ -1,5 +1,5 @@
1
1
  module MPV
2
2
 
3
- VERSION = '0.3'
3
+ VERSION = '0.4'
4
4
 
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
20
20
  s.require_path = 'lib'
21
21
 
22
- s.add_dependency 'ffi'
22
+ s.add_dependency 'ffi', '~> 1.9'
23
23
  s.add_dependency 'json', '~> 2.1'
24
24
  s.add_dependency 'hashstruct', '~> 1.3'
25
25
  s.add_dependency 'path', '~> 2.0'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpvlib
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Labovitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.9'
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: '0'
26
+ version: '1.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement