exiftool 1.3.0 → 1.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cce583d1e852f12a30ce3e82af8e146608d96b6453829c2bef67b44605ada4e
4
- data.tar.gz: 2769a2ad8fb58fb1e7882491aba98a4ab7035fbf10a68fb727c3eac98ea76a9a
3
+ metadata.gz: 1745a40104081210f37e7c4a0a74c8d28bb96033d33422a7cd5313ddd5988a84
4
+ data.tar.gz: a3cb52d603d826c563053214d703423109bd27c53a55e2e0fee28d442b1a1a6f
5
5
  SHA512:
6
- metadata.gz: 00f23a8d0168120ea30af758f58391845f8b7019239a6310f4a63652b8ec32baada0e21bc69bc50761575206208c6c0b43faec565a73f0a8641dc6d85ac91b1c
7
- data.tar.gz: 32efaa4bb7ca675822858c9147f4d0a430c6efb1a7a58d24d1cd601d1d08dfc618a053ded041ba59fcb830973252f8e8ae9e5d9cc085dd1f875dade49fc40b09
6
+ metadata.gz: 0f39d3be529b9e6c2e3d5aef7ea4fce5a55ac3debe19532e6fc4310db5eacbb14b7738c71d2b7d60acc19f327f7901b66db4514571366676d985c3e2d363d542
7
+ data.tar.gz: c8d9fcaf46225552ed50340d1f91091e39fc699ba113fa51bd48e28de84c6b88727b958a74c5282dc7b4b601d4f6e0e7343cf2917147e30a7f22984ed4f9d5d1
@@ -48,7 +48,7 @@ class Exiftool
48
48
  private
49
49
 
50
50
  def lat_long?
51
- sym_key == :gps_latitude || sym_key == :gps_longitude
51
+ %i[gps_latitude gps_longitude].include?(sym_key)
52
52
  end
53
53
 
54
54
  def as_lat_long
@@ -21,7 +21,7 @@ class Exiftool
21
21
 
22
22
  civil_date = p.civil_date
23
23
  if civil_date
24
- civil_date_key = "#{p.sym_key}_civil".to_sym
24
+ civil_date_key = :"#{p.sym_key}_civil"
25
25
  @to_hash[civil_date_key] = civil_date
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Exiftool
4
- VERSION = Gem::Version.new('1.3.0')
4
+ VERSION = Gem::Version.new('1.3.1')
5
5
  end
data/lib/exiftool.rb CHANGED
@@ -6,6 +6,7 @@ require 'open3'
6
6
  require 'exiftool/result'
7
7
  require 'forwardable'
8
8
  require 'pathname'
9
+ require 'stringio'
9
10
 
10
11
  # Exiftool Class
11
12
  class Exiftool
@@ -62,7 +63,7 @@ class Exiftool
62
63
  def initialize(filenames, exiftool_opts = '')
63
64
  @file2result = {}
64
65
  io_input = nil
65
- if filenames.is_a?(IO)
66
+ if filenames.is_a?(IO) || filenames.is_a?(StringIO)
66
67
  io_input = filenames
67
68
  filenames = ['-']
68
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew McEachen