fastimage 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION.yml +2 -2
  2. data/lib/fastimage.rb +2 -3
  3. data/test/test.rb +1 -1
  4. metadata +12 -5
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 3
2
+ :patch: 4
3
3
  :major: 1
4
- :minor: 2
5
4
  :build:
5
+ :minor: 2
data/lib/fastimage.rb CHANGED
@@ -143,10 +143,9 @@ class FastImage
143
143
  fetch_using_open_uri
144
144
  end
145
145
  raise SizeNotFound if options[:raise_on_failure] && @property == :size && !@size
146
- rescue Timeout::Error, SocketError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET, ImageFetchFailure
146
+ rescue Timeout::Error, SocketError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET,
147
+ ImageFetchFailure, Net::HTTPBadResponse, EOFError, Errno::ENOENT
147
148
  raise ImageFetchFailure if options[:raise_on_failure]
148
- rescue Errno::ENOENT
149
- raise ImageFetchFailure if options[:raise_on_failure]
150
149
  rescue NoMethodError # 1.8.7p248 can raise this due to a net/http bug
151
150
  raise ImageFetchFailure if options[:raise_on_failure]
152
151
  rescue UnknownImageType
data/test/test.rb CHANGED
@@ -74,7 +74,7 @@ class FastImageTest < Test::Unit::TestCase
74
74
  end
75
75
  end
76
76
 
77
- def test_should_raise_when_asked_to_when_domain_does_not_exist
77
+ def test_should_raise_when_asked_to_when_file_does_not_exist
78
78
  assert_raises(FastImage::ImageFetchFailure) do
79
79
  FastImage.size("http://www.google.com/does_not_exist_at_all", :raise_on_failure=>true)
80
80
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 2
8
+ - 4
9
+ version: 1.2.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Stephen Sykes
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-23 00:00:00 +01:00
17
+ date: 2010-04-01 00:00:00 +03:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -48,18 +53,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
53
  requirements:
49
54
  - - ">="
50
55
  - !ruby/object:Gem::Version
56
+ segments:
57
+ - 0
51
58
  version: "0"
52
- version:
53
59
  required_rubygems_version: !ruby/object:Gem::Requirement
54
60
  requirements:
55
61
  - - ">="
56
62
  - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
57
65
  version: "0"
58
- version:
59
66
  requirements: []
60
67
 
61
68
  rubyforge_project:
62
- rubygems_version: 1.3.5
69
+ rubygems_version: 1.3.6
63
70
  signing_key:
64
71
  specification_version: 3
65
72
  summary: FastImage - Image info fast