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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d67f3187a50fd1d998075d81e8f345c78a5f231b1d907638284610509533ff05
4
- data.tar.gz: 8f259894ea6e004c8c87de34372fb1a660377b2f2e4ec3ee873a3a0bdd8777b6
3
+ metadata.gz: 7c77683e4ecd747af7b3ba4d99b748daa52b201e715024a2962dde274d582757
4
+ data.tar.gz: 82c6c503f29bea682bb4e5259ec903f929d97d28e427ff01c7efcf5547b6c657
5
5
  SHA512:
6
- metadata.gz: 451b3e299194c86da0439f0ae1a736872d73a040849bf11cb7dab34dc67f765e7442b6e1468ec8ee09c8307f80d0704b42ecd8c3f30d706d44485a546eeb87d8
7
- data.tar.gz: 88e7d2fbd433ef046a67e5b7c8d9ffb7579f2ea39a5a245266489cc9af4486b9bf7f312be331dc4f63a554b5a5d4921456ede28907ea667b9e9206c77929d028
6
+ metadata.gz: dc4090284779f66caf383539cd9ac12d906deec95618aa5175e9ff5e3e5d98249b98209b4d32a8c910478bc550493b3d099f9a1ad894215f34625289373ed764
7
+ data.tar.gz: 4dd2c033e29ec4f1f9f7381048ff0fb13a0a7846a06ca54b0d4ba7c74246d96deb600d6b0e7f0778ed0f067b59d15209a0c084f9cf2ebbc4923336e66a32dc06
@@ -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:, expiry_hours: 24, return_url: nil)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BunnyApp
4
- VERSION = '1.27.0'
4
+ VERSION = '1.28.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.27.0
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-06-16 00:00:00.000000000 Z
12
+ date: 2023-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty