mpv 1.2.0 → 1.2.1
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/mpv.rb +1 -1
- data/lib/mpv/exceptions.rb +3 -0
- data/lib/mpv/utils.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5f7875932a25a59627917afb95371783162e45c
|
4
|
+
data.tar.gz: 621441b57e73a1e599616e4ef7f3fbd980eb0a3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bea68288b46ccf3802c3fc59e0e5c99a297475d5f18ebf8d8a71825b0be9a5574c2281b8732fc62095333a24a94f8c7806a4c2ad2abc4b8fa1914b32e19e71dc
|
7
|
+
data.tar.gz: 54c7eee347775ddb511177fb02559182a986e633e3f20a7d44d93f276fbd6524cbe9a4894c35f4a802f35e479b2a8fafcfe6520e07004d10577893a7d53ef64c
|
data/lib/mpv.rb
CHANGED
data/lib/mpv/exceptions.rb
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
module MPV
|
2
|
+
# A generic error class for ruby-mpv.
|
2
3
|
class MPVError < RuntimeError
|
3
4
|
end
|
4
5
|
|
6
|
+
# Raised when `mpv` cannot be executed.
|
5
7
|
class MPVNotAvailableError < MPVError
|
6
8
|
def initialize
|
7
9
|
super "Could not find an mpv binary to execute in the system path"
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
13
|
+
# Raised when `mpv` doesn't support a requested flag.
|
11
14
|
class MPVUnsupportedFlagError < MPVError
|
12
15
|
def initialize(flag)
|
13
16
|
super "Installed mpv doesn't support the #{flag} flag"
|
data/lib/mpv/utils.rb
CHANGED