mini_exiftool 2.7.2 → 2.7.3
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 +4 -1
- data/README.rdoc +7 -8
- data/Rakefile +2 -2
- data/Tutorial.rdoc +2 -2
- data/lib/mini_exiftool.rb +10 -10
- data/test/data/INFORMATION +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e00172cff9c5669123ff3946dba9714d63e5ea14
|
4
|
+
data.tar.gz: 02ebb1d326ddbbd96365b72d59be3c4b12289519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd0b5675e004b9c03f18aec0126b25a4bf0076a2efe73ce84212ba5a14224d88b58851535519f2eb68a03f6b382bf682a59ced172b68084d13cde44fa02ec157
|
7
|
+
data.tar.gz: 9394945a11a048b3f58a75932e5c53f327a6eed9a1fed3cb6379bc30b200aa0bdd51f77ffacf867d7cf3b4d3258d8bb65c938706f352e0ee2c1627e25552a165
|
data/Changelog
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
2.7.3
|
2
|
+
- Update docs.
|
3
|
+
|
1
4
|
2.7.2
|
2
5
|
- Include example files in gem.
|
3
6
|
|
@@ -98,7 +101,7 @@ The Encoding Release
|
|
98
101
|
- Type conversion in MiniExiftool.from_hash.
|
99
102
|
Thanks to Ethan Soutar-Rau for the merge request.
|
100
103
|
- Switching to rim. (No longer troubles with echoe.)
|
101
|
-
-
|
104
|
+
- ExifTool version detection delayed.
|
102
105
|
Thanks to Sebastian Skałacki for the merge request.
|
103
106
|
- New method MiniExiftool#save!
|
104
107
|
Cherry-picked commit from Wil Gieseler.
|
data/README.rdoc
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
= MiniExiftool
|
2
2
|
|
3
|
-
This library is wrapper for the
|
3
|
+
This library is a wrapper for the ExifTool command-line application
|
4
4
|
(http://www.sno.phy.queensu.ca/~phil/exiftool) written by Phil Harvey.
|
5
|
-
|
5
|
+
It provides the full power of ExifTool to Ruby: reading and writing of
|
6
|
+
EXIF-data, IPTC-data and XMP-data.
|
6
7
|
|
7
8
|
== Requirements
|
8
9
|
|
9
|
-
Ruby 1.9 or higher and an installation of the
|
10
|
+
Ruby 1.9 or higher and an installation of the ExifTool
|
10
11
|
command-line application at least version 7.65.
|
11
12
|
If you run on Ruby 1.8 or with a prior exiftool version
|
12
13
|
install mini_exiftool version 1.x.x.
|
@@ -14,13 +15,13 @@ Instructions for installation you can find under
|
|
14
15
|
http://www.sno.phy.queensu.ca/~phil/exiftool/install.html .
|
15
16
|
|
16
17
|
Alternatively Wil Gieseler has bundled a meta-gem that eliminates the
|
17
|
-
need for a separate
|
18
|
+
need for a separate ExifTool installation. Have a look at
|
18
19
|
http://github.com/wilg/mini_exiftool_vendored or
|
19
20
|
http://rubygems.org/gems/mini_exiftool_vendored .
|
20
21
|
|
21
22
|
== Installation
|
22
23
|
|
23
|
-
First you need
|
24
|
+
First you need ExifTool (see under Requirements above). Then you can simply
|
24
25
|
install the gem with
|
25
26
|
gem install mini_exiftool
|
26
27
|
|
@@ -122,9 +123,7 @@ This problem you can solve with the option replace_invalid_chars:
|
|
122
123
|
|
123
124
|
== Contribution
|
124
125
|
|
125
|
-
The code is hosted in a git repository on
|
126
|
-
http://gitorious.org/mini_exiftool
|
127
|
-
and github at
|
126
|
+
The code is hosted in a git repository on github at
|
128
127
|
https://github.com/janfri/mini_exiftool
|
129
128
|
feel free to contribute!
|
130
129
|
|
data/Rakefile
CHANGED
@@ -10,8 +10,8 @@ Rim.setup do |p|
|
|
10
10
|
p.version = MiniExiftool::VERSION
|
11
11
|
p.authors = 'Jan Friedrich'
|
12
12
|
p.email = 'janfri26@gmail.com'
|
13
|
-
p.summary = 'This library is wrapper for the
|
14
|
-
p.homepage = '
|
13
|
+
p.summary = 'This library is wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).'
|
14
|
+
p.homepage = 'https://github.com/janfri/mini_exiftool'
|
15
15
|
p.license = 'LGPL-2.1'
|
16
16
|
p.gem_files << 'Tutorial.rdoc'
|
17
17
|
p.gem_files += FileList.new('examples/**')
|
data/Tutorial.rdoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
== Installation
|
5
5
|
|
6
|
-
* Installing the
|
6
|
+
* Installing the ExifTool command-line application from Phil Harvey
|
7
7
|
(see http://www.sno.phy.queensu.ca/~phil/exiftool/install.html)
|
8
8
|
* Installing the Ruby library (<code>gem install mini_exiftool</code>)
|
9
9
|
|
@@ -66,7 +66,7 @@ method:
|
|
66
66
|
|
67
67
|
=== Using options
|
68
68
|
|
69
|
-
The
|
69
|
+
The ExifTool command-line application has an option (-n) to get values
|
70
70
|
as numbers if possible, in MiniExiftool you can do this with setting
|
71
71
|
the <code>:numerical</code> option to +true+ while generating a new
|
72
72
|
instance with new or using the <code>numerical=</code>-method
|
data/lib/mini_exiftool.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# MiniExiftool
|
4
4
|
#
|
5
|
-
# This library is wrapper for the
|
5
|
+
# This library is wrapper for the ExifTool command-line
|
6
6
|
# application (http://www.sno.phy.queensu.ca/~phil/exiftool/)
|
7
7
|
# written by Phil Harvey.
|
8
8
|
# Read and write access is done in a clean OO manner.
|
@@ -23,12 +23,12 @@ require 'set'
|
|
23
23
|
require 'tempfile'
|
24
24
|
require 'time'
|
25
25
|
|
26
|
-
# Simple OO access to the
|
26
|
+
# Simple OO access to the ExifTool command-line application.
|
27
27
|
class MiniExiftool
|
28
28
|
|
29
|
-
VERSION = '2.7.
|
29
|
+
VERSION = '2.7.3'
|
30
30
|
|
31
|
-
# Name of the
|
31
|
+
# Name of the ExifTool command-line application
|
32
32
|
@@cmd = 'exiftool'
|
33
33
|
|
34
34
|
# Hash of the standard options used when call MiniExiftool.new
|
@@ -307,12 +307,12 @@ class MiniExiftool
|
|
307
307
|
MiniExiftool.from_hash YAML.load(yaml), opts
|
308
308
|
end
|
309
309
|
|
310
|
-
# Returns the command name of the called
|
310
|
+
# Returns the command name of the called ExifTool application.
|
311
311
|
def self.command
|
312
312
|
@@cmd
|
313
313
|
end
|
314
314
|
|
315
|
-
# Setting the command name of the called
|
315
|
+
# Setting the command name of the called ExifTool application.
|
316
316
|
def self.command= cmd
|
317
317
|
@@cmd = cmd
|
318
318
|
end
|
@@ -322,7 +322,7 @@ class MiniExiftool
|
|
322
322
|
@@opts
|
323
323
|
end
|
324
324
|
|
325
|
-
# Returns a set of all known tags of
|
325
|
+
# Returns a set of all known tags of ExifTool.
|
326
326
|
def self.all_tags
|
327
327
|
unless defined? @@all_tags
|
328
328
|
@@all_tags = pstore_get :all_tags
|
@@ -330,7 +330,7 @@ class MiniExiftool
|
|
330
330
|
@@all_tags
|
331
331
|
end
|
332
332
|
|
333
|
-
# Returns a set of all possible writable tags of
|
333
|
+
# Returns a set of all possible writable tags of ExifTool.
|
334
334
|
def self.writable_tags
|
335
335
|
unless defined? @@writable_tags
|
336
336
|
@@writable_tags = pstore_get :writable_tags
|
@@ -338,7 +338,7 @@ class MiniExiftool
|
|
338
338
|
@@writable_tags
|
339
339
|
end
|
340
340
|
|
341
|
-
# Returns the original
|
341
|
+
# Returns the original ExifTool name of the given tag
|
342
342
|
def self.original_tag tag
|
343
343
|
unless defined? @@all_tags_map
|
344
344
|
@@all_tags_map = pstore_get :all_tags_map
|
@@ -346,7 +346,7 @@ class MiniExiftool
|
|
346
346
|
@@all_tags_map[tag]
|
347
347
|
end
|
348
348
|
|
349
|
-
# Returns the version of the
|
349
|
+
# Returns the version of the ExifTool command-line application.
|
350
350
|
def self.exiftool_version
|
351
351
|
Open3.popen3 "#{MiniExiftool.command} -ver" do |_inp, out, _err, _thr|
|
352
352
|
out.read.chomp!
|
data/test/data/INFORMATION
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_exiftool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Friedrich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rim
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.7'
|
27
27
|
description: ''
|
28
28
|
email: janfri26@gmail.com
|
29
29
|
executables: []
|
@@ -71,7 +71,7 @@ files:
|
|
71
71
|
- test/test_special.rb
|
72
72
|
- test/test_special_dates.rb
|
73
73
|
- test/test_write.rb
|
74
|
-
homepage:
|
74
|
+
homepage: https://github.com/janfri/mini_exiftool
|
75
75
|
licenses:
|
76
76
|
- LGPL-2.1
|
77
77
|
metadata: {}
|
@@ -98,8 +98,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.6.
|
101
|
+
rubygems_version: 2.6.4
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
|
-
summary: This library is wrapper for the
|
104
|
+
summary: This library is wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
|
105
105
|
test_files: []
|
106
|
+
has_rdoc:
|