multi_exiftool 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/multi_exiftool/values.rb +1 -1
- data/multi_exiftool.gemspec +4 -4
- data/test/test_values.rb +3 -0
- metadata +24 -9
data/CHANGELOG
CHANGED
@@ -40,7 +40,7 @@ module MultiExiftool
|
|
40
40
|
def parse_value val
|
41
41
|
return val unless val.kind_of?(String)
|
42
42
|
case val
|
43
|
-
when /^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d)
|
43
|
+
when /^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d)(?::(\d\d))?([-+]\d\d:\d\d)?$/
|
44
44
|
arr = $~.captures[0,6].map {|cap| cap.to_i}
|
45
45
|
arr << $7 if $7
|
46
46
|
if arr.size == 7
|
data/multi_exiftool.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{multi_exiftool}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
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 = %q{2010-
|
9
|
+
s.date = %q{2010-08-19}
|
10
10
|
s.description = %q{This library 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.}
|
11
11
|
s.email = %q{janfri26@gmail.com}
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/multi_exiftool.rb", "lib/multi_exiftool/executable.rb", "lib/multi_exiftool/reader.rb", "lib/multi_exiftool/values.rb", "lib/multi_exiftool/writer.rb"]
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
|
26
26
|
s.requirements = ["exiftool, version 7.65 or higher"]
|
27
27
|
s.rubyforge_project = %q{multi_exiftool}
|
28
|
-
s.rubygems_version = %q{1.3.
|
28
|
+
s.rubygems_version = %q{1.3.7}
|
29
29
|
s.summary = %q{This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).}
|
30
30
|
s.test_files = ["test/test_reader.rb", "test/test_values.rb", "test/test_values_using_groups.rb", "test/test_writer.rb"]
|
31
31
|
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
34
34
|
s.specification_version = 3
|
35
35
|
|
36
|
-
if Gem::Version.new(Gem::
|
36
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
37
37
|
s.add_development_dependency(%q<contest>, [">= 0"])
|
38
38
|
else
|
39
39
|
s.add_dependency(%q<contest>, [">= 0"])
|
data/test/test_values.rb
CHANGED
@@ -34,6 +34,7 @@ class TestValues < Test::Unit::TestCase
|
|
34
34
|
|
35
35
|
setup do
|
36
36
|
hash = {
|
37
|
+
'TimestampWithoutSeconds' => '2009:08:25 12:35',
|
37
38
|
'TimestampWithoutZone' => '2009:08:25 12:35:42',
|
38
39
|
'TimestampWithPositiveZone' => '2009:08:26 20:22:24+05:00',
|
39
40
|
'TimestampWithNegativeZone' => '2009:08:26 20:22:24-07:00'
|
@@ -42,6 +43,8 @@ class TestValues < Test::Unit::TestCase
|
|
42
43
|
end
|
43
44
|
|
44
45
|
test 'local Time object' do
|
46
|
+
time = Time.local(2009, 8, 25, 12, 35)
|
47
|
+
assert_equal time, @values['TimestampWithoutSeconds']
|
45
48
|
time = Time.local(2009, 8, 25, 12, 35, 42)
|
46
49
|
assert_equal time, @values['TimestampWithoutZone']
|
47
50
|
end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_exiftool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Jan Friedrich
|
@@ -9,19 +14,22 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-08-19 00:00:00 +02:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: contest
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
23
30
|
version: "0"
|
24
|
-
|
31
|
+
type: :development
|
32
|
+
version_requirements: *id001
|
25
33
|
description: This library 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.
|
26
34
|
email: janfri26@gmail.com
|
27
35
|
executables: []
|
@@ -78,21 +86,28 @@ rdoc_options:
|
|
78
86
|
require_paths:
|
79
87
|
- lib
|
80
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
81
90
|
requirements:
|
82
91
|
- - ">="
|
83
92
|
- !ruby/object:Gem::Version
|
93
|
+
segments:
|
94
|
+
- 1
|
95
|
+
- 9
|
96
|
+
- 1
|
84
97
|
version: 1.9.1
|
85
|
-
version:
|
86
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
87
100
|
requirements:
|
88
101
|
- - ">="
|
89
102
|
- !ruby/object:Gem::Version
|
103
|
+
segments:
|
104
|
+
- 1
|
105
|
+
- 2
|
90
106
|
version: "1.2"
|
91
|
-
version:
|
92
107
|
requirements:
|
93
108
|
- exiftool, version 7.65 or higher
|
94
109
|
rubyforge_project: multi_exiftool
|
95
|
-
rubygems_version: 1.3.
|
110
|
+
rubygems_version: 1.3.7
|
96
111
|
signing_key:
|
97
112
|
specification_version: 3
|
98
113
|
summary: This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
|