exiftool 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 12937b4e431406b861a459594de13410b8c7b03c
4
- data.tar.gz: e2c636aca26e31f6876dfbc6e574c9244f0f8caa
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ N2ZmZmRiYmQ2MWUyYzhhNWQwN2YxNDgxZjRmNzU2YTM0N2FiYzJjMw==
5
+ data.tar.gz: !binary |-
6
+ MWZkNDUxYmJiM2M4MTQ3ZWFiNmI4MWE1Y2UwNTA0MzNiMmZkZTcxNA==
5
7
  SHA512:
6
- metadata.gz: d2bcead73b7c226653ee6e26ac0ca7fdc3ee3134a1fa201add848326990d9e0cd18f6f32129592f6b08ef9a341edf09e53e4bf90d40259bb4a935069c2d05266
7
- data.tar.gz: b64e3ccaf8b113ff4a726baad753090e3151360a5e1777ffac44252f316e333e65744234c4282222edc06a4cb0c8538d733dc17dc50b2f2782e3a65f7c6cf171
8
+ metadata.gz: !binary |-
9
+ YjIwMTdhODJlYzgzZWIyZDQ4M2M3MTUyOTEzNGE0YjE1YjhiZTA2MjFjMjkz
10
+ NWUzNTgyZWRjMDIzYWZjMjdlZTM2NGE3ZTI2MGE4NGE1NGM3NTQxMzlhNDNj
11
+ M2UyMjc0Yzg1ZGI2MWUxYjdhOGZmMTY0NTVkODU2MTJlODZlNDY=
12
+ data.tar.gz: !binary |-
13
+ ZjRhMjExY2QzZGFkOThlM2NmMDUzNWE4MjlmNjYyYTNlYzBlYmNiNmFjNjgx
14
+ YjFjNmZjOTI0YjU5NzhmZmVlZGJkYjFhZjI2NmZkNzViOTcyMzIyZmRiMjUx
15
+ MzQyNGJmNDM2MWRlNDU4N2EzZmMyNDEyY2JkNmVjNGJjOTgwOGU=
@@ -39,10 +39,7 @@ class Exiftool
39
39
  def for_date
40
40
  if raw_value.is_a?(String) && display_key =~ /\bdate\b/i
41
41
  try_parse { Time.strptime(raw_value, '%Y:%m:%d %H:%M:%S%z') } ||
42
- try_parse { Time.strptime(raw_value, '%Y:%m:%d %H:%M:%S') } ||
43
- try_parse { Time.strptime(raw_value, '%Y:%m:%d %H:%M:%S.%L%z') } ||
44
- try_parse { Time.strptime(raw_value, '%Y:%m:%d %H:%M:%S.%L') } ||
45
- try_parse { Time.parse(raw_value) }
42
+ try_parse { Time.strptime(raw_value, '%Y:%m:%d %H:%M:%S.%L%z') }
46
43
  end
47
44
  end
48
45
 
@@ -2,15 +2,16 @@ require 'exiftool/parser'
2
2
 
3
3
  class Exiftool
4
4
  class Result
5
- attr_reader :to_hash, :to_display_hash, :symbol_display_hash
5
+ attr_reader :raw_hash, :to_hash, :to_display_hash, :symbol_display_hash
6
6
 
7
7
  def initialize(raw_hash)
8
- @raw_hash = raw_hash
8
+ @raw_hash = {}
9
9
  @to_hash = {}
10
10
  @to_display_hash = {}
11
11
  @symbol_display_hash = {}
12
- @raw_hash.each do |key, raw_value|
12
+ raw_hash.each do |key, raw_value|
13
13
  p = Parser.new(key, raw_value)
14
+ @raw_hash[p.sym_key] = raw_value
14
15
  @to_hash[p.sym_key] = p.value
15
16
  @to_display_hash[p.display_key] = p.value
16
17
  @symbol_display_hash[p.sym_key] = p.display_key
@@ -1,3 +1,3 @@
1
1
  class Exiftool
2
- VERSION = Gem::Version.new('0.3.1')
2
+ VERSION = Gem::Version.new('0.4.0')
3
3
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.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: 2013-11-29 00:00:00.000000000 Z
11
+ date: 2013-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: minitest-great_expectations
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: minitest-reporters
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Multiget ExifTool wrapper for ruby
@@ -129,18 +129,18 @@ require_paths:
129
129
  - lib
130
130
  required_ruby_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - '>='
132
+ - - ! '>='
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - '>='
137
+ - - ! '>='
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements:
141
141
  - ExifTool (see http://www.sno.phy.queensu.ca/~phil/exiftool/)
142
142
  rubyforge_project:
143
- rubygems_version: 2.0.2
143
+ rubygems_version: 2.1.10
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Multiget ExifTool wrapper for ruby