rtx-api 0.5.0 → 0.5.1
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 +4 -3
- data/lib/rtx/api/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9501dcc7112fefb26fa0cfea1259aa23e1b8cc45b64971e39f426cf11913bc13
|
4
|
+
data.tar.gz: d4b91f77fb51cca1d8dd067e8ab87372921c72c380d3bf210091132e8adf44da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd462a434c9feced48e18a238d5edef6a1e84b64c4763e1f8fe0b6ed8c4a10bcb17bf95b7b834264aa4082aebb785cfd4324e125f7df5b209f9e56852dbc8e00
|
7
|
+
data.tar.gz: ec4008817753110b2d22d8fd4eee9262182cc2c0d97ae673bb22d37c6368a6dde3dc7c8db738b3518ea6a0422c6f77763647053dfce35df0b0b2fc6ac81bd173
|
data/lib/rtx/api/client.rb
CHANGED
@@ -2,11 +2,12 @@ module RTX
|
|
2
2
|
module API
|
3
3
|
class Client
|
4
4
|
include HTTParty
|
5
|
-
attr_accessor :email, :password, :token, :expires, :account_id, :profile_id
|
5
|
+
attr_accessor :email, :password, :api_url, :token, :expires, :account_id, :profile_id
|
6
6
|
|
7
|
-
def initialize(email = ENV["RTX_USER_EMAIL"], password = ENV["RTX_USER_PASSWORD"])
|
7
|
+
def initialize(email = ENV["RTX_USER_EMAIL"], password = ENV["RTX_USER_PASSWORD"], api_url = ENV["RTX_API_URL"])
|
8
8
|
@email = email
|
9
9
|
@password = password
|
10
|
+
@api_url = api_url
|
10
11
|
@token = nil
|
11
12
|
@expires = nil
|
12
13
|
end
|
@@ -149,7 +150,7 @@ module RTX
|
|
149
150
|
end
|
150
151
|
|
151
152
|
def rtx_api_url
|
152
|
-
ENV["RTX_API_URL"] || "https://api-gateway.reviewtrackers.com"
|
153
|
+
api_url || ENV["RTX_API_URL"] || "https://api-gateway.reviewtrackers.com"
|
153
154
|
end
|
154
155
|
|
155
156
|
def write_request?(action)
|
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.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Review Trackers Engineering
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -92,11 +92,11 @@ files:
|
|
92
92
|
- lib/rtx/api/version.rb
|
93
93
|
- pull_request_template.md
|
94
94
|
- rtx-api.gemspec
|
95
|
-
homepage:
|
95
|
+
homepage:
|
96
96
|
licenses:
|
97
97
|
- MIT
|
98
98
|
metadata: {}
|
99
|
-
post_install_message:
|
99
|
+
post_install_message:
|
100
100
|
rdoc_options: []
|
101
101
|
require_paths:
|
102
102
|
- lib
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubygems_version: 3.1.1
|
115
|
-
signing_key:
|
115
|
+
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Ruby Client for the Review Trackers RTX API.
|
118
118
|
test_files: []
|