fastimage 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.textile +2 -0
  3. data/lib/fastimage.rb +6 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 938eee083d0e447dd8fb8159f9a6dc3db70af030
4
- data.tar.gz: d6f061def90b88547f941bc93ade56471603fe92
3
+ metadata.gz: 03eb69e3aa6c6143e100836b63e8d44a5c6b9250
4
+ data.tar.gz: 4e942119ce051726c08b308d3f666ffd2b4b5526
5
5
  SHA512:
6
- metadata.gz: f9ff437cedb77b51854cd6869d0fcf514186004f09cc4e413e1cf8610b1f63d434ea3ee5e45e9b137b289243550b0b4b0040248419fe629f12dac4a142286288
7
- data.tar.gz: bf5c6a6adf2f6b762cd9dc63d48979ff7c9e16ba0d7c0e9624b72fa25df1a47bf8a40e19b26dce2acb6b05e7cf15163af39f8e1ead5afeeb2533ae5254b0a8fa
6
+ metadata.gz: 1890d407ca32065cd453d9e118655c2f65b045772a63c827e9d516b7f8b0587b5f5b86bb6e67e724752ff4972e259e2b82ac7b8f64a8f1a76e3de175ef36b999
7
+ data.tar.gz: d67deedea6c3fb660bb586860590d7e1a6800523e422044aca460902ee25e739946532267b16a342cd55e8f075cc125e31aa8498bcf51f378e1df78a5ac9dc32
@@ -1,3 +1,5 @@
1
+ !https://travis-ci.org/sdsykes/fastimage.png?branch=master!:https://travis-ci.org/sdsykes/fastimage
2
+
1
3
  h1. FastImage
2
4
 
3
5
  h4. FastImage finds the size or type of an image given its uri by fetching as little as needed
@@ -76,7 +76,7 @@ class FastImage
76
76
  # If you wish FastImage to raise if it cannot size the image for any reason, then pass
77
77
  # :raise_on_failure => true in the options.
78
78
  #
79
- # FastImage knows about GIF, JPEG, BMP, TIFF and PNG files.
79
+ # FastImage knows about GIF, JPEG, BMP, TIFF, PNG and PSD files.
80
80
  #
81
81
  # === Example
82
82
  #
@@ -299,9 +299,9 @@ class FastImage
299
299
  send("parse_size_for_#{@type}")
300
300
  end
301
301
 
302
- module StreamUtil
302
+ module StreamUtil # :nodoc:
303
303
  def read_byte
304
- read(1).ord
304
+ read(1)[0].ord
305
305
  end
306
306
 
307
307
  def read_int
@@ -309,7 +309,7 @@ class FastImage
309
309
  end
310
310
  end
311
311
 
312
- class FiberStream
312
+ class FiberStream # :nodoc:
313
313
  include StreamUtil
314
314
  attr_reader :pos
315
315
 
@@ -344,7 +344,7 @@ class FastImage
344
344
  end
345
345
  end
346
346
 
347
- class IOStream < SimpleDelegator
347
+ class IOStream < SimpleDelegator # :nodoc:
348
348
  include StreamUtil
349
349
  end
350
350
 
@@ -431,7 +431,7 @@ class FastImage
431
431
  [result.first, result.last.abs]
432
432
  end
433
433
 
434
- class Exif
434
+ class Exif # :nodoc:
435
435
  attr_reader :width, :height
436
436
  def initialize(stream)
437
437
  @stream = stream
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Sykes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-29 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable