fastimage 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.textile +2 -0
- data/lib/fastimage.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03eb69e3aa6c6143e100836b63e8d44a5c6b9250
|
4
|
+
data.tar.gz: 4e942119ce051726c08b308d3f666ffd2b4b5526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1890d407ca32065cd453d9e118655c2f65b045772a63c827e9d516b7f8b0587b5f5b86bb6e67e724752ff4972e259e2b82ac7b8f64a8f1a76e3de175ef36b999
|
7
|
+
data.tar.gz: d67deedea6c3fb660bb586860590d7e1a6800523e422044aca460902ee25e739946532267b16a342cd55e8f075cc125e31aa8498bcf51f378e1df78a5ac9dc32
|
data/README.textile
CHANGED
data/lib/fastimage.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|