format_parser 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/format_parser/version.rb +1 -1
- data/lib/parsers/exif_parser.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 893aa7a0c9ab6b3f13930caffd0c455ef341c91f
|
4
|
+
data.tar.gz: e63bb62ac26c49e1958ab62eb9410058084d7d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ba899600ad478696d35478a57838d2cc66e75a1e4884f9f993a8a5df584184973d65effde17751dd063c2c08edb65bf8a3a3fbbb33595b2cdb614ad31fe0759
|
7
|
+
data.tar.gz: 3476574566c7dcab2dc7113337107c6fe182860478890c31da0ff6588ccb4d7adcb068ff4dcc3c9d2e01c43d815db4240c7d50e36f4014c69834780db675747f
|
data/lib/parsers/exif_parser.rb
CHANGED
@@ -33,7 +33,7 @@ class FormatParser::EXIFParser
|
|
33
33
|
def scan_image_exif
|
34
34
|
|
35
35
|
# Without the magic bytes EXIFR throws an error
|
36
|
-
@file_data.
|
36
|
+
@file_data.seek(0)
|
37
37
|
raw_exif_data = EXIFR::JPEG.new(@file_data) if @filetype == :jpeg
|
38
38
|
raw_exif_data = EXIFR::TIFF.new(@file_data) if @filetype == :tiff
|
39
39
|
# For things that we don't yet have a parser for
|