mediainfo 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mediainfo.rb +1 -1
- data/lib/mediainfo/errors.rb +4 -5
- data/lib/mediainfo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9a2a120f86327b4a88642ff37e80810eb03c4ce4322875344e19149a14658cc
|
4
|
+
data.tar.gz: 50b75301c095921c24d41930781d8580884fefaf534fc1b5252dc1920096775a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d86c27802289727bffe005dfede51c3b009f317f7275da592db1239434f1e72d7ea919ba2c654e63ebea0fcf40e67b8912157c304787a5c7c3357f73921a12ab
|
7
|
+
data.tar.gz: f55349f8f875e8535f6f935caa6f3dab5d10c9ddda74887b08305cbf7b6db8ba716c4c7c8c14fabd8588e85611661adbedbc5282f527167cd3c95e587a8532fe
|
data/lib/mediainfo.rb
CHANGED
@@ -23,9 +23,9 @@ module MediaInfo
|
|
23
23
|
mediainfo_location = which('mediainfo')
|
24
24
|
else
|
25
25
|
mediainfo_location = ENV['MEDIAINFO_PATH']
|
26
|
+
raise EnvironmentError, "MediaInfo path you provided cannot be found. Please check your mediainfo installation location..." unless ::File.exist? mediainfo_location
|
26
27
|
end
|
27
28
|
raise EnvironmentError, "MediaInfo binary cannot be found. Are you sure mediainfo is installed?" if which('mediainfo').nil?
|
28
|
-
raise EnvironmentError, "MediaInfo path you provided cannot be found. Please check your mediainfo installation location..." unless ::File.exist? mediainfo_location
|
29
29
|
return mediainfo_location
|
30
30
|
end
|
31
31
|
|
data/lib/mediainfo/errors.rb
CHANGED
@@ -9,11 +9,10 @@ module MediaInfo
|
|
9
9
|
|
10
10
|
class BadInputError < ArgumentError
|
11
11
|
def initialize(msg=nil)
|
12
|
-
msg ||= "Input must be: \n"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
+ "Or MediaInfo XML \n"
|
12
|
+
msg ||= "Input must be: \n" \
|
13
|
+
" - A video or xml file location: '~/videos/test_video.mov' or '~/videos/test_video.xml' \n" \
|
14
|
+
" - A valid URL: 'http://www.site.com/videofile.mov' \n" \
|
15
|
+
" - MediaInfo XML \n"
|
17
16
|
super(msg)
|
18
17
|
end
|
19
18
|
end
|
data/lib/mediainfo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediainfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Thomas Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|