netdnarws 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module NetDNARWS
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/netdnarws.rb CHANGED
@@ -52,10 +52,15 @@ module NetDNARWS
52
52
  request = @request_signer.generate_authenticated_request(request_options)
53
53
 
54
54
  begin
55
- response = CurbFu.send method,
56
- url: _get_url(uri, attributes),
57
- headers: request.headers,
58
- data: (request.body if options[:body])
55
+ curb_options = {}
56
+ curb_options[:url] = _get_url(uri, attributes)
57
+ curb_options[:headers] = request.headers
58
+
59
+ if not options[:body]
60
+ response = CurbFu.send method, curb_options
61
+ else
62
+ response = CurbFu.send method, curb_options, request.body
63
+ end
59
64
 
60
65
  return response if options[:debug_request]
61
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netdnarws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-19 00:00:00.000000000 Z
12
+ date: 2012-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable