mediainfo 1.0.2 → 1.0.3

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: a9732bb10c9b06fda82092cba25229e23fd1e4a5348fafa276b3bee1e11199b6
4
- data.tar.gz: 148a60176b3b91f6d8dd66dfeb8e18c396f44f60c251bd275694e86b62b139e8
3
+ metadata.gz: '047490deb49a33dd0202ae748bbadfc8fb210e95424b6384c6c8e30613ad85fa'
4
+ data.tar.gz: f9a1f6334a0eb23cce8f6745193acf70b82db80637f9c2a43f1bb2d37f8ddbd7
5
5
  SHA512:
6
- metadata.gz: 25a04470707f1ab737bacc7a6b4868cfff0b47b409865abc9cf323df6d3fe429c396525b2fce48a4c31177bc0b8580ab25a5a6e16cbce5dc3954decd85b00dd8
7
- data.tar.gz: 21d556643b3d9c39cdc63282042378ddd78979a13075b6b6ab87c8c024def1f7fb52243cfdbed79c867257eadd958189ccaae4cdd229cb8974192c2ae9e594f6
6
+ metadata.gz: f338c14ae90ef808b2396d8335d0bc0da14fcfdce957fe62e8a8b2bc69395356b408b992618d90409e765fdf0cbe747d375a949938ce031faa9c99e8e6c72242
7
+ data.tar.gz: 314d421a1cf9d1259e698f8e996f7c90d6f6fd1fb2db3dc6a3e66dd3e15e404c3fc225c69bc8bc347d6f0c135bf91122b0b79774febba7eaf3583004991793d7
data/.gitignore CHANGED
@@ -9,8 +9,12 @@ pkg
9
9
  /doc/
10
10
  /pkg/
11
11
  /spec/reports/
12
+ /spec/fixtures/video/*
13
+ !/spec/fixtures/video/.keep
12
14
  /tmp/
13
15
  .idea
14
16
 
15
17
  # rspec failure tracking
16
- .rspec_status
18
+ .rspec_status
19
+
20
+ Gemfile.lock
@@ -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
@@ -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.any?(__method__.to_s.gsub('?',''))
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
@@ -1,3 +1,3 @@
1
1
  module MediaInfo
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
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.0.2
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-05-25 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler