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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 662ac46f06c08dc68f2d08cd254bd844e4eada98
4
- data.tar.gz: a04bde8fb39533420976a13e36e9f5bcc8e103d4
3
+ metadata.gz: 88172c47e9bed4be79a3efa35b0c49602760aa10
4
+ data.tar.gz: 80410317cc58a83946b68e877e9b12793de6feb1
5
5
  SHA512:
6
- metadata.gz: a7464ad4c109423e0ead4e489d2946ab309cc82dd0a27db1dd3d190d5845178e05451d0db27fae9d7b30cf0841497b13e09e5d8438329d3d25b9facc9ab57976
7
- data.tar.gz: 9f8fcacbf90d0afaef7d3e10f110de59c551e5c01ba98830eb3a0864a3b0b9690fa7c03c520c51721c9bc4464fe77c842d7db3cad4aad5e51bd306767670b232
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
- Date.civil(*ymd.map { |ea| ea.to_i }) if ymd
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
 
@@ -1,3 +1,3 @@
1
1
  class Exiftool
2
- VERSION = Gem::Version.new('1.1.0')
2
+ VERSION = Gem::Version.new('1.2.0')
3
3
  end
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.1.0
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-02-08 00:00:00.000000000 Z
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/exiftoolr
122
+ homepage: https://github.com/mceachen/exiftool.rb
123
123
  licenses:
124
124
  - MIT
125
125
  metadata: {}