exiftool 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTRjNzEyZWQ4YWY0OTY1OGYzYWM2M2JhNTgyMjJmMGQ0NjE4YjNkMA==
4
+ ZjVlYjBlMzMxZDcwYTgxODkyYzBlNmM1NjczZDYyMDRkOGEzNGNkNA==
5
5
  data.tar.gz: !binary |-
6
- MDk0ZGNhMjk5NWRkMDM2ZTg3NWQxMWM1MmU0YmY2OTMzMDg2YTIxZA==
6
+ NWQ1NjliOTM4NTVlNDYwODBkMmIxNzQyN2EyMTNkZDkxNWNkMDlmZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWVhMzkzYmIyMjc3NDFhOWZmOTQ0MzJhOWNkMWFlZTJhNjI3OWNjN2YyNzFm
10
- OWEzOGUzNjg0NWIwNzc3Zjg3NGY2MTNkMmM1YTVhYzJjNTRiN2M3YjgxYzkz
11
- NjYzZmQ0OTEzNDE5ZjlmOGIwZmRiOTI3ZmZmMTkwOTg4NTUyYjk=
9
+ M2FhZmFhY2MwYzg3YzU5Y2MyYWFkNGU5NzdiZjQ1YjJlODRmMzc3Y2QxMWIw
10
+ NmIxM2JkMjE4NTcwMzg5MjY3YmYzNjdlZjMzMWJjODc5NGZhY2NlMjJlNDUw
11
+ NDY1M2JiYmM3YWE5NjE0MGFjODc2ZjUzMGFmNTU1ODFhMTlkNDY=
12
12
  data.tar.gz: !binary |-
13
- NTMyMzI1ODA1MDY1ZmQ1NmVlM2FmYTA3ZTI5ZWRkZjVjOWQwZDEwMGQ0MGIw
14
- OTEyNTRjZmE0NTM5OGEwZDRkZjg1Mjg3M2ZhNGJhYjA1MzlmZGYwNjc0MmY3
15
- MjYzODlhNzZiNmJiYmI0NzIyMjhiZGMyOWE5N2I3OWQzZGFiYTg=
13
+ MDdiMTAxNWI5YjkwZWZmYjViOTQwNWNjODlhNDI1ZGIwZTUyYzZiYmRhMGRj
14
+ YzAwMTkwMDFmOWU4ZDAxMTU3NjNiNWIyZDYyNTI4ZTg5ZmMxYjZlMWFlNzQ1
15
+ OWUxYjdhNzgyY2ZiODczZGNiYTc2MmJkNjJiNzExODJjNjk0M2M=
@@ -27,10 +27,10 @@ class Exiftool
27
27
 
28
28
  YMD_RE = /\A(\d{4}):(\d{2}):(\d{2})\b/
29
29
 
30
- def ymd_value
30
+ def civil_date
31
31
  if datish?
32
32
  ymd = raw_value.scan(YMD_RE).first
33
- ymd.join.to_i if ymd
33
+ Date.civil(*ymd.map{|ea|ea.to_i}) if ymd
34
34
  end
35
35
  end
36
36
 
@@ -16,10 +16,10 @@ class Exiftool
16
16
  @to_display_hash[p.display_key] = p.value
17
17
  @sym2display[p.sym_key] = p.display_key
18
18
 
19
- ymd = p.ymd_value
20
- if ymd
21
- ymd_key = "#{p.sym_key}_ymd".to_sym
22
- @to_hash[ymd_key] = ymd
19
+ civil_date = p.civil_date
20
+ if civil_date
21
+ civil_date_key = "#{p.sym_key}_civil".to_sym
22
+ @to_hash[civil_date_key] = civil_date
23
23
  end
24
24
  end
25
25
  @display2sym = @sym2display.invert
@@ -1,3 +1,3 @@
1
1
  class Exiftool
2
- VERSION = Gem::Version.new('0.5.0')
2
+ VERSION = Gem::Version.new('0.6.0')
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew McEachen