mediainfo 1.0.1 → 1.0.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: a35ae85e3e7fa526c49c97050a6121e744f51e4db9079457d2eb5e6da5f5ca01
4
- data.tar.gz: 4789c91354bcd189b99951c2cc424e5f4bdf05f18e01563487306e54cdc90bd2
3
+ metadata.gz: a9732bb10c9b06fda82092cba25229e23fd1e4a5348fafa276b3bee1e11199b6
4
+ data.tar.gz: 148a60176b3b91f6d8dd66dfeb8e18c396f44f60c251bd275694e86b62b139e8
5
5
  SHA512:
6
- metadata.gz: 170f8c1656897087b1fceb1dc82cf63e390d466b8d721e19bd2065f62016eb5972bcff5c0018e820e68bb6b64705bd888c2c04773c13eb161abe72f318b4bb7b
7
- data.tar.gz: fa98fbcadf950ac6bba432228370763fa2b069aec50ac39ff6a9c574fa6637eafdb217dded2a41045c0812c6943e0d207c91f2c2b7ff18e05aa58bbb504c0580
6
+ metadata.gz: 25a04470707f1ab737bacc7a6b4868cfff0b47b409865abc9cf323df6d3fe429c396525b2fce48a4c31177bc0b8580ab25a5a6e16cbce5dc3954decd85b00dd8
7
+ data.tar.gz: 21d556643b3d9c39cdc63282042378ddd78979a13075b6b6ab87c8c024def1f7fb52243cfdbed79c867257eadd958189ccaae4cdd229cb8974192c2ae9e594f6
data/GemFile CHANGED
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/greatseth/#{repo_name}" }
4
4
 
5
- gemspec
5
+ gemspec
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
 
@@ -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.include?('/')
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
@@ -1,3 +1,3 @@
1
1
  module MediaInfo
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.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.0.1
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-23 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler