mini_exiftool 1.5.0 → 1.5.1
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.
- data/Changelog +3 -0
- data/lib/mini_exiftool.rb +4 -3
- data/mini_exiftool.gemspec +1 -1
- metadata +1 -1
data/Changelog
CHANGED
data/lib/mini_exiftool.rb
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
require 'fileutils'
|
17
17
|
require 'tempfile'
|
18
18
|
require 'pstore'
|
19
|
+
require 'rational'
|
19
20
|
require 'set'
|
20
21
|
require 'shellwords'
|
21
22
|
require 'time'
|
@@ -32,7 +33,7 @@ class MiniExiftool
|
|
32
33
|
attr_reader :filename
|
33
34
|
attr_accessor :numerical, :composite, :convert_encoding, :ignore_minor_errors, :errors, :timestamps
|
34
35
|
|
35
|
-
VERSION = '1.5.
|
36
|
+
VERSION = '1.5.1'
|
36
37
|
|
37
38
|
# +opts+ support at the moment
|
38
39
|
# * <code>:numerical</code> for numerical values, default is +false+
|
@@ -345,8 +346,8 @@ class MiniExiftool
|
|
345
346
|
# nothing => String
|
346
347
|
when /^-?\d+$/
|
347
348
|
value = value.to_i
|
348
|
-
when %r(
|
349
|
-
value = Rational(
|
349
|
+
when %r(^(\d+)/(\d+)$)
|
350
|
+
value = Rational($1.to_i, $2.to_i)
|
350
351
|
when /^[\d ]+$/
|
351
352
|
# nothing => String
|
352
353
|
when /#{@@separator}/
|
data/mini_exiftool.gemspec
CHANGED