mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-08-10 00:01:04 -04:00
Fix coding for proper operation on later rubies
This commit is contained in:
parent
9ddbedb811
commit
4cb393643b
@ -1,6 +1,6 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{fastimage}
|
||||
s.version = "1.2.11"
|
||||
s.version = "1.2.12"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["Stephen Sykes"]
|
||||
|
@ -1,3 +1,5 @@
|
||||
# coding: ASCII-8BIT
|
||||
|
||||
# FastImage finds the size or type of an image given its uri.
|
||||
# It is careful to only fetch and parse as much of the image as is needed to determine the result.
|
||||
# It does this by using a feature of Net::HTTP that yields strings from the resource being fetched
|
||||
@ -36,6 +38,7 @@
|
||||
# * http://pennysmalls.com/find-jpeg-dimensions-fast-in-pure-ruby-no-ima
|
||||
# * http://imagesize.rubyforge.org/
|
||||
#
|
||||
|
||||
require 'net/https'
|
||||
require 'open-uri'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user