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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74d218b251891a0cf7e748402bc6e357c4ad3dfc3aa5aefa293372f60921a1be
4
- data.tar.gz: 3d4d4d8b073067bba935cce965007feed1ce04aff3b0043c31caedd64dd4b6f2
3
+ metadata.gz: 875a312186a0f46c69201e260de535974566c112d4198f91c603c5a57112910d
4
+ data.tar.gz: 5735851e875b2a76f9bb73fb6a4556548fa1ae18ad8d0a0f5ed970648769054c
5
5
  SHA512:
6
- metadata.gz: 3c785eff92ad9eb5c05599c6312a927764c602d26adb7e026e00218bdb6a52d98f79f113b7bc2c0784d207c83357ba787354f871edefac1c8ab18017f6b5160f
7
- data.tar.gz: 03fe558a81381a3e49c36d1e7bbabe4e8831c1332c191267a7c8a56820dbcc56c478cb0727dd1407ccad64afb0b1ce2f4341218fead72e73fbee8dfe2a49a53a
6
+ metadata.gz: b7b828732884dddb926221ae91ab87e5bee58fdd39a31b26beb1b794db1764661864d2b67844e2ca2e8b5d6b728464005602c927dd0d7fb652f7f57d5a87040c
7
+ data.tar.gz: 828884d3ff08fa3b1855a233fe31868516c31b9cf6f2487dd0db4274e2fb28e643c02b5df3ae0b247033f7cc2afc45e46aef6826ec1ba14fe294a644a9a8f549
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
  gemspec
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2006-2017 - R.W. van 't Veer
1
+ # Copyright (c) 2006-2020 - R.W. van 't Veer
2
2
 
3
3
  require 'rake/testtask'
4
4
 
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2006-2017 - R.W. van 't Veer
1
+ # Copyright (c) 2006-2020 - R.W. van 't Veer
2
2
 
3
3
  require 'logger'
4
4
 
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2006-2017 - R.W. van 't Veer
1
+ # Copyright (c) 2006-2020 - R.W. van 't Veer
2
2
 
3
3
  require 'exifr'
4
4
  require 'exifr/tiff'
@@ -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
- data[start..(start + length)]
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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (c) 2006-2017 - R.W. van 't Veer
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
- refute j.methods(false).include?(:date_time)
110
+ assert ! j.methods(false).include?(:date_time)
111
111
  end
112
112
 
113
113
  def test_multiple_app1
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (c) 2006-2017 - R.W. van 't Veer
3
+ # Copyright (c) 2006-2020 - R.W. van 't Veer
4
4
 
5
5
  require 'stringio'
6
6
  require 'pp'
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (c) 2006-2017 - R.W. van 't Veer
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
- refute t.methods(false).include?(:make)
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.6
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: 2019-02-10 00:00:00.000000000 Z
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: '10'
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: '10'
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
- post_install_message:
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
- rubyforge_project:
101
- rubygems_version: 2.7.6
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: []