rtx-api 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 876c9d5156481c0c1ae3df58c556e5fc9c884c8a
4
- data.tar.gz: caf8eabffdf6373e8bc21dd1d7acdfff474ffc82
3
+ metadata.gz: e9d52c4813d89788cd62b162e989d22de3af6660
4
+ data.tar.gz: 5c31199a4ab6b1dbdbabdfa3103fe473fd81699c
5
5
  SHA512:
6
- metadata.gz: 490b155701f2dad5107bfb52341b3793c9447cf352c98d1905ad05683aa90bcbd18e3ca3e8939248ef3e0e80090c55082fb4748f07429e3f4fe6b538834f949e
7
- data.tar.gz: 9ca75d7134ecb3f26fba90d44dc89d1c455ba9882e15deaffc7ea49d6a214bedaf55d1956a9a981126e7e439dcd287d8b299568532aec9a867e10c4b29731f73
6
+ metadata.gz: 3a79659f6cb79973350886cba077e1b38cf7a53d11c62a94863d1e4cb5205179750580927733bceb333c32510fd626a170553c0a380cbd2fd6cfd41950be0773
7
+ data.tar.gz: 82cb021203f999c4af84a0bb5390541801036ba03c2da5e96963c779d3367739b2dcad72d0fc3aa3cf9c2eed47251a180f350f8f98de3a1701b02d79b601c25c
@@ -116,14 +116,11 @@ module RTX
116
116
  end
117
117
 
118
118
  def options(action, attrs = {})
119
- default_params = {account_id: account_id}
120
- default_params[:profile_id] = profile_id if write_request?(action)
121
- params = default_params.merge(attrs)
122
119
  options = {headers: default_headers, basic_auth: {username: email, password: token}}
123
120
  if write_request?(action)
124
- options[:body] = Oj.dump(params, mode: :compat)
121
+ options[:body] = Oj.dump(attrs, mode: :compat)
125
122
  else
126
- options[:query] = params
123
+ options[:query] = attrs
127
124
  end
128
125
  options
129
126
  end
@@ -1,5 +1,5 @@
1
1
  module RTX
2
2
  module API
3
- VERSION = "0.2.3"
3
+ VERSION = "0.3.0"
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.2.3
4
+ version: 0.3.0
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-05-18 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty