bunny_app 1.26.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: c4a0f74a46c3e5505608ea9389c134bd7e3a8a0fa6393fe897c3eda833bef8d3
4
- data.tar.gz: a341f3d6e05c48d8bb56b153a3a15249203278dda2f9e21e32070129837d9b79
3
+ metadata.gz: 7c77683e4ecd747af7b3ba4d99b748daa52b201e715024a2962dde274d582757
4
+ data.tar.gz: 82c6c503f29bea682bb4e5259ec903f929d97d28e427ff01c7efcf5547b6c657
5
5
  SHA512:
6
- metadata.gz: d2a1c374be36a3bc46afd029156b9cfcc037a3ce0bba6118649d5355427ea26704c90e1cc2df66221ec6dabde86bb059b2c0346897dead83da3954fe624c9c95
7
- data.tar.gz: 59552af3c0b3b70e6be6f666f8ebf6ba2e80c854230ee5fcdfdfce3ff6cbaf3772443d5ac9b27947585d434e1d4b4fb9a1d39f044f58eb4967db492d9fc267e4
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BunnyApp
4
- VERSION = '1.26.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.26.0
4
+ version: 1.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bunny