agilix 0.8.0 → 0.8.2

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: ec7d9aee8506c9686b15b685c051cd43fb3db8b72edfaddcbdf0d4f3762260cc
4
- data.tar.gz: 14fa1ea2b89159360bb04ef82939675fe2f6a48ab7e47b7dcff57d157593278c
3
+ metadata.gz: 5c9513b8be4200dc21040c5a7f7ff57525aa23576a3896576e13a8b5f7766024
4
+ data.tar.gz: d3238e4aa7852e08da67ae7c12848e5f518b0b16ea4c61d31dd6e4683dbf6965
5
5
  SHA512:
6
- metadata.gz: 4607c29b8104360b28bfc9637643396ba7e95f278f4b2c344aa360def4ecbcb004da6201c6cd403bf53812e37da73b01c970b8db2b7b2a6e8b9256bf0a9c233d
7
- data.tar.gz: 2be08a5c775adc80ab29681248868d23aeabef96fd20293ad055f07eed160573a30d1d3510379ddc2fdc224f13c75db8483b7eb5131832823149cbb9b0b79d9f
6
+ metadata.gz: 4f1ff5456126981872f37049e540471bff75980a2582aa5620c77badb1d93767d47d2f95f34b5d9969479c406d1ed7cec807291ab92719e709c414151a81b377
7
+ data.tar.gz: cef84abf1ec6d1079027f96fb23347c6a85fcb00f0bce3d9758f9f64bddb658a62c6182e4c1f8c1df316dd64de9f19f8ba3010ace73a7414e3867b32f1d017b8
data/.travis.yml CHANGED
@@ -3,5 +3,5 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.3
6
+ - 2.7.5
7
7
  before_install: gem install bundler -v 1.16.4
@@ -14,7 +14,7 @@ module Agilix
14
14
  include Agilix::Buzz::Commands::Right
15
15
  include Agilix::Buzz::Commands::User
16
16
 
17
- attr_accessor :username, :password, :domain, :token, :token_expiration
17
+ attr_accessor :username, :password, :domain, :token, :token_expiration, :agilix_url_endpoint
18
18
 
19
19
  def initialize(options = {})
20
20
  @username = options.fetch(:username, default_username)
@@ -22,6 +22,7 @@ module Agilix
22
22
  @domain = options.fetch(:domain, default_domain)
23
23
  @token = options.dig(:token)
24
24
  @token_expiration = options.dig(:token_expiration)
25
+ @agilix_url_endpoint = options.fetch(:agilix_url_endpoint, default_agilix_url_endpoint)
25
26
  end
26
27
 
27
28
  def authenticated_get(query = {})
@@ -161,8 +162,8 @@ module Agilix
161
162
  ENV["AGILIX_BUZZ_DEFAULT_DOMAIN"]
162
163
  end
163
164
 
164
- def agilix_url_endpoint
165
- @agilix_url_endpoint ||= ENV.fetch("AGILIX_BUZZ_URL", "https://api.agilixbuzz.com")
165
+ def default_agilix_url_endpoint
166
+ ENV.fetch("AGILIX_BUZZ_URL", "https://api.agilixbuzz.com")
166
167
  end
167
168
 
168
169
  def agilix_url_base
@@ -84,16 +84,16 @@ module Agilix
84
84
  # api.proxy_sso_link userid: 57181
85
85
  def proxy_sso_link(userid: , redirect_url: "home")
86
86
  response = proxy userid: userid
87
- sso = {
88
- "customization": {
89
- "authentication": {
90
- "provider": {
91
- "server": "https://www.google.com"
92
- }
93
- }
94
- }
95
- }
96
- self.update_domains [ {domainid: response.dig('response', 'user', 'domainid'), data: sso}]
87
+ # sso = {
88
+ # "customization": {
89
+ # "authentication": {
90
+ # "provider": {
91
+ # "server": "https://www.google.com"
92
+ # }
93
+ # }
94
+ # }
95
+ # }
96
+ # self.update_domains [ {domainid: response.dig('response', 'user', 'domainid'), data: sso}]
97
97
  userspace = response.dig('response', 'user', 'userspace')
98
98
  token = response.dig('response', 'user', 'token')
99
99
  # "https://api.leaderinme.net/SSOLogin?domainid=#{response.dig('response', 'user', 'domainid')}&url=/home&token=#{response.dig('response', 'user', 'token')}"
@@ -1,3 +1,3 @@
1
1
  module Agilix
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-05 00:00:00.000000000 Z
11
+ date: 2022-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  requirements: []
220
- rubygems_version: 3.0.3
220
+ rubygems_version: 3.1.6
221
221
  signing_key:
222
222
  specification_version: 4
223
223
  summary: Agilix Buzz API wrapper