mini_exiftool 2.11.0 → 2.12.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 +4 -4
- data/Changelog +7 -0
- data/lib/mini_exiftool.rb +4 -4
- metadata +42 -48
- data/.aspell.pws +0 -123
- data/Gemfile +0 -3
- data/Rakefile +0 -40
- data/mini_exiftool.gemspec +0 -31
- data/regtest/read_all.rb +0 -12
- data/regtest/read_all.yml +0 -575
- data/test/data/Bad_PreviewIFD.jpg +0 -0
- data/test/data/Canon.jpg +0 -0
- data/test/data/INFORMATION +0 -3
- data/test/data/invalid_byte_sequence_in_utf8.json +0 -4
- data/test/data/invalid_rational.json +0 -3
- data/test/data/test.jpg +0 -0
- data/test/data/test.jpg.json +0 -106
- data/test/data/test_coordinates.jpg +0 -0
- data/test/data/test_encodings.jpg +0 -0
- data/test/data/test_special_dates.jpg +0 -0
- data/test/helpers_for_test.rb +0 -25
- data/test/test_bad_preview_ifd.rb +0 -29
- data/test/test_class_methods.rb +0 -80
- data/test/test_composite.rb +0 -19
- data/test/test_copy_tags_from.rb +0 -55
- data/test/test_dumping.rb +0 -80
- data/test/test_encodings.rb +0 -30
- data/test/test_filename_access.rb +0 -60
- data/test/test_from_hash.rb +0 -22
- data/test/test_instance_methods.rb +0 -24
- data/test/test_invalid_byte_sequence_in_utf8.rb +0 -29
- data/test/test_invalid_rational.rb +0 -13
- data/test/test_io.rb +0 -67
- data/test/test_pstore.rb +0 -37
- data/test/test_read.rb +0 -49
- data/test/test_read_coordinates.rb +0 -18
- data/test/test_read_numerical.rb +0 -40
- data/test/test_save.rb +0 -73
- data/test/test_special.rb +0 -42
- data/test/test_special_dates.rb +0 -52
- data/test/test_write.rb +0 -161
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d36a4581a00375b61b1b4e7d08cb0d6f6f0e3b6079ed55d6d1be0f3863a708f
|
4
|
+
data.tar.gz: 9241c5e5514efd0fd2b6b647d35a12d52271cbdb71c2d1360972165f80648948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ef8c843c5c89794cc17cb609a84c0bd7d66b91641bb20cf43d5e127ebc13f9074755b1e4c8ff1d25cd373b0f5778b631b67b4bff370fcc503700dc8b4373c94
|
7
|
+
data.tar.gz: 83da86f25f5b678e6be1a689d2be9b61e6a8a36c138a1608526fbfade35e50835973e3b014844120a2f270fb57df3cb8d98ccc1dbc2fe4a5e4ebf3756bde1915
|
data/Changelog
CHANGED
data/lib/mini_exiftool.rb
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
#
|
4
4
|
# MiniExiftool
|
5
5
|
#
|
6
|
-
# This library is wrapper for the ExifTool command-line
|
6
|
+
# This library is a wrapper for the ExifTool command-line
|
7
7
|
# application (https://exiftool.org/)
|
8
8
|
# written by Phil Harvey.
|
9
9
|
# Read and write access is done in a clean OO manner.
|
10
10
|
#
|
11
11
|
# Author: Jan Friedrich
|
12
|
-
# Copyright (c) 2007-
|
12
|
+
# Copyright (c) 2007-2021, 2023-2024 by Jan Friedrich
|
13
13
|
# Licensed under the GNU LESSER GENERAL PUBLIC LICENSE,
|
14
14
|
# Version 2.1, February 1999
|
15
15
|
#
|
@@ -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.
|
31
|
+
VERSION = '2.12.1'
|
32
32
|
|
33
33
|
# Name of the ExifTool command-line application
|
34
34
|
@@cmd = 'exiftool'
|
@@ -385,7 +385,7 @@ class MiniExiftool
|
|
385
385
|
############################################################################
|
386
386
|
|
387
387
|
def cmd_gen arg_str='', filename
|
388
|
-
[
|
388
|
+
[+@@cmd, arg_str.encode('UTF-8'), escape(filename.encode(@@fs_enc))].map {|s| s.force_encoding('UTF-8')}.join(' ')
|
389
389
|
end
|
390
390
|
|
391
391
|
def run cmd
|
metadata
CHANGED
@@ -1,14 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_exiftool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.1
|
5
5
|
platform: ruby
|
6
|
+
original_platform: ''
|
6
7
|
authors:
|
7
8
|
- Jan Friedrich
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date: 2024-
|
11
|
+
date: 2024-11-23 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ostruct
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.6.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.6.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pstore
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.3
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.3
|
12
41
|
- !ruby/object:Gem::Dependency
|
13
42
|
name: rake
|
14
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -29,14 +58,14 @@ dependencies:
|
|
29
58
|
requirements:
|
30
59
|
- - "~>"
|
31
60
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
61
|
+
version: '3.0'
|
33
62
|
type: :development
|
34
63
|
prerelease: false
|
35
64
|
version_requirements: !ruby/object:Gem::Requirement
|
36
65
|
requirements:
|
37
66
|
- - "~>"
|
38
67
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
68
|
+
version: '3.0'
|
40
69
|
- !ruby/object:Gem::Dependency
|
41
70
|
name: test-unit
|
42
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,12 +104,9 @@ executables: []
|
|
75
104
|
extensions: []
|
76
105
|
extra_rdoc_files: []
|
77
106
|
files:
|
78
|
-
- "./.aspell.pws"
|
79
107
|
- COPYING
|
80
108
|
- Changelog
|
81
|
-
- Gemfile
|
82
109
|
- README.md
|
83
|
-
- Rakefile
|
84
110
|
- Tutorial.md
|
85
111
|
- examples/copy_icc_profile.rb
|
86
112
|
- examples/external_photo.rb
|
@@ -88,52 +114,19 @@ files:
|
|
88
114
|
- examples/shift_time.rb
|
89
115
|
- examples/show_speedup_with_fast_option.rb
|
90
116
|
- lib/mini_exiftool.rb
|
91
|
-
- mini_exiftool.gemspec
|
92
|
-
- regtest/read_all.rb
|
93
|
-
- regtest/read_all.yml
|
94
|
-
- test/data/Bad_PreviewIFD.jpg
|
95
|
-
- test/data/Canon.jpg
|
96
|
-
- test/data/INFORMATION
|
97
|
-
- test/data/invalid_byte_sequence_in_utf8.json
|
98
|
-
- test/data/invalid_rational.json
|
99
|
-
- test/data/test.jpg
|
100
|
-
- test/data/test.jpg.json
|
101
|
-
- test/data/test_coordinates.jpg
|
102
|
-
- test/data/test_encodings.jpg
|
103
|
-
- test/data/test_special_dates.jpg
|
104
|
-
- test/helpers_for_test.rb
|
105
|
-
- test/test_bad_preview_ifd.rb
|
106
|
-
- test/test_class_methods.rb
|
107
|
-
- test/test_composite.rb
|
108
|
-
- test/test_copy_tags_from.rb
|
109
|
-
- test/test_dumping.rb
|
110
|
-
- test/test_encodings.rb
|
111
|
-
- test/test_filename_access.rb
|
112
|
-
- test/test_from_hash.rb
|
113
|
-
- test/test_instance_methods.rb
|
114
|
-
- test/test_invalid_byte_sequence_in_utf8.rb
|
115
|
-
- test/test_invalid_rational.rb
|
116
|
-
- test/test_io.rb
|
117
|
-
- test/test_pstore.rb
|
118
|
-
- test/test_read.rb
|
119
|
-
- test/test_read_coordinates.rb
|
120
|
-
- test/test_read_numerical.rb
|
121
|
-
- test/test_save.rb
|
122
|
-
- test/test_special.rb
|
123
|
-
- test/test_special_dates.rb
|
124
|
-
- test/test_write.rb
|
125
117
|
homepage: https://github.com/janfri/mini_exiftool
|
126
118
|
licenses:
|
127
119
|
- LGPL-2.1
|
128
|
-
metadata:
|
120
|
+
metadata:
|
121
|
+
source_code_uri: https://github.com/janfri/mini_exiftool
|
129
122
|
post_install_message: |
|
130
123
|
+-----------------------------------------------------------------------+
|
131
124
|
| Please ensure you have installed exiftool at least version 7.65 |
|
132
|
-
| and it's found in your PATH (Try
|
125
|
+
| and it's found in your PATH (Try 'exiftool -ver' on your commandline).|
|
133
126
|
| For more details see |
|
134
|
-
| https://exiftool.org/install.html
|
135
|
-
| You need also Ruby
|
136
|
-
| If you need support for Ruby
|
127
|
+
| https://exiftool.org/install.html |
|
128
|
+
| You need also Ruby 2.3 or higher. |
|
129
|
+
| If you need support for Ruby < 2.3 or exiftool < 7.65 then install |
|
137
130
|
| mini_exiftool version < 2.0.0. |
|
138
131
|
+-----------------------------------------------------------------------+
|
139
132
|
rdoc_options: []
|
@@ -143,13 +136,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
136
|
requirements:
|
144
137
|
- - ">="
|
145
138
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
139
|
+
version: '2.3'
|
147
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
141
|
requirements:
|
149
142
|
- - ">="
|
150
143
|
- !ruby/object:Gem::Version
|
151
144
|
version: '0'
|
152
|
-
requirements:
|
145
|
+
requirements:
|
146
|
+
- exiftool, version >= 7,65
|
153
147
|
rubygems_version: 3.6.0.dev
|
154
148
|
specification_version: 4
|
155
149
|
summary: This library is a wrapper for the ExifTool command-line application (https://exiftool.org).
|
data/.aspell.pws
DELETED
@@ -1,123 +0,0 @@
|
|
1
|
-
personal_ws-1.1 en 122
|
2
|
-
Barushev
|
3
|
-
Bugfix
|
4
|
-
CaptionAbstract
|
5
|
-
CodedCharacterSet
|
6
|
-
Cypriano
|
7
|
-
DYNAX
|
8
|
-
DateTime
|
9
|
-
DateTimeOriginal
|
10
|
-
Dungan
|
11
|
-
ExifTool
|
12
|
-
FNumber
|
13
|
-
Fixnum
|
14
|
-
Forwardable
|
15
|
-
Friedrich
|
16
|
-
GPS
|
17
|
-
Gaelan
|
18
|
-
Gemfile
|
19
|
-
Gieseler
|
20
|
-
Gitorious
|
21
|
-
Henning
|
22
|
-
Hinrich
|
23
|
-
Horrocks
|
24
|
-
Hoy
|
25
|
-
JPEG
|
26
|
-
JPEGs
|
27
|
-
Joshfindit
|
28
|
-
J�rome
|
29
|
-
Krogmann
|
30
|
-
Kulander
|
31
|
-
MacRoman
|
32
|
-
MiniExiftool
|
33
|
-
MultiExiftool
|
34
|
-
OO
|
35
|
-
POSIX
|
36
|
-
PStore
|
37
|
-
Picturelife
|
38
|
-
README
|
39
|
-
Rau
|
40
|
-
Refactoring
|
41
|
-
Regexes
|
42
|
-
Romahn
|
43
|
-
Salzberg
|
44
|
-
SemVer
|
45
|
-
SemVerTag
|
46
|
-
Soika
|
47
|
-
Soutar
|
48
|
-
StandardError
|
49
|
-
Stjernstrom
|
50
|
-
SubjectLocation
|
51
|
-
SupplementalCategories
|
52
|
-
Tempfile
|
53
|
-
TestEscapeFilename
|
54
|
-
UTF
|
55
|
-
Wil
|
56
|
-
acki
|
57
|
-
aiff
|
58
|
-
atomar
|
59
|
-
backport
|
60
|
-
backticks
|
61
|
-
bundler
|
62
|
-
ccoenen
|
63
|
-
cgat
|
64
|
-
charset
|
65
|
-
commandline
|
66
|
-
coord
|
67
|
-
customizable
|
68
|
-
darwin
|
69
|
-
datetimeoriginal
|
70
|
-
dir
|
71
|
-
echoe
|
72
|
-
encod
|
73
|
-
encodings
|
74
|
-
exif
|
75
|
-
exiftool
|
76
|
-
filename
|
77
|
-
filenames
|
78
|
-
gemspec
|
79
|
-
github
|
80
|
-
gras
|
81
|
-
icc
|
82
|
-
io
|
83
|
-
iptc
|
84
|
-
jpg
|
85
|
-
json
|
86
|
-
jvradelis
|
87
|
-
md
|
88
|
-
metadata
|
89
|
-
mfo
|
90
|
-
mie
|
91
|
-
multi
|
92
|
-
neccessary
|
93
|
-
params
|
94
|
-
pdf
|
95
|
-
philister
|
96
|
-
photoshop
|
97
|
-
png
|
98
|
-
popen
|
99
|
-
prerelease
|
100
|
-
pstore
|
101
|
-
ptore
|
102
|
-
quicktime
|
103
|
-
rb
|
104
|
-
rdoc
|
105
|
-
refactorings
|
106
|
-
regtest
|
107
|
-
releating
|
108
|
-
robotmay
|
109
|
-
rubyforge
|
110
|
-
shellwords
|
111
|
-
shioyama
|
112
|
-
stderr
|
113
|
-
stdout
|
114
|
-
str
|
115
|
-
timestamps
|
116
|
-
uwe
|
117
|
-
vorbis
|
118
|
-
warings
|
119
|
-
ws
|
120
|
-
xmp
|
121
|
-
yaml
|
122
|
-
yardopts
|
123
|
-
�ml�uts
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
require 'rim/tire'
|
2
|
-
require 'rim/version'
|
3
|
-
require 'rim/regtest'
|
4
|
-
|
5
|
-
$:.unshift 'lib'
|
6
|
-
require 'mini_exiftool'
|
7
|
-
|
8
|
-
Rim.setup do |p|
|
9
|
-
p.name = 'mini_exiftool'
|
10
|
-
p.version = MiniExiftool::VERSION
|
11
|
-
p.authors = 'Jan Friedrich'
|
12
|
-
p.email = 'janfri26@gmail.com'
|
13
|
-
p.summary = 'This library is a wrapper for the ExifTool command-line application (https://exiftool.org).'
|
14
|
-
p.description <<-END
|
15
|
-
This library is a wrapper for the ExifTool command-line application
|
16
|
-
(https://exiftool.org) written by Phil Harvey.
|
17
|
-
It provides the full power of ExifTool to Ruby: reading and writing of
|
18
|
-
EXIF-data, IPTC-data and XMP-data.
|
19
|
-
END
|
20
|
-
p.homepage = 'https://github.com/janfri/mini_exiftool'
|
21
|
-
p.license = 'LGPL-2.1'
|
22
|
-
p.gem_files << 'Tutorial.md'
|
23
|
-
p.gem_files += FileList.new('examples/**')
|
24
|
-
p.install_message = <<-END
|
25
|
-
+-----------------------------------------------------------------------+
|
26
|
-
| Please ensure you have installed exiftool at least version 7.65 |
|
27
|
-
| and it's found in your PATH (Try "exiftool -ver" on your commandline).|
|
28
|
-
| For more details see |
|
29
|
-
| https://exiftool.org/install.html |
|
30
|
-
| You need also Ruby 1.9 or higher. |
|
31
|
-
| If you need support for Ruby 1.8 or exiftool prior 7.65 install |
|
32
|
-
| mini_exiftool version < 2.0.0. |
|
33
|
-
+-----------------------------------------------------------------------+
|
34
|
-
END
|
35
|
-
p.test_warning = false
|
36
|
-
p.development_dependencies << 'test-unit'
|
37
|
-
if p.feature_loaded? 'rim/aspell'
|
38
|
-
p.aspell_files << 'Tutorial.md'
|
39
|
-
end
|
40
|
-
end
|
data/mini_exiftool.gemspec
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: mini_exiftool 2.11.0 ruby lib
|
3
|
-
#
|
4
|
-
# This file is automatically generated by rim.
|
5
|
-
# PLEASE DO NOT EDIT IT DIRECTLY!
|
6
|
-
# Change the values in Rim.setup in Rakefile instead.
|
7
|
-
|
8
|
-
Gem::Specification.new do |s|
|
9
|
-
s.name = "mini_exiftool"
|
10
|
-
s.version = "2.11.0"
|
11
|
-
|
12
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
|
-
s.require_paths = ["lib"]
|
14
|
-
s.authors = ["Jan Friedrich"]
|
15
|
-
s.date = "2024-03-26"
|
16
|
-
s.description = "This library is a wrapper for the ExifTool command-line application\n(https://exiftool.org) written by Phil Harvey.\nIt provides the full power of ExifTool to Ruby: reading and writing of\nEXIF-data, IPTC-data and XMP-data.\n"
|
17
|
-
s.email = "janfri26@gmail.com"
|
18
|
-
s.files = ["./.aspell.pws", "COPYING", "Changelog", "Gemfile", "README.md", "Rakefile", "Tutorial.md", "examples/copy_icc_profile.rb", "examples/external_photo.rb", "examples/print_portraits.rb", "examples/shift_time.rb", "examples/show_speedup_with_fast_option.rb", "lib/mini_exiftool.rb", "mini_exiftool.gemspec", "regtest/read_all.rb", "regtest/read_all.yml", "test/data", "test/data/Bad_PreviewIFD.jpg", "test/data/Canon.jpg", "test/data/INFORMATION", "test/data/invalid_byte_sequence_in_utf8.json", "test/data/invalid_rational.json", "test/data/test.jpg", "test/data/test.jpg.json", "test/data/test_coordinates.jpg", "test/data/test_encodings.jpg", "test/data/test_special_dates.jpg", "test/helpers_for_test.rb", "test/test_bad_preview_ifd.rb", "test/test_class_methods.rb", "test/test_composite.rb", "test/test_copy_tags_from.rb", "test/test_dumping.rb", "test/test_encodings.rb", "test/test_filename_access.rb", "test/test_from_hash.rb", "test/test_instance_methods.rb", "test/test_invalid_byte_sequence_in_utf8.rb", "test/test_invalid_rational.rb", "test/test_io.rb", "test/test_pstore.rb", "test/test_read.rb", "test/test_read_coordinates.rb", "test/test_read_numerical.rb", "test/test_save.rb", "test/test_special.rb", "test/test_special_dates.rb", "test/test_write.rb"]
|
19
|
-
s.homepage = "https://github.com/janfri/mini_exiftool"
|
20
|
-
s.licenses = ["LGPL-2.1"]
|
21
|
-
s.post_install_message = "+-----------------------------------------------------------------------+\n| Please ensure you have installed exiftool at least version 7.65 |\n| and it's found in your PATH (Try \"exiftool -ver\" on your commandline).|\n| For more details see |\n| https://exiftool.org/install.html |\n| You need also Ruby 1.9 or higher. |\n| If you need support for Ruby 1.8 or exiftool prior 7.65 install |\n| mini_exiftool version < 2.0.0. |\n+-----------------------------------------------------------------------+\n"
|
22
|
-
s.rubygems_version = "3.6.0.dev"
|
23
|
-
s.summary = "This library is a wrapper for the ExifTool command-line application (https://exiftool.org)."
|
24
|
-
|
25
|
-
s.specification_version = 4
|
26
|
-
|
27
|
-
s.add_development_dependency(%q<rake>, [">= 0"])
|
28
|
-
s.add_development_dependency(%q<rim>, ["~> 2.17"])
|
29
|
-
s.add_development_dependency(%q<test-unit>, [">= 0"])
|
30
|
-
s.add_development_dependency(%q<regtest>, ["~> 2"])
|
31
|
-
end
|
data/regtest/read_all.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'mini_exiftool'
|
2
|
-
require 'regtest'
|
3
|
-
|
4
|
-
Dir['test/data/*.jpg'].sort.each do |fn|
|
5
|
-
Regtest.sample 'read ' << File.basename(fn) do
|
6
|
-
h = MiniExiftool.new(fn).to_hash
|
7
|
-
%w(FileModifyDate FileAccessDate FileInodeChangeDate FilePermissions).each do |tag|
|
8
|
-
h.delete(tag)
|
9
|
-
end
|
10
|
-
h
|
11
|
-
end
|
12
|
-
end
|