fastimage 1.2.11 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fastimage.rb +3 -0
  2. metadata +4 -17
@@ -1,3 +1,5 @@
1
+ # coding: ASCII-8BIT
2
+
1
3
  # FastImage finds the size or type of an image given its uri.
2
4
  # It is careful to only fetch and parse as much of the image as is needed to determine the result.
3
5
  # It does this by using a feature of Net::HTTP that yields strings from the resource being fetched
@@ -36,6 +38,7 @@
36
38
  # * http://pennysmalls.com/find-jpeg-dimensions-fast-in-pure-ruby-no-ima
37
39
  # * http://imagesize.rubyforge.org/
38
40
  #
41
+
39
42
  require 'net/https'
40
43
  require 'open-uri'
41
44
 
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastimage
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 2
9
- - 11
10
- version: 1.2.11
4
+ prerelease:
5
+ version: 1.2.12
11
6
  platform: ruby
12
7
  authors:
13
8
  - Stephen Sykes
@@ -15,8 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2012-03-22 00:00:00 +02:00
19
- default_executable:
13
+ date: 2012-03-22 00:00:00 Z
20
14
  dependencies: []
21
15
 
22
16
  description: FastImage finds the size or type of an image given its uri by fetching as little as needed.
@@ -43,7 +37,6 @@ files:
43
37
  - test/fixtures/test2.jpg
44
38
  - test/fixtures/test3.jpg
45
39
  - test/test.rb
46
- has_rdoc: true
47
40
  homepage: http://github.com/sdsykes/fastimage
48
41
  licenses: []
49
42
 
@@ -57,23 +50,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
50
  requirements:
58
51
  - - ">="
59
52
  - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
53
  version: "0"
64
54
  required_rubygems_version: !ruby/object:Gem::Requirement
65
55
  none: false
66
56
  requirements:
67
57
  - - ">="
68
58
  - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
59
  version: "0"
73
60
  requirements: []
74
61
 
75
62
  rubyforge_project:
76
- rubygems_version: 1.3.7
63
+ rubygems_version: 1.8.5
77
64
  signing_key:
78
65
  specification_version: 3
79
66
  summary: FastImage - Image info fast