multi_exiftool 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -2
- data/lib/multi_exiftool/values.rb +1 -5
- data/multi_exiftool.gemspec +2 -2
- data/test/test_values.rb +8 -4
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
-
v0.1.
|
2
|
-
|
1
|
+
v0.1.2 Preserve time zone in time objects (don't convert to local zone).
|
2
|
+
Thanks to Bernard aka gittycat for the hint.
|
3
|
+
|
4
|
+
v0.1.1 Parsing timestamps without value for seconds. Thanks to gittycat for the hint.
|
5
|
+
|
3
6
|
v0.1.0 First public release.
|
@@ -43,11 +43,7 @@ module MultiExiftool
|
|
43
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
|
-
|
47
|
-
DateTime.new(*arr).to_time
|
48
|
-
else
|
49
|
-
Time.local(*arr)
|
50
|
-
end
|
46
|
+
Time.new(*arr)
|
51
47
|
when %r(^(\d+)/(\d+)$)
|
52
48
|
Rational($1, $2)
|
53
49
|
else
|
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.2"
|
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-08-
|
9
|
+
s.date = %q{2010-08-30}
|
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"]
|
data/test/test_values.rb
CHANGED
@@ -50,10 +50,14 @@ class TestValues < Test::Unit::TestCase
|
|
50
50
|
end
|
51
51
|
|
52
52
|
test 'Time object with given zone' do
|
53
|
-
time =
|
54
|
-
|
55
|
-
time
|
56
|
-
assert_equal
|
53
|
+
time = Time.new(2009,8,26,20,22,24,'+05:00')
|
54
|
+
values_time = @values['TimestampWithPositiveZone']
|
55
|
+
assert_equal time, values_time
|
56
|
+
assert_equal 5 * 3600, values_time.utc_offset
|
57
|
+
time = Time.new(2009,8,26,20,22,24,'-07:00')
|
58
|
+
values_time = @values['TimestampWithNegativeZone']
|
59
|
+
assert_equal time, values_time
|
60
|
+
assert_equal -7 * 3600, values_time.utc_offset
|
57
61
|
end
|
58
62
|
|
59
63
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jan Friedrich
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-30 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|