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 +4 -4
- data/lib/rtx/api/client.rb +8 -2
- data/lib/rtx/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bca2da1db0ca31062e9b1a02f21d05e4888c682
|
4
|
+
data.tar.gz: 9d0d852f80c4483cd244ad752dad210998a18db9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7d363c52581f95f38b5b4a6679192282046cb95192958139e521a390732a1ab75e1b8e9e495bc5d9a5a51535543dbc6610d7f5e8c58e2e63cfbc7a390bb7bd2
|
7
|
+
data.tar.gz: c4e02c8e371e1d9f623779d61c91fedbe7086d6d08274e82010080a2a5728d5ce369d300e5b85184c011faafc8b63179b3196d1887fb6af06c117f4978386aac
|
data/lib/rtx/api/client.rb
CHANGED
@@ -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
|
-
|
114
|
-
|
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
|
data/lib/rtx/api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|