mediainfo 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -1
- data/lib/mediainfo.rb +1 -1
- data/lib/mediainfo/tracks.rb +2 -2
- 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: '047490deb49a33dd0202ae748bbadfc8fb210e95424b6384c6c8e30613ad85fa'
|
4
|
+
data.tar.gz: f9a1f6334a0eb23cce8f6745193acf70b82db80637f9c2a43f1bb2d37f8ddbd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f338c14ae90ef808b2396d8335d0bc0da14fcfdce957fe62e8a8b2bc69395356b408b992618d90409e765fdf0cbe747d375a949938ce031faa9c99e8e6c72242
|
7
|
+
data.tar.gz: 314d421a1cf9d1259e698f8e996f7c90d6f6fd1fb2db3dc6a3e66dd3e15e404c3fc225c69bc8bc347d6f0c135bf91122b0b79774febba7eaf3583004991793d7
|
data/.gitignore
CHANGED
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.match(/[^\\]*\.\w+$/).nil?
|
75
|
+
elsif !input.match(/[^\\]*\.\w+$/).nil? # A local file
|
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/tracks.rb
CHANGED
@@ -52,7 +52,7 @@ module MediaInfo
|
|
52
52
|
# Add {type}?
|
53
53
|
@track_types.each{ |track_type|
|
54
54
|
define_singleton_method("#{track_type}?"){ # Can't use set_singleton_method due to ?
|
55
|
-
self.track_types.
|
55
|
+
self.track_types.include?(__method__.to_s.gsub('?',''))
|
56
56
|
}
|
57
57
|
}
|
58
58
|
# Add {type}.count singleton_method
|
@@ -169,4 +169,4 @@ module MediaInfo
|
|
169
169
|
end
|
170
170
|
|
171
171
|
end
|
172
|
-
end
|
172
|
+
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.0.
|
4
|
+
version: 1.0.3
|
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-
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|