mini_exiftool 2.13.1 → 2.14.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.
- checksums.yaml +4 -4
- data/Changelog +8 -0
- data/README.md +5 -2
- data/lib/mini_exiftool.rb +11 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eb71098832b8fa3c931588d9b35ced2a05241d3f88abd85eccd9b0404c7bbe2
|
4
|
+
data.tar.gz: 2deb86595f46b8a4a13e026ff54754b915723a24730a9d4c5bccf66054f50e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edb5a2802070c2e99f9222d3b3c55fc22f546f793258f501d70fed4655036cf81bbae4f0e4ba635d19be2268f14c3f879004481ee3fe5d072af90291b734435a
|
7
|
+
data.tar.gz: 2dbd2e65dfbbf3711f8b2910a0a956324fb4ffd95add844b50fce2786198ab910e52d9ef04a521b8ae216f8594691b1f60b2c31044bab4e11bd6c92b5d43f904
|
data/Changelog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
2.14.0
|
2
|
+
- Change default pstore_dir to subdir in Gem.cache_home or under USERPROFILE
|
3
|
+
or Dir.tmpdir if some not defined. So it's now XDG conform and also Ruby
|
4
|
+
ecosystem conform. Thanks a lot to Ryan Lue again for his effort and
|
5
|
+
support (github issue #51).
|
6
|
+
- Add the possibility to change the pstore_dir by setting the environment
|
7
|
+
variable MINI_EXIFTOOL_PSTORE_DIR.
|
8
|
+
|
1
9
|
2.13.1
|
2
10
|
- Second try to fix bug when using Pathname instances of filenames.
|
3
11
|
|
data/README.md
CHANGED
@@ -53,8 +53,11 @@ MiniExiftool.command = '/path/to/my/exiftool'
|
|
53
53
|
|
54
54
|
In addition, you can also tell MiniExiftool where to store the PStore files with tags
|
55
55
|
which exiftool supports. The PStore files are used for performance issues.
|
56
|
-
Per default the PStore files are stored in a sub directory
|
57
|
-
`
|
56
|
+
Per default the PStore files are stored in a sub directory `mini_exiftool` in
|
57
|
+
`Gem.cache' or if this is not defined under `USERPROFILE` or `Dir.tmpdir`.
|
58
|
+
|
59
|
+
You can change it by setting the environment variable
|
60
|
+
`MINI_EXIFTOOL_PSTORE_DIR` or programmatically, as follows.
|
58
61
|
|
59
62
|
```ruby
|
60
63
|
MiniExiftool.pstore_dir = '/path/to/pstore/dir'
|
data/lib/mini_exiftool.rb
CHANGED
@@ -29,7 +29,7 @@ require 'yaml'
|
|
29
29
|
# Simple OO access to the ExifTool command-line application.
|
30
30
|
class MiniExiftool
|
31
31
|
|
32
|
-
VERSION = '2.
|
32
|
+
VERSION = '2.14.0'
|
33
33
|
|
34
34
|
# Name of the ExifTool command-line application
|
35
35
|
@@cmd = 'exiftool'
|
@@ -366,10 +366,16 @@ class MiniExiftool
|
|
366
366
|
|
367
367
|
def self.pstore_dir
|
368
368
|
unless defined? @@pstore_dir
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
369
|
+
@@pstore_dir =
|
370
|
+
if env = ENV['MINI_EXIFTOOL_PSTORE_DIR']
|
371
|
+
env
|
372
|
+
elsif defined?(Gem.cache_home) && File.writable?(Gem.cache_home)
|
373
|
+
File.join(Gem.cache_home, 'mini_exiftool')
|
374
|
+
else
|
375
|
+
# This fallback will hopefully work on *NIX and Windows systems
|
376
|
+
cache_dir = ENV['USERPROFILE'] || Dir.tmpdir
|
377
|
+
File.join(cache_dir, 'mini_exiftool')
|
378
|
+
end
|
373
379
|
end
|
374
380
|
@@pstore_dir
|
375
381
|
end
|
metadata
CHANGED
@@ -1,13 +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.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Friedrich
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: ostruct
|