rtx-api 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35e680d3973b5ba838f6794ae36e1a4b89629bc5
4
- data.tar.gz: f972d4896a7d155366a2deca603d032b0bb68cf4
3
+ metadata.gz: 2bca2da1db0ca31062e9b1a02f21d05e4888c682
4
+ data.tar.gz: 9d0d852f80c4483cd244ad752dad210998a18db9
5
5
  SHA512:
6
- metadata.gz: 3b4cecad73fec030f9555ba45276c4ec101c7ee89f1f6e6d4c458d277aa986ccc76693c3447cb02d33fb0060f6caefa5121db6a1c3af72a57dadd7c66afb0ebe
7
- data.tar.gz: af0b6e3de82f562d69f3e3237e5d7a21883b59db5f8a484ffa7707f3a753af42107c02a97bc9533bf3cd53a51abdf96baf45ae84f0bc2b31ff2e60db91c6d75a
6
+ metadata.gz: c7d363c52581f95f38b5b4a6679192282046cb95192958139e521a390732a1ab75e1b8e9e495bc5d9a5a51535543dbc6610d7f5e8c58e2e63cfbc7a390bb7bd2
7
+ data.tar.gz: c4e02c8e371e1d9f623779d61c91fedbe7086d6d08274e82010080a2a5728d5ce369d300e5b85184c011faafc8b63179b3196d1887fb6af06c117f4978386aac
@@ -110,8 +110,14 @@ module RTX
110
110
  def options(action, attrs = {})
111
111
  default_params = {account_id: account_id}
112
112
  default_params[:profile_id] = profile_id if write_request?(action)
113
- query_params = default_params.merge(attrs)
114
- {query: query_params, headers: default_headers, basic_auth: {username: email, password: token}}
113
+ params = default_params.merge(attrs)
114
+ options = {headers: default_headers, basic_auth: {username: email, password: token}}
115
+ if write_request?(action)
116
+ options[:body] = Oj.dump(params, mode: :compat)
117
+ else
118
+ options[:query] = params
119
+ end
120
+ options
115
121
  end
116
122
 
117
123
  def rtx_api_url
@@ -1,5 +1,5 @@
1
1
  module RTX
2
2
  module API
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtx-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ReviewTrackers Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-30 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty