mini_exiftool 2.12.1 → 2.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +7 -0
- data/lib/mini_exiftool.rb +4 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71655c31f77bdc98ace7ce0581e825f35f982b628c163f7220f88807bdd54b41
|
4
|
+
data.tar.gz: 68926ab98e403c6cbca2736dae210651e0a54f93bb7f9d128940de6fe5966eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 215ae9861270e3b6fdfedbae61c1032c7d93f0ac9c372c82a11fdc9d97abb3c41badad545beff17727d61c1d1e60a6b4731a537eddeb82b9eb5184b348b1216e
|
7
|
+
data.tar.gz: 4acbeffaff24f2f70db92ef10d2365062d29468d7c85d250fa575c8c6e7ef7b4b5e5322ccb0d716b89dc038db66c52d12bf02014d54ec71e58f678c35b23d78e
|
data/Changelog
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
2.13.1
|
2
|
+
- Second try to fix bug when using Pathname instances of filenames.
|
3
|
+
|
4
|
+
2.13.0
|
5
|
+
- Fix bug when using Pathname instances of filenames.
|
6
|
+
Thanks Ryan Lue for reporting this problem (github issue #50).
|
7
|
+
|
1
8
|
2.12.1
|
2
9
|
- Maintenance release: Optimizing some internals.
|
3
10
|
|
data/lib/mini_exiftool.rb
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
require 'fileutils'
|
18
18
|
require 'json'
|
19
19
|
require 'open3'
|
20
|
+
require 'pathname'
|
20
21
|
require 'pstore'
|
21
22
|
require 'rational'
|
22
23
|
require 'rbconfig'
|
@@ -28,7 +29,7 @@ require 'yaml'
|
|
28
29
|
# Simple OO access to the ExifTool command-line application.
|
29
30
|
class MiniExiftool
|
30
31
|
|
31
|
-
VERSION = '2.
|
32
|
+
VERSION = '2.13.1'
|
32
33
|
|
33
34
|
# Name of the ExifTool command-line application
|
34
35
|
@@cmd = 'exiftool'
|
@@ -132,14 +133,14 @@ class MiniExiftool
|
|
132
133
|
|
133
134
|
# Load the tags of filename or io.
|
134
135
|
def load filename_or_io
|
135
|
-
if filename_or_io.respond_to?
|
136
|
+
if filename_or_io.respond_to?(:to_str) || filename_or_io.kind_of?(Pathname) # String-like
|
136
137
|
unless filename_or_io && File.exist?(filename_or_io)
|
137
138
|
raise MiniExiftool::Error.new("File '#{filename_or_io}' does not exist.")
|
138
139
|
end
|
139
140
|
if File.directory?(filename_or_io)
|
140
141
|
raise MiniExiftool::Error.new("'#{filename_or_io}' is a directory.")
|
141
142
|
end
|
142
|
-
@filename = filename_or_io.
|
143
|
+
@filename = filename_or_io.to_s
|
143
144
|
elsif filename_or_io.respond_to? :read # IO-like
|
144
145
|
@io = filename_or_io
|
145
146
|
@filename = '-'
|
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.
|
4
|
+
version: 2.13.1
|
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-
|
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.
|
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: []
|