messenger 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Messenger
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
data/lib/messenger/web.rb CHANGED
@@ -15,7 +15,8 @@ class Messenger::Web
15
15
  # The body of the message is posted as the body of the request, not the query.
16
16
  def self.deliver(url, body, options={})
17
17
  raise Messenger::URLError, "The URL provided is invalid" unless valid_url?(url)
18
- response = HTTParty.post(url, options.merge(:body => body))
18
+ method = options.delete(:method) || :post
19
+ response = HTTParty.send(method, url, options.merge(:body => body))
19
20
  Messenger::Result.new(success?(response), response)
20
21
  end
21
22
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brandon Arbini
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-24 00:00:00 -05:00
18
+ date: 2010-07-13 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency