discourse_fastimage 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastimage.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dd97a14da5787f1f82ae57afd2a8821d243d717
4
- data.tar.gz: 4e495c390dc590639415b083e4c129136b2ef286
3
+ metadata.gz: 32e2a6bf8727bcb2595ef2532ed4aff1b4c0aea4
4
+ data.tar.gz: 130215f95f4bc5fa2f30a03adb6771c2d513d5ef
5
5
  SHA512:
6
- metadata.gz: 4fcce40e46e85175d796c1eccd02db987ac20b105aea3ddd4a3dca044283ecdb3b26246cfbaf59698c1a9da87e029fe7dda33a5a5d95d12b1b5a2f71908df64b
7
- data.tar.gz: c31bb94ab9259551018c63f393e76939ebabaf8025b7996659436b84a454a5004c55d3e7ac1f912a1118460d5bfac4b7f14394945cf4b8d31d13ff492b37e943
6
+ metadata.gz: e1f6fe0cd2fdea8cf8c5d75a8684e29be93fa6eb5243ef613116d86ad4ba2831bf4062fa0bf6061de545fc313923476436ff83c53ad8a0a7cd12ac3548c2e35e
7
+ data.tar.gz: 5601069e36378b0d6bb6b41194ff7273a81f9caa3abe009965ac68b6d2660f0cee98194344c12da6dad4de5af9da4a702c95110aae3a5843457e52fbd74b9739
data/lib/fastimage.rb CHANGED
@@ -480,8 +480,8 @@ class FastImage
480
480
  first_100_characters = @stream.peek(100) rescue nil
481
481
  return :svg if first_100_characters && first_100_characters.include?("<svg")
482
482
 
483
- next_100_characters = @stream.peek(100) rescue nil
484
- return :svg if next_100_characters && next_100_characters.include?("<svg")
483
+ first_200_characters = @stream.peek(200) rescue nil
484
+ return :svg if first_200_characters && first_200_characters.include?("<svg")
485
485
 
486
486
  raise UnknownImageType
487
487
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_fastimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Sykes