simple_worker 2.0.5 → 2.0.6

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/simple_worker/uber_client.rb +4 -2
  2. metadata +11 -11
@@ -61,7 +61,8 @@ module Uber
61
61
 
62
62
  def get(url, req_hash={})
63
63
  if Uber.gem == :typhoeus
64
- req_hash[:timeout] ||= 1000
64
+ req_hash[:timeout] ||= 5000
65
+ # puts "REQ_HASH=" + req_hash.inspect
65
66
  response = Typhoeus::Request.get(url, req_hash)
66
67
  #p response
67
68
  if response.timed_out?
@@ -83,7 +84,8 @@ module Uber
83
84
  def post(url, req_hash={})
84
85
  if Uber.gem == :typhoeus
85
86
  # todo: should change this timeout to longer if it's for posting file
86
- req_hash[:timeout] ||= 1000
87
+ req_hash[:timeout] ||= 5000
88
+ # puts "REQ_HASH=" + req_hash.inspect
87
89
  response = Typhoeus::Request.post(url, req_hash)
88
90
  #p response
89
91
  if response.timed_out?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-19 00:00:00.000000000 Z
12
+ date: 2011-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zip
16
- requirement: &17566340 !ruby/object:Gem::Requirement
16
+ requirement: &20270500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17566340
24
+ version_requirements: *20270500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &17563920 !ruby/object:Gem::Requirement
27
+ requirement: &20269120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *17563920
35
+ version_requirements: *20269120
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: zip
38
- requirement: &17577080 !ruby/object:Gem::Requirement
38
+ requirement: &20267640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *17577080
46
+ version_requirements: *20267640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rest-client
49
- requirement: &17575980 !ruby/object:Gem::Requirement
49
+ requirement: &20326780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *17575980
57
+ version_requirements: *20326780
58
58
  description: The official SimpleWorker gem for http://www.simpleworker.com
59
59
  email: travis@appoxy.com
60
60
  executables: []
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 1.8.8
100
+ rubygems_version: 1.8.11
101
101
  signing_key:
102
102
  specification_version: 3
103
103
  summary: The official SimpleWorker gem for http://www.simpleworker.com