exiftool 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/exiftool/field_parser.rb +4 -1
- data/lib/exiftool/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88172c47e9bed4be79a3efa35b0c49602760aa10
|
4
|
+
data.tar.gz: 80410317cc58a83946b68e877e9b12793de6feb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa0c75251c561b2a9b04d055fc42c3c4a7f5cc1da99f1aa35cf7b880b256c61ffe6d4ba88cde63c7a9606b4810d865f8173553db0d3abd4289eec2c62a1959db
|
7
|
+
data.tar.gz: 902e20135f24829bdb90016b90aa4f4f4aee7ddbb3590f1b4949558fbaf0383320e3c2312284e3ee6d9a489ddb5dfdd18d3acd12a2d3e3f912f48b01a3e7a399
|
@@ -35,7 +35,10 @@ class Exiftool
|
|
35
35
|
def civil_date
|
36
36
|
if date? && !zero_date?
|
37
37
|
ymd = raw_value.scan(YMD_RE).first
|
38
|
-
|
38
|
+
if (ymd) then
|
39
|
+
ymd_a = ymd.map { |ea| ea.to_i }
|
40
|
+
Date.civil(*ymd_a) if Date.valid_civil?(*ymd_a)
|
41
|
+
end
|
39
42
|
end
|
40
43
|
end
|
41
44
|
|
data/lib/exiftool/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exiftool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew McEachen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -119,7 +119,7 @@ files:
|
|
119
119
|
- lib/exiftool/field_parser.rb
|
120
120
|
- lib/exiftool/result.rb
|
121
121
|
- lib/exiftool/version.rb
|
122
|
-
homepage: https://github.com/mceachen/
|
122
|
+
homepage: https://github.com/mceachen/exiftool.rb
|
123
123
|
licenses:
|
124
124
|
- MIT
|
125
125
|
metadata: {}
|