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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f814c532170891e526790baba2601785abab70e68d528d205636193ef0307eec
4
- data.tar.gz: 1d95ed32188e0b5adb877df739508ef8e42308656b62df1ee4fec660d5fb17d5
3
+ metadata.gz: 9501dcc7112fefb26fa0cfea1259aa23e1b8cc45b64971e39f426cf11913bc13
4
+ data.tar.gz: d4b91f77fb51cca1d8dd067e8ab87372921c72c380d3bf210091132e8adf44da
5
5
  SHA512:
6
- metadata.gz: 57841fbfd405bbcda5f12c04b120720b1a4e9808c403cb160e1c5dc636475e263823bb769af66f7a3ae74acbbd0a767d8612d6fcaed76d00ac2f1aad17593bd7
7
- data.tar.gz: a9e930cce3c9654c32e6944ff0e5872a8a97494f6e4dcc12210bc79f67379791a5e347587358dedfa56b011d7f06a2dd63382386f71b2c2029609335e544386d
6
+ metadata.gz: fd462a434c9feced48e18a238d5edef6a1e84b64c4763e1f8fe0b6ed8c4a10bcb17bf95b7b834264aa4082aebb785cfd4324e125f7df5b209f9e56852dbc8e00
7
+ data.tar.gz: ec4008817753110b2d22d8fd4eee9262182cc2c0d97ae673bb22d37c6368a6dde3dc7c8db738b3518ea6a0422c6f77763647053dfce35df0b0b2fc6ac81bd173
@@ -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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RTX
4
4
  module API
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  end
7
7
  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.5.0
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: 2020-07-07 00:00:00.000000000 Z
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: []