exifr 1.2.5 → 1.2.6

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: d9ac6553d42bb5f17abdd4092b39c4718ef73036
4
- data.tar.gz: 481f598f4ac68d65f36a96979c384a9ae630fa54
3
+ metadata.gz: 9dc9aa8ca96c37f0d49fc68580132e0be08dd2ea
4
+ data.tar.gz: 21b6bc149591d16f5ed2388d375ff66827b4de7f
5
5
  SHA512:
6
- metadata.gz: 8c0e17c14a6c8b458717459c2aa5397c4520b968319bce43c240a56d8963b34225e0064edafeee3decd9dc287329104a4b792e1d34436696ff2df21b382e7849
7
- data.tar.gz: 1765feeb043209fa869f2c19f36ce53559e3e021716d576c608f8d41a3e97119dcd78cf43069d6c81cc61ff26806fa5a593c335fc959b00e286a1c6eb92e1e19
6
+ metadata.gz: 5b23487cd273bac7a76ef89db722b25910e89a16ca0fafea6545c4d5202a036cdc6a6c7fae6ef16b5d8cb8ad50113235744b5f5f3147000d42702be240d1eb2c
7
+ data.tar.gz: 3a868dbb615345422bcc11e79277fdad1d62a77fb7ddcee06ab80dcf0749b76a306746abe0dab031e561413e65c06fc533e6cf275e68a340c7f097171731ed91
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ EXIF Reader 1.2.6
2
+ * bug fix; "[GH#48] handle empty file as malformed jpeg"; thanks Hoàng Xuân Phú
3
+
1
4
  EXIF Reader 1.2.5
2
5
  * bug fix; "[GH#46] Having stringified methods is not a good idea"; thanks Filipe Costa
3
6
  * bug fix; "Fix typo in subsec_time_original key"; thanks Filipe Costa
@@ -93,7 +93,7 @@ module EXIFR
93
93
  def examine(io)
94
94
  io = Reader.new(io)
95
95
 
96
- unless io.readbyte == 0xFF && io.readbyte == 0xD8 # SOI
96
+ unless io.getbyte == 0xFF && io.getbyte == 0xD8 # SOI
97
97
  raise MalformedJPEG, "no start of image marker found"
98
98
  end
99
99
 
@@ -14,6 +14,11 @@ class JPEGTest < TestCase
14
14
  end
15
15
 
16
16
  def test_raises_malformed_jpeg
17
+ begin
18
+ JPEG.new(StringIO.new(""))
19
+ rescue MalformedJPEG => ex
20
+ assert ex
21
+ end
17
22
  begin
18
23
  JPEG.new(StringIO.new("djibberish"))
19
24
  rescue MalformedJPEG => ex
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.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - R.W. van 't Veer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-28 00:00:00.000000000 Z
11
+ date: 2017-07-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: EXIF Reader is a module to read EXIF from JPEG and TIFF images.
14
14
  email: remco@remvee.net
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.5.1
78
+ rubygems_version: 2.6.11
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Read EXIF from JPEG and TIFF images