format_parser 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -3
- data/CHANGELOG.md +5 -1
- data/lib/format_parser/version.rb +1 -1
- data/lib/parsers/jpeg_parser.rb +3 -3
- data/lib/parsers/zip_parser.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3bc2d491cce23fbb1ba33f6dd67ac6b05dec772b
|
4
|
+
data.tar.gz: ece819eb7e2db14dd5ac658cc16ebf8a8d8b0bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c7c7eddd7892f1ae49376f0f5f74a947123af3b2d40fac132034f754f406a06d5ed8dba8c8f118ca14b538568aade544be265aa46bed741a29a0a1650627e52
|
7
|
+
data.tar.gz: 7d06c0bbfb9c111d994f68418f01daa4f10eaf51f71c1eec61f8aa8764027356678f005d731732ba91343e7f56f257991daa9de6fff6187d226258eb196f66a3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.12.1
|
2
|
+
* Reinstate support for Ruby 2.2.0
|
3
|
+
* Fix support for JRuby 9.0
|
4
|
+
|
1
5
|
## 0.12.0
|
2
6
|
* Relay upstream status from `RemoteIO` in the `status_code` attribute (returns an `Integer`)
|
3
7
|
|
@@ -127,4 +131,4 @@
|
|
127
131
|
## 0.1.0
|
128
132
|
* Add parsers for PNG, JPG, TIFF, PSD
|
129
133
|
* Add GIF parser
|
130
|
-
* Add DPX parser
|
134
|
+
* Add DPX parser
|
data/lib/parsers/jpeg_parser.rb
CHANGED
@@ -70,9 +70,9 @@ class FormatParser::JPEGParser
|
|
70
70
|
format: :jpg,
|
71
71
|
width_px: @width,
|
72
72
|
height_px: @height,
|
73
|
-
display_width_px: @exif_data
|
74
|
-
display_height_px: @exif_data
|
75
|
-
orientation: @exif_data
|
73
|
+
display_width_px: @exif_data && @exif_data.rotated? ? @height : @width,
|
74
|
+
display_height_px: @exif_data && @exif_data.rotated? ? @width : @height,
|
75
|
+
orientation: @exif_data && @exif_data.orientation,
|
76
76
|
intrinsics: {exif: @exif_data},
|
77
77
|
)
|
78
78
|
|
data/lib/parsers/zip_parser.rb
CHANGED
@@ -40,7 +40,7 @@ class FormatParser::ZIPParser
|
|
40
40
|
|
41
41
|
def decode_filename(filename, likely_unicode:)
|
42
42
|
filename.force_encoding(Encoding::UTF_8) if likely_unicode
|
43
|
-
filename.encode(Encoding::UTF_8,
|
43
|
+
filename.encode(Encoding::UTF_8, undef: :replace, replace: UNICODE_REPLACEMENT_CHAR)
|
44
44
|
end
|
45
45
|
|
46
46
|
def decode_filename_of(zip_entry)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: format_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noah Berman
|
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
253
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
254
|
+
rubygems_version: 2.5.2
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: A library for efficient parsing of file metadata
|