exifr 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/lib/exifr.rb +1 -1
- data/lib/exifr/jpeg.rb +1 -1
- data/lib/exifr/tiff.rb +6 -1
- data/tests/jpeg_test.rb +2 -2
- data/tests/test_helper.rb +1 -1
- data/tests/tiff_test.rb +2 -2
- metadata +14 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 875a312186a0f46c69201e260de535974566c112d4198f91c603c5a57112910d
|
4
|
+
data.tar.gz: 5735851e875b2a76f9bb73fb6a4556548fa1ae18ad8d0a0f5ed970648769054c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7b828732884dddb926221ae91ab87e5bee58fdd39a31b26beb1b794db1764661864d2b67844e2ca2e8b5d6b728464005602c927dd0d7fb652f7f57d5a87040c
|
7
|
+
data.tar.gz: 828884d3ff08fa3b1855a233fe31868516c31b9cf6f2487dd0db4274e2fb28e643c02b5df3ae0b247033f7cc2afc45e46aef6826ec1ba14fe294a644a9a8f549
|
data/Gemfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
source
|
1
|
+
source "https://rubygems.org"
|
2
2
|
gemspec
|
data/Rakefile
CHANGED
data/lib/exifr.rb
CHANGED
data/lib/exifr/jpeg.rb
CHANGED
data/lib/exifr/tiff.rb
CHANGED
@@ -384,7 +384,12 @@ module EXIFR
|
|
384
384
|
@jpeg_thumbnails = @ifds.map do |v|
|
385
385
|
if v.jpeg_interchange_format && v.jpeg_interchange_format_length
|
386
386
|
start, length = v.jpeg_interchange_format, v.jpeg_interchange_format_length
|
387
|
-
|
387
|
+
if Integer === start && Integer === length
|
388
|
+
data[start..(start + length)]
|
389
|
+
else
|
390
|
+
EXIFR.logger.warn("Non numeric JpegInterchangeFormat data")
|
391
|
+
nil
|
392
|
+
end
|
388
393
|
end
|
389
394
|
end.compact
|
390
395
|
end
|
data/tests/jpeg_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (c) 2006-
|
3
|
+
# Copyright (c) 2006-2020 - R.W. van 't Veer
|
4
4
|
|
5
5
|
require 'test_helper'
|
6
6
|
|
@@ -107,7 +107,7 @@ class JPEGTest < TestCase
|
|
107
107
|
j = JPEG.new(f('exif.jpg'))
|
108
108
|
assert j.methods.include?(:date_time)
|
109
109
|
assert j.methods(true).include?(:date_time)
|
110
|
-
|
110
|
+
assert ! j.methods(false).include?(:date_time)
|
111
111
|
end
|
112
112
|
|
113
113
|
def test_multiple_app1
|
data/tests/test_helper.rb
CHANGED
data/tests/tiff_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (c) 2006-
|
3
|
+
# Copyright (c) 2006-2020 - R.W. van 't Veer
|
4
4
|
|
5
5
|
require 'test_helper'
|
6
6
|
|
@@ -204,6 +204,6 @@ class TIFFTest < TestCase
|
|
204
204
|
t = TIFF.new(f('gopro_hd2.exif'))
|
205
205
|
assert t.methods.include?(:make)
|
206
206
|
assert t.methods(true).include?(:make)
|
207
|
-
|
207
|
+
assert ! t.methods(false).include?(:make)
|
208
208
|
end
|
209
209
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exifr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R.W. van 't Veer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12'
|
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
|
-
version: '
|
40
|
+
version: '12'
|
41
41
|
description: EXIF Reader is a module to read EXIF from JPEG and TIFF images.
|
42
42
|
email: exifr@remworks.net
|
43
43
|
executables:
|
@@ -81,8 +81,13 @@ files:
|
|
81
81
|
homepage: http://github.com/remvee/exifr/
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
|
-
metadata:
|
85
|
-
|
84
|
+
metadata:
|
85
|
+
bug_tracker_uri: https://github.com/remvee/exifr/issues
|
86
|
+
changelog_uri: https://github.com/remvee/exifr/blob/master/CHANGELOG
|
87
|
+
documentation_uri: https://remvee.github.io/exifr/api/
|
88
|
+
homepage_uri: https://remvee.github.io/exifr/
|
89
|
+
source_code_uri: https://github.com/remvee/exifr
|
90
|
+
post_install_message:
|
86
91
|
rdoc_options: []
|
87
92
|
require_paths:
|
88
93
|
- lib
|
@@ -97,9 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
102
|
- !ruby/object:Gem::Version
|
98
103
|
version: '0'
|
99
104
|
requirements: []
|
100
|
-
|
101
|
-
|
102
|
-
signing_key:
|
105
|
+
rubygems_version: 3.1.4
|
106
|
+
signing_key:
|
103
107
|
specification_version: 4
|
104
108
|
summary: Read EXIF from JPEG and TIFF images
|
105
109
|
test_files: []
|