multi_exiftool 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd741617a5960dbb28faec9b1a00afc154d4ca92
4
- data.tar.gz: 921f1b5e90a5b96136b1d01258e11a987cf58c68
3
+ metadata.gz: 336f2936dab3e01ed677d0ebd9f6584ec23c3f43
4
+ data.tar.gz: f5fe22977414dbfb347fa630502e6f2f3efca0f9
5
5
  SHA512:
6
- metadata.gz: b91e5ffb1bafecfea00f64ab9a7da6b3b5c32cd0e53c3df6d7454c02344a48f01925adf726538624b81138b04ce46008621c29966783ed22a7493015872da722
7
- data.tar.gz: dca2c26b34899abe402f88c841555f70ffaeba51bf507a203146746053fc324f25607baf22cf0b26f5c319a27cd3f2e9eb032e8c634eb07ecec88d10f47cb4be
6
+ metadata.gz: b0e6c188bb957da09426ce4ca7d76376a6cdbcc2e1419d2acb4450a0dfe22cfacae0f025ef8942384d3bbebe1bc541e8580b21c05a79928f8f8a8bfc84cc15fd
7
+ data.tar.gz: 0e5c953e9da646a239ea2537e67d4d0215d4f320ec609071329bfbda5041ca896a6ead151f14e43d2c4f2df269755e234aa1999afebf796ba4e3ec442b24c779
@@ -0,0 +1,27 @@
1
+ personal_ws-1.1 en 26
2
+ UTC
3
+ janfri
4
+ multi
5
+ MultiExiftool
6
+ MERCHANTABILITY
7
+ api
8
+ Gemfile
9
+ sublicense
10
+ tmpdir
11
+ exiftool
12
+ ExifTool
13
+ gmail
14
+ ok
15
+ timestamps
16
+ jpg
17
+ refactoring
18
+ NONINFRINGEMENT
19
+ Gitorious
20
+ gemspec
21
+ Friedrich
22
+ filenames
23
+ README
24
+ stdin
25
+ Coenen
26
+ stderr
27
+ gittycat
data/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ 0.7.0
2
+ Use Dir.tmpdir instead of test/temp for tests which manipulates images.
3
+ Update to rim 2.15.
4
+ Adapt development dependencies.
5
+
1
6
  0.6.1
2
7
  Upgrade to rim version 2.10.0 to unfreeze gemspec.
3
8
 
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Rakefile CHANGED
@@ -1,11 +1,10 @@
1
1
  require 'rim/tire'
2
- require 'rim/aspell'
3
2
  require 'rim/version'
4
- require 'regtest/task'
3
+ require 'rim/regtest'
5
4
 
6
5
  Rim.setup do |p|
7
6
  p.name = 'multi_exiftool'
8
- p.version = '0.6.1'
7
+ p.version = '0.7.0'
9
8
  p.authors = 'Jan Friedrich'
10
9
  p.email = 'janfri26@gmail.com'
11
10
  p.summary = 'This library is a wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).'
@@ -21,7 +20,8 @@ Rim.setup do |p|
21
20
  | http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |
22
21
  +-----------------------------------------------------------------------+
23
22
  }
24
- p.development_dependencies << 'contest' << 'regtest'
23
+ p.development_dependencies << %w(contest ~>0.1)
24
+ p.development_dependencies << 'test-unit'
25
25
  p.requirements << 'exiftool, version 7.65 or higher'
26
26
  p.test_warning = false
27
27
  end
@@ -0,0 +1,50 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: multi_exiftool 0.7.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 = "multi_exiftool"
10
+ s.version = "0.7.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 = "2017-09-19"
16
+ s.description = "This library a is wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool) written by Phil Harvey. It is designed for dealing with multiple files at once by creating commands to call exiftool with various arguments, call it and parsing the results."
17
+ s.email = "janfri26@gmail.com"
18
+ s.files = ["./.aspell.pws", "Changelog", "Gemfile", "LICENSE", "README.md", "Rakefile", "lib/multi_exiftool", "lib/multi_exiftool.rb", "lib/multi_exiftool/executable.rb", "lib/multi_exiftool/reader.rb", "lib/multi_exiftool/values.rb", "lib/multi_exiftool/writer.rb", "multi_exiftool.gemspec", "regtest/read_all_tags.rb", "regtest/read_all_tags.yml", "test/data", "test/data/a.jpg", "test/data/b.jpg", "test/data/c.jpg", "test/helper.rb", "test/test_executable.rb", "test/test_exiftool_stuff.rb", "test/test_functional_api.rb", "test/test_reader.rb", "test/test_values.rb", "test/test_values_using_groups.rb", "test/test_writer.rb", "test/test_writer_groups.rb"]
19
+ s.homepage = "https://github.com/janfri/multi_exiftool"
20
+ s.licenses = ["MIT"]
21
+ s.post_install_message = "\n+-----------------------------------------------------------------------+\n| Please ensure you have installed exiftool version 7.65 or higher and |\n| it's found in your PATH (Try \"exiftool -ver\" on your commandline). |\n| For more details see |\n| http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |\n+-----------------------------------------------------------------------+\n "
22
+ s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
23
+ s.requirements = ["exiftool, version 7.65 or higher"]
24
+ s.rubygems_version = "2.6.13"
25
+ s.summary = "This library is a wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool)."
26
+
27
+ if s.respond_to? :specification_version then
28
+ s.specification_version = 4
29
+
30
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
31
+ s.add_development_dependency(%q<rake>, [">= 0"])
32
+ s.add_development_dependency(%q<rim>, ["~> 2.15"])
33
+ s.add_development_dependency(%q<contest>, ["~> 0.1"])
34
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
35
+ s.add_development_dependency(%q<regtest>, ["~> 1.0"])
36
+ else
37
+ s.add_dependency(%q<rake>, [">= 0"])
38
+ s.add_dependency(%q<rim>, ["~> 2.15"])
39
+ s.add_dependency(%q<contest>, ["~> 0.1"])
40
+ s.add_dependency(%q<test-unit>, [">= 0"])
41
+ s.add_dependency(%q<regtest>, ["~> 1.0"])
42
+ end
43
+ else
44
+ s.add_dependency(%q<rake>, [">= 0"])
45
+ s.add_dependency(%q<rim>, ["~> 2.15"])
46
+ s.add_dependency(%q<contest>, ["~> 0.1"])
47
+ s.add_dependency(%q<test-unit>, [">= 0"])
48
+ s.add_dependency(%q<regtest>, ["~> 1.0"])
49
+ end
50
+ end
@@ -0,0 +1,8 @@
1
+ require 'regtest'
2
+ require 'multi_exiftool'
3
+
4
+ include Regtest
5
+
6
+ sample 'read all tags' do
7
+ MultiExiftool.read('regtest/test.jpg', tags: %w(-filemodifydate -fileaccessdate -fileinodechangedate -filepermissions))
8
+ end
@@ -0,0 +1,112 @@
1
+ ---
2
+ sample: read all tags
3
+ result:
4
+ - - !ruby/object:MultiExiftool::Values
5
+ values:
6
+ sourcefile: regtest/test.jpg
7
+ exiftoolversion: 10.55
8
+ filename: test.jpg
9
+ directory: regtest
10
+ filesize: 43 kB
11
+ filetype: JPEG
12
+ filetypeextension: jpg
13
+ mimetype: image/jpeg
14
+ jfifversion: 1.01
15
+ exifbyteorder: Big-endian (Motorola, MM)
16
+ imagedescription: KONICA MINOLTA DIGITAL CAMERA
17
+ make: KONICA MINOLTA
18
+ model: DYNAX 7D
19
+ orientation: Horizontal (normal)
20
+ xresolution: 72
21
+ yresolution: 72
22
+ resolutionunit: inches
23
+ software: DYNAX 7D v1.10
24
+ modifydate: 2005:09:13 20:08:50
25
+ ycbcrpositioning: Centered
26
+ exposuretime: 1/60
27
+ fnumber: 9.5
28
+ exposureprogram: Program AE
29
+ iso: 400
30
+ exifversion: '0221'
31
+ datetimeoriginal: 2005:09:13 20:08:50
32
+ createdate: 2005:09:13 20:08:50
33
+ componentsconfiguration: Y, Cb, Cr, -
34
+ brightnessvalue: 4.5
35
+ exposurecompensation: -1
36
+ maxaperturevalue: 4.5
37
+ meteringmode: Multi-segment
38
+ lightsource: Unknown
39
+ flash: Off, Did not fire
40
+ focallength: 75.0 mm
41
+ subjectarea: 1504 1000 256 304
42
+ makernoteversion: MLT0
43
+ minoltaimagesize: Large
44
+ whitebalance: Auto
45
+ focusmode: AF-A
46
+ afpoints: Center
47
+ flashmode: Normal
48
+ isosetting: 400
49
+ freememorycardimages: 202
50
+ hueadjustment: 0
51
+ rotation: Horizontal (normal)
52
+ imagenumber: 6
53
+ noisereduction: Unknown (2)
54
+ imagenumber2: 50
55
+ zonematchingon: 'Off'
56
+ compressedimagesize: 1598477
57
+ previewimagestart: 39146
58
+ previewimagelength: 0
59
+ scenemode: Standard
60
+ colormode: Natural sRGB
61
+ minoltaquality: Fine
62
+ flashexposurecomp: 0
63
+ teleconverter: None
64
+ imagestabilization: 'On'
65
+ zonematching: ISO Setting Used
66
+ colortemperature: 0
67
+ lenstype: Minolta AF 28-135mm F4-4.5 or Sigma Lens
68
+ usercomment: ''
69
+ flashpixversion: '0100'
70
+ colorspace: sRGB
71
+ exifimagewidth: 3008
72
+ exifimageheight: 2000
73
+ customrendered: Normal
74
+ exposuremode: Auto
75
+ digitalzoomratio: 0
76
+ focallengthin35mmformat: 112 mm
77
+ scenecapturetype: Standard
78
+ gaincontrol: Low gain up
79
+ contrast: Normal
80
+ saturation: Normal
81
+ sharpness: Normal
82
+ printimversion: '0300'
83
+ compression: JPEG (old-style)
84
+ thumbnailoffset: 39268
85
+ thumbnaillength: 1820
86
+ currentiptcdigest: e5ef1faceaa3d410961c63ab090136c7
87
+ applicationrecordversion: 4
88
+ supplementalcategories: Natur
89
+ keywords:
90
+ - Orange
91
+ - Rot
92
+ xmptoolkit: Image::ExifTool 9.45
93
+ title: Abenddämmerung
94
+ imagewidth: 1
95
+ imageheight: 1
96
+ encodingprocess: Baseline DCT, Huffman coding
97
+ bitspersample: 8
98
+ colorcomponents: 3
99
+ ycbcrsubsampling: YCbCr4:2:0 (2 2)
100
+ aperture: 9.5
101
+ imagesize: 1x1
102
+ lensid: Minolta AF 28-135mm F4-4.5
103
+ megapixels: 1.0e-06
104
+ scalefactor35efl: 1.5
105
+ shutterspeed: 1/60
106
+ thumbnailimage: "(Binary data 1820 bytes, use -b option to extract)"
107
+ circleofconfusion: 0.020 mm
108
+ fov: 18.3 deg
109
+ focallength35efl: '75.0 mm (35 mm equivalent: 112.0 mm)'
110
+ hyperfocaldistance: 29.43 m
111
+ lightvalue: 10.4
112
+ - []
@@ -1,22 +1,20 @@
1
1
  # coding: utf-8
2
2
  require_relative '../lib/multi_exiftool'
3
+ require 'contest'
3
4
  require 'fileutils'
4
5
  require 'test/unit'
5
- require 'contest'
6
+ require 'tmpdir'
6
7
 
7
8
  module TestHelper
8
9
 
9
10
  DATA_DIR = File.join(File.dirname(__FILE__), 'data')
10
- TEMP_DIR = File.join(File.dirname(__FILE__), 'temp')
11
-
12
- def prepare_temp_dir
13
- FileUtils.rm_rf TEMP_DIR
14
- FileUtils.cp_r DATA_DIR, TEMP_DIR
15
- end
16
11
 
17
12
  def run_in_temp_dir &block
18
- Dir.chdir TEMP_DIR do
19
- block.call
13
+ Dir.tmpdir do |tmpdir|
14
+ FileUtils.cp_r DATA_DIR, tmpdir
15
+ Dir.chdir tmpdir do
16
+ block.call
17
+ end
20
18
  end
21
19
  end
22
20
 
@@ -3,10 +3,6 @@ require_relative 'helper'
3
3
 
4
4
  class TestFunctionalApi < Test::Unit::TestCase
5
5
 
6
- setup do
7
- prepare_temp_dir
8
- end
9
-
10
6
  context 'reading' do
11
7
 
12
8
  setup do
metadata CHANGED
@@ -1,31 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Friedrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rim
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '2.10'
33
+ version: '2.15'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '2.10'
40
+ version: '2.15'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: contest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: test-unit
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - ">="
@@ -42,16 +70,16 @@ dependencies:
42
70
  name: regtest
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
- - - ">="
73
+ - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: '0'
75
+ version: '1.0'
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
- - - ">="
80
+ - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: '0'
82
+ version: '1.0'
55
83
  description: This library a is wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool)
56
84
  written by Phil Harvey. It is designed for dealing with multiple files at once by
57
85
  creating commands to call exiftool with various arguments, call it and parsing the
@@ -61,7 +89,9 @@ executables: []
61
89
  extensions: []
62
90
  extra_rdoc_files: []
63
91
  files:
92
+ - "./.aspell.pws"
64
93
  - Changelog
94
+ - Gemfile
65
95
  - LICENSE
66
96
  - README.md
67
97
  - Rakefile
@@ -70,16 +100,13 @@ files:
70
100
  - lib/multi_exiftool/reader.rb
71
101
  - lib/multi_exiftool/values.rb
72
102
  - lib/multi_exiftool/writer.rb
103
+ - multi_exiftool.gemspec
104
+ - regtest/read_all_tags.rb
105
+ - regtest/read_all_tags.yml
73
106
  - test/data/a.jpg
74
107
  - test/data/b.jpg
75
108
  - test/data/c.jpg
76
109
  - test/helper.rb
77
- - test/temp/a.jpg
78
- - test/temp/a.jpg_original
79
- - test/temp/b.jpg
80
- - test/temp/b.jpg_original
81
- - test/temp/c.jpg
82
- - test/temp/c.jpg_original
83
110
  - test/test_executable.rb
84
111
  - test/test_exiftool_stuff.rb
85
112
  - test/test_functional_api.rb
@@ -114,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
141
  requirements:
115
142
  - exiftool, version 7.65 or higher
116
143
  rubyforge_project:
117
- rubygems_version: 2.6.12
144
+ rubygems_version: 2.6.13
118
145
  signing_key:
119
146
  specification_version: 4
120
147
  summary: This library is a wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file