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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 5f66a8afff2b85b57587c1cc7914dda25005b024284104bf3b0324b653a3ceff
4
- data.tar.gz: 7e31d48b97e0dedfe5965b6ae524f1a14bbdc751ac50df11666aee3d4a18e5af
2
+ SHA1:
3
+ metadata.gz: 3bc2d491cce23fbb1ba33f6dd67ac6b05dec772b
4
+ data.tar.gz: ece819eb7e2db14dd5ac658cc16ebf8a8d8b0bb6
5
5
  SHA512:
6
- metadata.gz: 850a9f04a7006a52016d087c479a5b22048396c55ed51766a8d8c50f4ec66385ad565c3a006687428c762d16fd3aae5aa4f1d250ed1926bde07c0a61387f77d4
7
- data.tar.gz: 6afa6ca1706cac48d9ea915bcd0c7ea4900d517eef195880cd0124621c0a7af4a1759ab999ede643dcce8a1066f126f59f030dcc963272c95b130bd397150975
6
+ metadata.gz: 0c7c7eddd7892f1ae49376f0f5f74a947123af3b2d40fac132034f754f406a06d5ed8dba8c8f118ca14b538568aade544be265aa46bed741a29a0a1650627e52
7
+ data.tar.gz: 7d06c0bbfb9c111d994f68418f01daa4f10eaf51f71c1eec61f8aa8764027356678f005d731732ba91343e7f56f257991daa9de6fff6187d226258eb196f66a3
data/.travis.yml CHANGED
@@ -1,13 +1,11 @@
1
1
  rvm:
2
+ - 2.2.0
2
3
  - 2.3.0
3
4
  - 2.4.2
4
5
  - 2.5.0
5
6
  - jruby-9.0
6
7
  sudo: false
7
8
  cache: bundler
8
- matrix:
9
- allow_failures:
10
- - rvm: jruby-9.0
11
9
  script:
12
10
  - bundle exec rubocop
13
11
  - bundle exec rspec
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
@@ -1,3 +1,3 @@
1
1
  module FormatParser
2
- VERSION = '0.12.0'
2
+ VERSION = '0.12.1'
3
3
  end
@@ -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&.rotated? ? @height : @width,
74
- display_height_px: @exif_data&.rotated? ? @width : @height,
75
- orientation: @exif_data&.orientation,
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
 
@@ -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, undefined: :replace, replace: UNICODE_REPLACEMENT_CHAR)
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.0
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.7.3
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