healthier 0.1.7 → 0.1.71

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: 851390d021df1149267018e9ec714cee68168c2f1f9b02c0998790c33da63005
4
- data.tar.gz: d6468040657b6ef60a75d68650c054966e359c9e16e076104e15022daf0ac41c
3
+ metadata.gz: aad15d777d50bce0e5ef2f620b4f34249298dc87b709b851fa06df41b3eb7152
4
+ data.tar.gz: 6fd08ae06b1c5e269b248776507c6fa20cbcb57502f5a7dc7004426559bb627a
5
5
  SHA512:
6
- metadata.gz: c4d56fa78ad0f10d2d3cacf39277926636883acbba04c51f0bf85f5cc9888026f3ab4c50484c79a7d7d71e9a644c324ed8421e7a7c6ae5de407380fb114bf397
7
- data.tar.gz: d53429a445fdc042ec7e73eb9a5f6fe80ec017314a85c287d42074e7fefca2fc67c0417e374effd23c858fa43685dd3916bded4522310ed8e9d58c7d5cca78f3
6
+ metadata.gz: 3f3540f1b7d0f90603e3ba7776b76873c761c11b28bfc8cfb5e3424040e34b0f9bfe3b277085a8b7ffc11eff6d5d7e896cfc57f43ce1a8d200ce9304563296d1
7
+ data.tar.gz: 37104cd689081b52a891c56feae0f7f6686f09afea731ad3120cc8df21dba3b8f94b57f4e49de3c411dc53f85069b415a14a54ad61e3d1d4b2cbc80bcf220b10
@@ -17,12 +17,8 @@ module Healthier
17
17
  end
18
18
 
19
19
  def authenticate_with_bearer_token
20
- tok = request.authorization.to_s
21
- raise StandardError, 'Access Denied' unless tok.starts_with?('Bearer')
22
-
23
- controller.authenticate_with_http_token do |token, _options|
24
- raise StandardError, 'Invalid token' unless ENV['BEARER_TOKEN'] == token
25
- end
20
+ tok = request.headers['MONITORING']
21
+ raise StandardError, 'Invalid token' unless tok.eql?(ENV['BEARER_TOKEN'])
26
22
  end
27
23
 
28
24
  def authenticate_with_basic_auth
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Healthier
4
4
  # MAJOR.MINOR.PATCH
5
- VERSION = '0.1.7'
5
+ VERSION = '0.1.71'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: healthier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nima Yonten