Fix coding for proper operation on later rubies

This commit is contained in:
Stephen Sykes 2012-03-22 19:43:53 +02:00
parent 9ddbedb811
commit 4cb393643b
2 changed files with 4 additions and 1 deletions

View File

@ -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"]

View File

@ -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'