pauldix-typhoeus 0.0.16 → 0.0.17

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.rb +1 -1
  2. data/lib/typhoeus/easy.rb +3 -3
  3. metadata +1 -1
data/lib/typhoeus.rb CHANGED
@@ -12,7 +12,7 @@ require 'typhoeus/remote_proxy_object'
12
12
  require 'typhoeus/response'
13
13
 
14
14
  module Typhoeus
15
- VERSION = "0.0.16"
15
+ VERSION = "0.0.17"
16
16
 
17
17
  def self.easy_object_pool
18
18
  @easy_objects ||= []
data/lib/typhoeus/easy.rb CHANGED
@@ -107,10 +107,10 @@ module Typhoeus
107
107
  end
108
108
  end.flatten.join("&")
109
109
 
110
- if method == :get
111
- self.url = "#{url}?#{params_string}"
112
- elsif method == :post
110
+ if method == :post
113
111
  self.post_data = params_string
112
+ else
113
+ self.url = "#{url}?#{params_string}"
114
114
  end
115
115
  end
116
116
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pauldix-typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix