mini_exiftool 2.12.1 → 2.13.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog +4 -0
  3. data/lib/mini_exiftool.rb +5 -7
  4. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d36a4581a00375b61b1b4e7d08cb0d6f6f0e3b6079ed55d6d1be0f3863a708f
4
- data.tar.gz: 9241c5e5514efd0fd2b6b647d35a12d52271cbdb71c2d1360972165f80648948
3
+ metadata.gz: dbcf3b035e8e2bfe73392ee5ef8e63ff2125d88b1c1ec32b1d8d86dba15f7f5a
4
+ data.tar.gz: ba2b4c2e8ea43a0cd1ac79283d7b83cdfbf4a8551b8a70ba22529b1fd94f984e
5
5
  SHA512:
6
- metadata.gz: 7ef8c843c5c89794cc17cb609a84c0bd7d66b91641bb20cf43d5e127ebc13f9074755b1e4c8ff1d25cd373b0f5778b631b67b4bff370fcc503700dc8b4373c94
7
- data.tar.gz: 83da86f25f5b678e6be1a689d2be9b61e6a8a36c138a1608526fbfade35e50835973e3b014844120a2f270fb57df3cb8d98ccc1dbc2fe4a5e4ebf3756bde1915
6
+ metadata.gz: 0acb2a5a18ceba9f3e8750882510cd14570d036caa868d90a8ffe2132c3e85068b5d81a8c7b182024609c4d08418e1843dc15d68d1eaf43696b034eb56ca5810
7
+ data.tar.gz: baea546851320c8068c3c1b91726f2b96fa96a03fd4c11d95bf6c2d36e6e0a1ed46144560aff1a3717c6100505650cb3917b5a94d5a003fa60830898c36e510a
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 2.13.0
2
+ - Fix bug when using Pathname instances of filenames.
3
+ Thanks Ryan Lue for reporting this problem (github issue #50).
4
+
1
5
  2.12.1
2
6
  - Maintenance release: Optimizing some internals.
3
7
 
data/lib/mini_exiftool.rb CHANGED
@@ -28,7 +28,7 @@ require 'yaml'
28
28
  # Simple OO access to the ExifTool command-line application.
29
29
  class MiniExiftool
30
30
 
31
- VERSION = '2.12.1'
31
+ VERSION = '2.13.0'
32
32
 
33
33
  # Name of the ExifTool command-line application
34
34
  @@cmd = 'exiftool'
@@ -132,7 +132,10 @@ class MiniExiftool
132
132
 
133
133
  # Load the tags of filename or io.
134
134
  def load filename_or_io
135
- if filename_or_io.respond_to? :to_str # String-like
135
+ if filename_or_io.respond_to? :read # IO-like
136
+ @io = filename_or_io
137
+ @filename = '-'
138
+ else
136
139
  unless filename_or_io && File.exist?(filename_or_io)
137
140
  raise MiniExiftool::Error.new("File '#{filename_or_io}' does not exist.")
138
141
  end
@@ -140,11 +143,6 @@ class MiniExiftool
140
143
  raise MiniExiftool::Error.new("'#{filename_or_io}' is a directory.")
141
144
  end
142
145
  @filename = filename_or_io.to_str
143
- elsif filename_or_io.respond_to? :read # IO-like
144
- @io = filename_or_io
145
- @filename = '-'
146
- else
147
- raise MiniExiftool::Error.new("Could not open filename_or_io.")
148
146
  end
149
147
  @values.clear
150
148
  @changed_values.clear
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.1
4
+ version: 2.13.0
5
5
  platform: ruby
6
- original_platform: ''
7
6
  authors:
8
7
  - Jan Friedrich
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-23 00:00:00.000000000 Z
10
+ date: 2024-12-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: ostruct
@@ -144,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
143
  version: '0'
145
144
  requirements:
146
145
  - exiftool, version >= 7,65
147
- rubygems_version: 3.6.0.dev
146
+ rubygems_version: 3.7.0.dev
148
147
  specification_version: 4
149
148
  summary: This library is a wrapper for the ExifTool command-line application (https://exiftool.org).
150
149
  test_files: []