bunny_app 1.28.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bunny_app/client.rb +0 -6
- data/lib/bunny_app/portal_session.rb +4 -2
- data/lib/bunny_app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df5ec4cdad5386f4d1a11336d8ba9e0224057d69145bc4da92582edd7926e39f
|
4
|
+
data.tar.gz: 6d8797cacac0668b099c7e0f9a3f5e05ed7871dc6732940b0e6d02456e152003
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fabb07788312eb29c7a0aadff1ce7a72dfa500d490101a6367b33e6aa4e4d6fabe89bc701c19c773083789ead16d6677215633807e486596a357d830f101c3fd
|
7
|
+
data.tar.gz: d072331b7c3450ee18a904dd7985704bc347c3ffb75b6844024ec909a10e802cde3601b8f0c6d361ffee7e120d71fb0a79d140d0606267186bd1659b3a21ca2b
|
data/lib/bunny_app/client.rb
CHANGED
@@ -19,8 +19,6 @@ module BunnyApp
|
|
19
19
|
'Content-Type' => 'application/json',
|
20
20
|
'Authorization' => "Bearer #{BunnyApp.access_token}"
|
21
21
|
}
|
22
|
-
|
23
|
-
@headers['Host'] = host_header unless host_header.nil?
|
24
22
|
end
|
25
23
|
|
26
24
|
def fetch_access_token
|
@@ -91,9 +89,5 @@ module BunnyApp
|
|
91
89
|
def verify_ssl
|
92
90
|
return true unless ENV['IGNORE_SSL']
|
93
91
|
end
|
94
|
-
|
95
|
-
def host_header
|
96
|
-
ENV.fetch('BUNNY_HOST_HEADER', nil)
|
97
|
-
end
|
98
92
|
end
|
99
93
|
end
|
@@ -9,9 +9,11 @@ module BunnyApp
|
|
9
9
|
}
|
10
10
|
GRAPHQL
|
11
11
|
|
12
|
-
def self.create(tenant_code:)
|
12
|
+
def self.create(tenant_code:, expiry_hours: 24, return_url: nil)
|
13
13
|
variables = {
|
14
|
-
tenantCode: tenant_code
|
14
|
+
tenantCode: tenant_code,
|
15
|
+
returnUrl: return_url,
|
16
|
+
expiry: expiry_hours
|
15
17
|
}
|
16
18
|
|
17
19
|
Client.new.query(@portal_session_create_mutation, variables)
|
data/lib/bunny_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bunny
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|