drillbit 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: 362e3bda774e3c8a662b8dc640281e0ae389c953
4
- data.tar.gz: ffa6d8b3eb8c83f52496a103378b994302d01fc2
3
+ metadata.gz: 6d3a3b24d1a55b56e25bef531ba272d232b88866
4
+ data.tar.gz: 03c5a523c82bd9dcaad960229d6dc10797299a8f
5
5
  SHA512:
6
- metadata.gz: b6d144f2c1b07894b0ed5ebf08e308720b882ed3892dea1e55f4a4a77a3dd348d933b56be2f9357b19bc651759380d9b52834274745e3651b76d3f32648ad2da
7
- data.tar.gz: e0be2925d007e7771501b62fc28d2561445edd900ea584ccc6685c90de6b19cca7df02340e5342fbd7efd41bc0791d5bcc87c7d939e11b827ec0f339b6ff0405
6
+ metadata.gz: fe8345734ccb77aa79440b4a24df55f97488a13bcdad277856337b6759499581ac5597923ec9aac7534baac6fd649973b03796c05df0c66a002a2100f52a05f1
7
+ data.tar.gz: 64d7f04e658f77b83cbc12cad4a6fb6f2d81f227ce65bffcce4a2c346defafa7d3e5fff208ac0c498e86153c45a094c13cef0951dfb81b202b277eeed31825b1
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -9,14 +9,13 @@ module Drillbit
9
9
  module Requests
10
10
  class Rails < Base
11
11
  def authorization_token_from_params
12
- case
13
- when request.params.key?(JSON_WEB_TOKEN_PARAM_NAME)
12
+ if request.params.key?(JSON_WEB_TOKEN_PARAM_NAME)
14
13
  Tokens::JsonWebToken.__send__(
15
14
  "from_#{Drillbit.configuration.token_type.downcase}",
16
15
  request.params[JSON_WEB_TOKEN_PARAM_NAME] || '',
17
16
  private_key: token_private_key,
18
17
  )
19
- when request.params.key?(BASE64_TOKEN_PARAM_NAME)
18
+ elsif request.params.key?(BASE64_TOKEN_PARAM_NAME)
20
19
  Tokens::Base64.convert(raw_token: request.params[BASE64_TOKEN_PARAM_NAME] || '')
21
20
  else
22
21
  Tokens::Null.instance
@@ -146,7 +146,7 @@ class JsonWebToken
146
146
  end
147
147
 
148
148
  def roles
149
- @roles ||= data['rol'].split(',')
149
+ @roles ||= data.fetch('rol', '').split(',')
150
150
  end
151
151
 
152
152
  def to_jwt
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Drillbit
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drillbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -31,7 +31,7 @@ cert_chain:
31
31
  zRIv8lqQM8QFT76rzP5SBCERwN+ltKAFbQ5/FwmZNGWYnmCP3RZMQiRnbh+9H9lh
32
32
  mlbwaYZTjgsXq6cy8N38EecewgBbZYS1IYJraE/M
33
33
  -----END CERTIFICATE-----
34
- date: 2016-05-26 00:00:00.000000000 Z
34
+ date: 2016-06-02 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: erratum
metadata.gz.sig CHANGED
Binary file