mini_exiftool 1.4.2 → 1.4.4
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.
- data/Changelog +7 -0
- data/lib/mini_exiftool.rb +2 -2
- data/mini_exiftool.gemspec +3 -3
- data/test/test_write.rb +22 -0
- metadata +33 -26
data/Changelog
CHANGED
data/lib/mini_exiftool.rb
CHANGED
@@ -32,7 +32,7 @@ class MiniExiftool
|
|
32
32
|
attr_reader :filename
|
33
33
|
attr_accessor :numerical, :composite, :convert_encoding, :errors, :timestamps
|
34
34
|
|
35
|
-
VERSION = '1.4.
|
35
|
+
VERSION = '1.4.4'
|
36
36
|
|
37
37
|
# +opts+ support at the moment
|
38
38
|
# * <code>:numerical</code> for numerical values, default is +false+
|
@@ -154,7 +154,7 @@ class MiniExiftool
|
|
154
154
|
arr_val.map! {|e| convert e}
|
155
155
|
tag_params = ''
|
156
156
|
arr_val.each do |v|
|
157
|
-
tag_params << %Q(-#{original_tag}
|
157
|
+
tag_params << %Q(-#{original_tag}=#{Shellwords.escape(v.to_s)} )
|
158
158
|
end
|
159
159
|
opt_params = ''
|
160
160
|
opt_params << (arr_val.detect {|x| x.kind_of?(Numeric)} ? '-n ' : '')
|
data/mini_exiftool.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "mini_exiftool"
|
5
|
-
s.version = "1.4.
|
5
|
+
s.version = "1.4.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jan Friedrich"]
|
9
|
-
s.date = "2012-
|
9
|
+
s.date = "2012-05-31"
|
10
10
|
s.description = "This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool)."
|
11
11
|
s.email = "janfri26@gmail.com"
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "Tutorial.rdoc", "lib/mini_exiftool.rb"]
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Mini_exiftool", "--main", "README.rdoc"]
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
s.rubyforge_project = "mini_exiftool"
|
19
|
-
s.rubygems_version = "1.8.
|
19
|
+
s.rubygems_version = "1.8.24"
|
20
20
|
s.summary = "This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool)."
|
21
21
|
s.test_files = ["test/helpers_for_test.rb", "test/test_class_methods.rb", "test/test_composite.rb", "test/test_dumping.rb", "test/test_read.rb", "test/test_read_numerical.rb", "test/test_save.rb", "test/test_special.rb", "test/test_special_dates.rb", "test/test_write.rb"]
|
22
22
|
|
data/test/test_write.rb
CHANGED
@@ -55,6 +55,28 @@ class TestWrite < TestCase
|
|
55
55
|
assert_equal true, @mini_exiftool_num.changed?
|
56
56
|
end
|
57
57
|
|
58
|
+
# Catching rubyforge bug [#29596]
|
59
|
+
# Thanks to Michael Grove for reporting
|
60
|
+
# Part 1
|
61
|
+
def test_quotes_in_values
|
62
|
+
caption = "\"String in quotes\""
|
63
|
+
@mini_exiftool.caption = caption
|
64
|
+
assert_equal true, @mini_exiftool.save, 'Saving error'
|
65
|
+
@mini_exiftool.reload
|
66
|
+
assert_equal caption, @mini_exiftool.caption
|
67
|
+
end
|
68
|
+
|
69
|
+
# Catching rubyforge bug [#29596]
|
70
|
+
# Thanks to Michael Grove for reporting
|
71
|
+
# Part 2
|
72
|
+
def test_quotes_and_apostrophe_in_values
|
73
|
+
caption = caption = "\"Watch your step, it's slippery.\""
|
74
|
+
@mini_exiftool.caption = caption
|
75
|
+
assert_equal true, @mini_exiftool.save, 'Saving error'
|
76
|
+
@mini_exiftool.reload
|
77
|
+
assert_equal caption, @mini_exiftool.caption
|
78
|
+
end
|
79
|
+
|
58
80
|
def test_time_conversion
|
59
81
|
t = Time.now
|
60
82
|
@mini_exiftool_num['DateTimeOriginal'] = t
|
metadata
CHANGED
@@ -1,25 +1,29 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_exiftool
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.2
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 1.4.4
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Jan Friedrich
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
12
|
+
|
13
|
+
date: 2012-05-31 00:00:00 Z
|
13
14
|
dependencies: []
|
15
|
+
|
14
16
|
description: This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
|
15
17
|
email: janfri26@gmail.com
|
16
18
|
executables: []
|
19
|
+
|
17
20
|
extensions: []
|
18
|
-
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
19
23
|
- README.rdoc
|
20
24
|
- Tutorial.rdoc
|
21
25
|
- lib/mini_exiftool.rb
|
22
|
-
files:
|
26
|
+
files:
|
23
27
|
- COPYING
|
24
28
|
- Changelog
|
25
29
|
- Manifest
|
@@ -50,39 +54,42 @@ files:
|
|
50
54
|
- mini_exiftool.gemspec
|
51
55
|
homepage: http://gitorious.org/mini_exiftool
|
52
56
|
licenses: []
|
53
|
-
|
54
|
-
|
55
|
-
\
|
56
|
-
|
57
|
-
\ "
|
58
|
-
|
57
|
+
|
58
|
+
post_install_message: "\n\
|
59
|
+
+-----------------------------------------------------------------------+\n\
|
60
|
+
| Please ensure you have installed exiftool and it's found in your PATH |\n\
|
61
|
+
| (Try \"exiftool -ver\" on your commandline). For more details see |\n\
|
62
|
+
| http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |\n\
|
63
|
+
+-----------------------------------------------------------------------+\n "
|
64
|
+
rdoc_options:
|
59
65
|
- --line-numbers
|
60
66
|
- --inline-source
|
61
67
|
- --title
|
62
68
|
- Mini_exiftool
|
63
69
|
- --main
|
64
70
|
- README.rdoc
|
65
|
-
require_paths:
|
71
|
+
require_paths:
|
66
72
|
- lib
|
67
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
74
|
none: false
|
69
|
-
requirements:
|
70
|
-
- -
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version:
|
73
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
80
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: "1.2"
|
79
85
|
requirements: []
|
86
|
+
|
80
87
|
rubyforge_project: mini_exiftool
|
81
|
-
rubygems_version: 1.8.
|
88
|
+
rubygems_version: 1.8.24
|
82
89
|
signing_key:
|
83
90
|
specification_version: 3
|
84
91
|
summary: This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
|
85
|
-
test_files:
|
92
|
+
test_files:
|
86
93
|
- test/helpers_for_test.rb
|
87
94
|
- test/test_class_methods.rb
|
88
95
|
- test/test_composite.rb
|