mediainfo 1.3.0 → 1.3.1

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: 4008669b840fdfc16238d0e8650a6960437d77a65daa2b69ebaf74007e849a70
4
- data.tar.gz: f1c8031c41b8466b7e0c916f361316a294629e60565e12cc160e452b38e219d6
3
+ metadata.gz: 0a3ae33b18ff439ef940ab3f57e8c63854b464a788d14e4d24afe91ddb551006
4
+ data.tar.gz: 3f9d648d24e338aea42ecd858109268239ef65bb4ad68b698d1146414dd0e7de
5
5
  SHA512:
6
- metadata.gz: 6c12fa15b217f661a9d242fb2f54a7dbc52eeac835e41cc3ecb5cd6905b5b9b35c09097f9b8b2b0aab5652cc1a8f59768ebab3dbbac185f13c3f6fafc6d5091a
7
- data.tar.gz: 5e75f9f1da3a1d807421cd201615497d577706dc337c59dd6f95eb814b46bd886eb5553f09d6c805727d9a60caedda46415aece461676969b3d18db5b48c7edb
6
+ metadata.gz: 49cf2dec2e78b1b8fdbafc9595138904fd4da32290b5e5e3d85489c4e47576e6fdaaed10dd91fe73315107d62e72a2c1f9bc13603cf600d240693023a2f38221
7
+ data.tar.gz: c8f9f859497b0167db0b30d7d2857b15f7f81c53d3a293a17a4e0d51207a5eb39c1411690c372ffb805fa29429f2c73bc8c57d3b6e8b34938f02191e1e07e5a0
data/.gitignore CHANGED
@@ -16,5 +16,6 @@ pkg
16
16
  .vscode
17
17
  # rspec failure tracking
18
18
  .rspec_status
19
+ *.gem
19
20
 
20
21
  Gemfile.lock
data/README.md CHANGED
@@ -8,7 +8,7 @@ MediaInfo is a class wrapping [the mediainfo CLI](http://mediainfo.sourceforge.n
8
8
 
9
9
  ## Usage
10
10
 
11
- - Versions > 1.3.0 support S3 URLs. See rspec test for example of how to obtain the supported URL.
11
+ - Versions > 1.3.0 support S3 URLs. See rspec test for example of how to obtain the supported URL (it requires access keys are set as ENV variables).
12
12
 
13
13
  #### Parsing raw XML
14
14
  media_info = MediaInfo.from(File.open('iphone6+_video.mov.xml').read)
@@ -1,3 +1,3 @@
1
1
  module MediaInfo
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
data/lib/mediainfo.rb CHANGED
@@ -3,6 +3,7 @@ require 'net/http'
3
3
  require 'mediainfo/errors'
4
4
  require 'mediainfo/tracks'
5
5
  require 'mediainfo/string'
6
+ require 'open3'
6
7
 
7
8
  module MediaInfo
8
9
 
@@ -89,7 +90,7 @@ module MediaInfo
89
90
  def self.run(input = nil)
90
91
  raise ArgumentError, 'Your input cannot be blank.' if input.nil?
91
92
  command = "#{location} '#{input}' --Output=XML"
92
- raw_response, errors, status = Open3.capture3(command)
93
+ raw_response, errors, status = ::Open3.capture3(command)
93
94
  unless errors.empty? && status.exitstatus == 0
94
95
  raise ExecutionError, "Execution of '#{command}' failed: \n #{errors.red}"
95
96
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediainfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Thomas Rasmussen