mediainfo 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/GemFile +1 -1
- data/README.md +5 -6
- data/lib/mediainfo.rb +1 -1
- 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: a9732bb10c9b06fda82092cba25229e23fd1e4a5348fafa276b3bee1e11199b6
|
4
|
+
data.tar.gz: 148a60176b3b91f6d8dd66dfeb8e18c396f44f60c251bd275694e86b62b139e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25a04470707f1ab737bacc7a6b4868cfff0b47b409865abc9cf323df6d3fe429c396525b2fce48a4c31177bc0b8580ab25a5a6e16cbce5dc3954decd85b00dd8
|
7
|
+
data.tar.gz: 21d556643b3d9c39cdc63282042378ddd78979a13075b6b6ab87c8c024def1f7fb52243cfdbed79c867257eadd958189ccaae4cdd229cb8974192c2ae9e594f6
|
data/GemFile
CHANGED
data/README.md
CHANGED
@@ -79,9 +79,9 @@ Sometimes you'll have more than one track of a given type:
|
|
79
79
|
- We standardize the naming of several Attributes:
|
80
80
|
- You can review lib/attribute_standardization_rules.yml to see them all
|
81
81
|
|
82
|
-
|
82
|
+
|
83
|
+
media_info.video.bit_rate => nil (\<Bit_rate>41.2 Mbps\</Bit_rate>)
|
83
84
|
media_info.video.bitrate => "41.2 Mbps" (\<Bit_rate>41.2 Mbps\</Bit_rate>)
|
84
|
-
media_info.video.bit_rate => nil (\<Bit_rate>41.2 Mbps\</Bit_rate>)
|
85
85
|
media_info.general.filesize => "11.5 MiB" (\<File_size>11.5 MiB\</File_size>
|
86
86
|
|
87
87
|
|
@@ -125,10 +125,9 @@ should at least return `nil`.
|
|
125
125
|
|
126
126
|
## Requirements
|
127
127
|
|
128
|
-
Gem version 1.0.0 has been tested on v18.03.1
|
129
|
-
Gem versions < 1.0.0 require at least: MediaInfoLib v0.7.25
|
130
|
-
Gem versions <= 0.5.1 worked against MediaInfoLib v0.7.11, which did not
|
131
|
-
generate XML output, and is no longer supported.
|
128
|
+
* Gem version 1.0.0 has been tested on v18.03.1
|
129
|
+
* Gem versions < 1.0.0 require at least: MediaInfoLib v0.7.25
|
130
|
+
* Gem versions <= 0.5.1 worked against MediaInfoLib v0.7.11, which did not generate XML output, and is no longer supported.
|
132
131
|
|
133
132
|
## Contributors
|
134
133
|
|
data/lib/mediainfo.rb
CHANGED
@@ -72,7 +72,7 @@ module MediaInfo
|
|
72
72
|
end
|
73
73
|
elsif input.include?('.xml')
|
74
74
|
return MediaInfo::Tracks.new(::File.open(input).read)
|
75
|
-
elsif input.
|
75
|
+
elsif !input.match(/[^\\]*\.\w+$/).nil?
|
76
76
|
@file = ::File.expand_path input # turns ~/path/to/file into /home/user/path/to/file
|
77
77
|
raise ArgumentError, 'You must include a file location.' if @file.nil?
|
78
78
|
raise ArgumentError, "need a path to a video file, #{@file} does not exist" unless ::File.exist? @file
|
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.0.
|
4
|
+
version: 1.0.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: 2018-05-
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|