typhoeus 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ require 'typhoeus/request'
14
14
  require 'typhoeus/hydra'
15
15
 
16
16
  module Typhoeus
17
- VERSION = "0.1.6"
17
+ VERSION = "0.1.7"
18
18
 
19
19
  def self.easy_object_pool
20
20
  @easy_objects ||= []
@@ -92,19 +92,19 @@ module Typhoeus
92
92
  r.response
93
93
  end
94
94
 
95
- def self.get(url, params)
95
+ def self.get(url, params = {})
96
96
  run(url, params.merge(:method => :get))
97
97
  end
98
98
 
99
- def self.post(url, params)
99
+ def self.post(url, params = {})
100
100
  run(url, params.merge(:method => :post))
101
101
  end
102
102
 
103
- def self.put(url, params)
103
+ def self.put(url, params = {})
104
104
  run(url, params.merge(:method => :put))
105
105
  end
106
106
 
107
- def self.delete(url, params)
107
+ def self.delete(url, params = {})
108
108
  run(url, params.merge(:method => :delete))
109
109
  end
110
110
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix