mini_exiftool 1.3.0 → 1.3.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.
- data/Changelog +5 -0
- data/Manifest +0 -2
- data/Rakefile +8 -0
- data/lib/mini_exiftool.rb +1 -1
- data/mini_exiftool.gemspec +9 -9
- metadata +3 -8
- data/test/data/test 36/"Bench.jpg +0 -0
- data/test/test_escape_filename.rb +0 -25
data/Changelog
CHANGED
data/Manifest
CHANGED
@@ -12,14 +12,12 @@ lib/mini_exiftool.rb
|
|
12
12
|
setup.rb
|
13
13
|
test/data/Canon.jpg
|
14
14
|
test/data/INFORMATION
|
15
|
-
test/data/test 36"Bench.jpg
|
16
15
|
test/data/test.jpg
|
17
16
|
test/data/test_special_dates.jpg
|
18
17
|
test/helpers_for_test.rb
|
19
18
|
test/test_class_methods.rb
|
20
19
|
test/test_composite.rb
|
21
20
|
test/test_dumping.rb
|
22
|
-
test/test_escape_filename.rb
|
23
21
|
test/test_read.rb
|
24
22
|
test/test_read_numerical.rb
|
25
23
|
test/test_save.rb
|
data/Rakefile
CHANGED
@@ -14,4 +14,12 @@ Echoe.new('mini_exiftool') do |p|
|
|
14
14
|
| http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |
|
15
15
|
+-----------------------------------------------------------------------+
|
16
16
|
}
|
17
|
+
p.changelog = 'Changelog'
|
18
|
+
task :prerelease do
|
19
|
+
require "#{File.dirname(__FILE__)}/lib/mini_exiftool"
|
20
|
+
unless p.version == MiniExiftool::VERSION
|
21
|
+
$stderr.puts "Version conflict: Release version is #{p.version} but MiniExiftool::VERSION is #{MiniExiftool::VERSION}."
|
22
|
+
exit(1)
|
23
|
+
end
|
24
|
+
end
|
17
25
|
end
|
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.3.
|
35
|
+
VERSION = '1.3.1'
|
36
36
|
|
37
37
|
# +opts+ support at the moment
|
38
38
|
# * <code>:numerical</code> for numerical values, default is +false+
|
data/mini_exiftool.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{mini_exiftool}
|
5
|
-
s.version = "1.3.
|
5
|
+
s.version = "1.3.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = [
|
9
|
-
s.date = %q{2011-
|
8
|
+
s.authors = [%q{Jan Friedrich}]
|
9
|
+
s.date = %q{2011-07-29}
|
10
10
|
s.description = %q{This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).}
|
11
11
|
s.email = %q{janfri26@gmail.com}
|
12
|
-
s.extra_rdoc_files = [
|
13
|
-
s.files = [
|
12
|
+
s.extra_rdoc_files = [%q{README}, %q{Tutorial}, %q{lib/mini_exiftool.rb}]
|
13
|
+
s.files = [%q{COPYING}, %q{Changelog}, %q{Manifest}, %q{README}, %q{Rakefile}, %q{TODO}, %q{Tutorial}, %q{examples/external_photo.rb}, %q{examples/print_portraits.rb}, %q{examples/shift_time.rb}, %q{lib/mini_exiftool.rb}, %q{setup.rb}, %q{test/data/Canon.jpg}, %q{test/data/INFORMATION}, %q{test/data/test.jpg}, %q{test/data/test_special_dates.jpg}, %q{test/helpers_for_test.rb}, %q{test/test_class_methods.rb}, %q{test/test_composite.rb}, %q{test/test_dumping.rb}, %q{test/test_read.rb}, %q{test/test_read_numerical.rb}, %q{test/test_save.rb}, %q{test/test_special.rb}, %q{test/test_special_dates.rb}, %q{test/test_write.rb}, %q{mini_exiftool.gemspec}]
|
14
14
|
s.homepage = %q{http://gitorious.org/mini_exiftool}
|
15
15
|
s.post_install_message = %q{
|
16
16
|
+-----------------------------------------------------------------------+
|
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
|
|
19
19
|
| http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |
|
20
20
|
+-----------------------------------------------------------------------+
|
21
21
|
}
|
22
|
-
s.rdoc_options = [
|
23
|
-
s.require_paths = [
|
22
|
+
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Mini_exiftool}, %q{--main}, %q{README}]
|
23
|
+
s.require_paths = [%q{lib}]
|
24
24
|
s.rubyforge_project = %q{mini_exiftool}
|
25
|
-
s.rubygems_version = %q{1.5
|
25
|
+
s.rubygems_version = %q{1.8.5}
|
26
26
|
s.summary = %q{This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).}
|
27
|
-
s.test_files = [
|
27
|
+
s.test_files = [%q{test/helpers_for_test.rb}, %q{test/test_class_methods.rb}, %q{test/test_composite.rb}, %q{test/test_dumping.rb}, %q{test/test_read.rb}, %q{test/test_read_numerical.rb}, %q{test/test_save.rb}, %q{test/test_special.rb}, %q{test/test_special_dates.rb}, %q{test/test_write.rb}]
|
28
28
|
|
29
29
|
if s.respond_to? :specification_version then
|
30
30
|
s.specification_version = 3
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mini_exiftool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jan Friedrich
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-07-29 00:00:00 Z
|
15
14
|
dependencies: []
|
16
15
|
|
17
16
|
description: This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
|
@@ -39,14 +38,12 @@ files:
|
|
39
38
|
- setup.rb
|
40
39
|
- test/data/Canon.jpg
|
41
40
|
- test/data/INFORMATION
|
42
|
-
- test/data/test 36"Bench.jpg
|
43
41
|
- test/data/test.jpg
|
44
42
|
- test/data/test_special_dates.jpg
|
45
43
|
- test/helpers_for_test.rb
|
46
44
|
- test/test_class_methods.rb
|
47
45
|
- test/test_composite.rb
|
48
46
|
- test/test_dumping.rb
|
49
|
-
- test/test_escape_filename.rb
|
50
47
|
- test/test_read.rb
|
51
48
|
- test/test_read_numerical.rb
|
52
49
|
- test/test_save.rb
|
@@ -54,7 +51,6 @@ files:
|
|
54
51
|
- test/test_special_dates.rb
|
55
52
|
- test/test_write.rb
|
56
53
|
- mini_exiftool.gemspec
|
57
|
-
has_rdoc: true
|
58
54
|
homepage: http://gitorious.org/mini_exiftool
|
59
55
|
licenses: []
|
60
56
|
|
@@ -88,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
84
|
requirements: []
|
89
85
|
|
90
86
|
rubyforge_project: mini_exiftool
|
91
|
-
rubygems_version: 1.5
|
87
|
+
rubygems_version: 1.8.5
|
92
88
|
signing_key:
|
93
89
|
specification_version: 3
|
94
90
|
summary: This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
|
@@ -97,7 +93,6 @@ test_files:
|
|
97
93
|
- test/test_class_methods.rb
|
98
94
|
- test/test_composite.rb
|
99
95
|
- test/test_dumping.rb
|
100
|
-
- test/test_escape_filename.rb
|
101
96
|
- test/test_read.rb
|
102
97
|
- test/test_read_numerical.rb
|
103
98
|
- test/test_save.rb
|
Binary file
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'helpers_for_test'
|
2
|
-
|
3
|
-
class TestEscapeFilename < TestCase
|
4
|
-
|
5
|
-
def setup
|
6
|
-
@temp_file = Tempfile.new('test')
|
7
|
-
@temp_file.close
|
8
|
-
@temp_filename = @temp_file.path
|
9
|
-
@org_filename = File.dirname(__FILE__) + '/data/test 36"Bench.jpg'
|
10
|
-
FileUtils.cp(@org_filename, @temp_filename)
|
11
|
-
@mini_exiftool = MiniExiftool.new @temp_filename
|
12
|
-
end
|
13
|
-
|
14
|
-
def test_access
|
15
|
-
assert_equal '36" Bench', @mini_exiftool['description']
|
16
|
-
end
|
17
|
-
|
18
|
-
def test_save
|
19
|
-
desc = 'another bench'
|
20
|
-
@mini_exiftool.description = desc
|
21
|
-
assert @mini_exiftool.save
|
22
|
-
assert_equal desc, @mini_exiftool.description
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|