bunny_app 1.28.0 → 1.29.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: dccce34d5f6262056050a985f9e8130bbec9ee245c9f4aca9fc9a8742f3e83bc
|
4
|
+
data.tar.gz: 34db494e834dec66fdfee684447db25e5599a1ffa8d09f2a16c70f2fbdb7d552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b104a3cc34f6dea3f964a1f5e6309dafd81be3d2b3e41a443c8a7385d02d9116d6d0328e26ec3ddb75900151d7e57fa2b6c1324004a991cb85dc979aea2f889
|
7
|
+
data.tar.gz: 45e63afdd192f68abbb6c91106d04816a8d57d56a12b085b096953ba65a656a3da93240bf1a102de91855969959a0dc2ddd871108b87d0805f01016ad0eaebf3
|
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.29.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-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|