bunny_app 1.27.0 → 1.28.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 +6 -0
- data/lib/bunny_app/portal_session.rb +2 -4
- 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: 7c77683e4ecd747af7b3ba4d99b748daa52b201e715024a2962dde274d582757
|
4
|
+
data.tar.gz: 82c6c503f29bea682bb4e5259ec903f929d97d28e427ff01c7efcf5547b6c657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4090284779f66caf383539cd9ac12d906deec95618aa5175e9ff5e3e5d98249b98209b4d32a8c910478bc550493b3d099f9a1ad894215f34625289373ed764
|
7
|
+
data.tar.gz: 4dd2c033e29ec4f1f9f7381048ff0fb13a0a7846a06ca54b0d4ba7c74246d96deb600d6b0e7f0778ed0f067b59d15209a0c084f9cf2ebbc4923336e66a32dc06
|
data/lib/bunny_app/client.rb
CHANGED
@@ -19,6 +19,8 @@ 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?
|
22
24
|
end
|
23
25
|
|
24
26
|
def fetch_access_token
|
@@ -89,5 +91,9 @@ module BunnyApp
|
|
89
91
|
def verify_ssl
|
90
92
|
return true unless ENV['IGNORE_SSL']
|
91
93
|
end
|
94
|
+
|
95
|
+
def host_header
|
96
|
+
ENV.fetch('BUNNY_HOST_HEADER', nil)
|
97
|
+
end
|
92
98
|
end
|
93
99
|
end
|
@@ -9,11 +9,9 @@ module BunnyApp
|
|
9
9
|
}
|
10
10
|
GRAPHQL
|
11
11
|
|
12
|
-
def self.create(tenant_code
|
12
|
+
def self.create(tenant_code:)
|
13
13
|
variables = {
|
14
|
-
tenantCode: tenant_code
|
15
|
-
returnUrl: return_url,
|
16
|
-
expiry: expiry_hours
|
14
|
+
tenantCode: tenant_code
|
17
15
|
}
|
18
16
|
|
19
17
|
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.28.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-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|