bunny_app 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c77683e4ecd747af7b3ba4d99b748daa52b201e715024a2962dde274d582757
4
- data.tar.gz: 82c6c503f29bea682bb4e5259ec903f929d97d28e427ff01c7efcf5547b6c657
3
+ metadata.gz: df5ec4cdad5386f4d1a11336d8ba9e0224057d69145bc4da92582edd7926e39f
4
+ data.tar.gz: 6d8797cacac0668b099c7e0f9a3f5e05ed7871dc6732940b0e6d02456e152003
5
5
  SHA512:
6
- metadata.gz: dc4090284779f66caf383539cd9ac12d906deec95618aa5175e9ff5e3e5d98249b98209b4d32a8c910478bc550493b3d099f9a1ad894215f34625289373ed764
7
- data.tar.gz: 4dd2c033e29ec4f1f9f7381048ff0fb13a0a7846a06ca54b0d4ba7c74246d96deb600d6b0e7f0778ed0f067b59d15209a0c084f9cf2ebbc4923336e66a32dc06
6
+ metadata.gz: fabb07788312eb29c7a0aadff1ce7a72dfa500d490101a6367b33e6aa4e4d6fabe89bc701c19c773083789ead16d6677215633807e486596a357d830f101c3fd
7
+ data.tar.gz: d072331b7c3450ee18a904dd7985704bc347c3ffb75b6844024ec909a10e802cde3601b8f0c6d361ffee7e120d71fb0a79d140d0606267186bd1659b3a21ca2b
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BunnyApp
4
- VERSION = '1.28.0'
4
+ VERSION = '1.30.0'
5
5
  end
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.28.0
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-01-25 00:00:00.000000000 Z
12
+ date: 2023-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty