mediainfo 1.2.1 → 1.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f010ee33c89c683b3d413280d599017d3974e9cffc256fdec2a521b0b34a3ee
4
- data.tar.gz: e601d403a247ecd73f09b4236b4f949532d7d4de0f7322bfc2015f4903611065
3
+ metadata.gz: f9a2a120f86327b4a88642ff37e80810eb03c4ce4322875344e19149a14658cc
4
+ data.tar.gz: 50b75301c095921c24d41930781d8580884fefaf534fc1b5252dc1920096775a
5
5
  SHA512:
6
- metadata.gz: 69550b2d504d19ad7350ef8b35bed031302c15bec267b74bc057b4e253cd44f4bcb04d8884066abdebce9f86b5732c567ad3c747b4c75738ca871c74157be928
7
- data.tar.gz: 44a6f8f273e29fc6f6e068b13ea8ed05cb6d89c39c7367bdabc31ae7e2a4e3b058508c1ecbf5d065df6fbc0b875640e81eed778c62fb6844b2af71ca847ad02e
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
 
@@ -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
- + "A video or xml file location."
14
- + "Example: '~/videos/test_video.mov' or '~/videos/test_video.xml' \n"
15
- + "A valid URL. Example: 'http://www.site.com/videofile.mov' \n"
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
@@ -1,3 +1,3 @@
1
1
  module MediaInfo
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2019-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler