multi_exiftool 0.14.1 → 0.15.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
  SHA256:
3
- metadata.gz: 3e6484209dcfcdb5631184ec92a13b055c55f6d016816c3249b13fe525d775a7
4
- data.tar.gz: a03cf397dc76f2349da703b808d774d7c666a4be0c86bded5217018558cc9ec8
3
+ metadata.gz: 236f2f5be5a4103a8905c579a85a2523791d4b6bd236af289cf53c7586967110
4
+ data.tar.gz: b7a35f9d1e1a1ff57caa7c7cde2fa755c172de1adda370b32d0366aa5773fca1
5
5
  SHA512:
6
- metadata.gz: 00ca0c2837993636fc8928cee6208d47f4182da0a5a6b7e2f43a9c3946bd3252126b3b637808fe2bafd081b0d820ed3a55a895a9063393d55b7a73d9f7784cb6
7
- data.tar.gz: c7844d2906d0025943400b808cbb84bec8928598cc4fa7b9fe2d653a298b11639d12b1f3b2ecdb008791c6cfaac492018a834a385ac93fa2b8a21655d79b9f4c
6
+ metadata.gz: 51ae8b277fa51b9ea641c71853865cf70b0dbe183578d661c4c675a7e0d3e24e036fc935cf4fb8b79e49c41dc3eb66355ea723c6aee37a51c982432659143284
7
+ data.tar.gz: 1428eda5460565349969249fae6174a7e13e873f35ab3e412ca39509ebe261af18a599a2410978d8e35f5b67fa5f66bb9e8a294baa44bd3559d551de2628997f
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 0.15.0
2
+ Make multi_exiftool work with Ruby 1.9 again.
3
+
1
4
  0.14.1
2
5
  Fix two typos.
3
6
 
@@ -8,7 +8,7 @@ require_relative 'multi_exiftool/batch'
8
8
 
9
9
  module MultiExiftool
10
10
 
11
- VERSION = '0.14.1'
11
+ VERSION = '0.15.0'
12
12
 
13
13
  @exiftool_command = 'exiftool'
14
14
 
@@ -60,7 +60,8 @@ module MultiExiftool
60
60
  # unless errors.empty?
61
61
  # # do error handling
62
62
  # end
63
- def delete_values filenames, tags: :all
63
+ def delete_values filenames, opts={}
64
+ tags = opts.fetch(:tags, :all)
64
65
  values = Array(tags).inject(Hash.new) {|h,tag| h[tag] = nil; h}
65
66
  write(filenames, values)
66
67
  end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: multi_exiftool 0.14.1 ruby lib
2
+ # stub: multi_exiftool 0.15.0 ruby lib
3
3
  #
4
4
  # This file is automatically generated by rim.
5
5
  # PLEASE DO NOT EDIT IT DIRECTLY!
@@ -7,12 +7,12 @@
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "multi_exiftool"
10
- s.version = "0.14.1"
10
+ s.version = "0.15.0"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
13
  s.require_paths = ["lib"]
14
14
  s.authors = ["Jan Friedrich"]
15
- s.date = "2020-03-19"
15
+ s.date = "2020-03-26"
16
16
  s.description = "This library is a wrapper for the ExifTool command-line application (https://exiftool.org) 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
17
  s.email = "janfri26@gmail.com"
18
18
  s.files = ["./.aspell.pws", "Changelog", "Gemfile", "LICENSE", "README.md", "Rakefile", "lib/multi_exiftool", "lib/multi_exiftool.rb", "lib/multi_exiftool/batch.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", "regtest/test.jpg", "test/data", "test/data/a.jpg", "test/data/b.jpg", "test/data/c.jpg", "test/helper.rb", "test/test_batch.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"]
@@ -21,25 +21,19 @@ Gem::Specification.new do |s|
21
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| https://exiftool.org/install.html |\n+-----------------------------------------------------------------------+\n "
22
22
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
23
23
  s.requirements = ["exiftool, version 7.65 or higher"]
24
- s.rubygems_version = "3.0.3"
24
+ s.rubygems_version = "3.1.2"
25
25
  s.summary = "This library is a wrapper for the ExifTool command-line application (https://exiftool.org)."
26
26
 
27
27
  if s.respond_to? :specification_version then
28
28
  s.specification_version = 4
29
+ end
29
30
 
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.17"])
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>, ["~> 2"])
36
- else
37
- s.add_dependency(%q<rake>, [">= 0"])
38
- s.add_dependency(%q<rim>, ["~> 2.17"])
39
- s.add_dependency(%q<contest>, ["~> 0.1"])
40
- s.add_dependency(%q<test-unit>, [">= 0"])
41
- s.add_dependency(%q<regtest>, ["~> 2"])
42
- end
31
+ if s.respond_to? :add_runtime_dependency then
32
+ s.add_development_dependency(%q<rake>, [">= 0"])
33
+ s.add_development_dependency(%q<rim>, ["~> 2.17"])
34
+ s.add_development_dependency(%q<contest>, ["~> 0.1"])
35
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
36
+ s.add_development_dependency(%q<regtest>, ["~> 2"])
43
37
  else
44
38
  s.add_dependency(%q<rake>, [">= 0"])
45
39
  s.add_dependency(%q<rim>, ["~> 2.17"])
@@ -137,19 +137,19 @@ class TestValues < Test::Unit::TestCase
137
137
 
138
138
  test 'different formats as string' do
139
139
  @hash.keys.each do |k|
140
- assert_true @values.has_tag? k
140
+ assert_equal true, @values.has_tag?(k)
141
141
  end
142
142
  end
143
143
 
144
144
  test 'different formats as symbol' do
145
145
  @hash.keys.each do |k|
146
- assert_true @values.has_tag? k.to_sym
146
+ assert_equal true, @values.has_tag?(k.to_sym)
147
147
  end
148
148
  end
149
149
 
150
150
  test 'non existent key' do
151
151
  ['iso', 'ISO', :iso, :ISO].each do |t|
152
- assert_false @values.has_tag? t
152
+ assert_equal false, @values.has_tag?(t)
153
153
  end
154
154
  end
155
155
  end
@@ -182,13 +182,13 @@ class TestValues < Test::Unit::TestCase
182
182
 
183
183
  test 'existing keys' do
184
184
  [:fnumber, :f_number, :FNumber, 'fnumber', 'f_number', 'FNumber', :author, :Author, 'author', 'Author'].each do |t|
185
- assert_true @values.respond_to? t
185
+ assert_equal true, @values.respond_to?(t)
186
186
  end
187
187
  end
188
188
 
189
189
  test 'non existing key' do
190
190
  ['iso', 'ISO', :iso, :ISO].each do |t|
191
- assert_false @values.respond_to? t
191
+ assert_equal false, @values.respond_to?(t)
192
192
  end
193
193
  end
194
194
 
metadata CHANGED
@@ -1,24 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.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: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
- prerelease: false
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
17
  - - ">="
19
18
  - !ruby/object:Gem::Version
20
19
  version: '0'
21
20
  type: :development
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
@@ -26,13 +26,13 @@ dependencies:
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rim
29
- prerelease: false
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
31
  - - "~>"
33
32
  - !ruby/object:Gem::Version
34
33
  version: '2.17'
35
34
  type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
@@ -40,13 +40,13 @@ dependencies:
40
40
  version: '2.17'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: contest
43
- prerelease: false
44
43
  requirement: !ruby/object:Gem::Requirement
45
44
  requirements:
46
45
  - - "~>"
47
46
  - !ruby/object:Gem::Version
48
47
  version: '0.1'
49
48
  type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
@@ -54,13 +54,13 @@ dependencies:
54
54
  version: '0.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: test-unit
57
- prerelease: false
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
59
  - - ">="
61
60
  - !ruby/object:Gem::Version
62
61
  version: '0'
63
62
  type: :development
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
@@ -68,13 +68,13 @@ dependencies:
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: regtest
71
- prerelease: false
72
71
  requirement: !ruby/object:Gem::Requirement
73
72
  requirements:
74
73
  - - "~>"
75
74
  - !ruby/object:Gem::Version
76
75
  version: '2'
77
76
  type: :development
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements:
145
145
  - exiftool, version 7.65 or higher
146
- rubygems_version: 3.0.3
146
+ rubygems_version: 3.1.2
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: This library is a wrapper for the ExifTool command-line application (https://exiftool.org).