gravis-typhoeus 0.1.31 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/typhoeus/easy.rb +3 -1
  2. data/typhoeus.gemspec +2 -2
  3. metadata +4 -4
data/lib/typhoeus/easy.rb CHANGED
@@ -242,7 +242,9 @@ module Typhoeus
242
242
  def perform
243
243
  set_headers()
244
244
  easy_perform()
245
- response_code()
245
+ resp_code = response_code()
246
+ (resp_code >= 200 and resp_code <= 299) ? success : failure
247
+ resp_code
246
248
  end
247
249
 
248
250
  def set_headers
data/typhoeus.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gravis-typhoeus}
8
- s.version = "0.1.31"
8
+ s.version = "0.1.32"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Dix"]
12
- s.date = %q{2010-06-04}
12
+ s.date = %q{2010-05-17}
13
13
  s.description = %q{Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.}
14
14
  s.email = %q{paul@pauldix.net}
15
15
  s.extensions = ["ext/typhoeus/extconf.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gravis-typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 91
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 31
10
- version: 0.1.31
9
+ - 32
10
+ version: 0.1.32
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Dix
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-04 00:00:00 +02:00
18
+ date: 2010-05-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency