drillbit 2.2.1 → 2.2.2

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
  SHA1:
3
- metadata.gz: d406056a81f25127ca8915b4f18010b97a9218eb
4
- data.tar.gz: c14836c47439c54959ec68ec1788d5a3ac623b02
3
+ metadata.gz: a0788697b4ea28f37b25f1ba8a104f34189edd58
4
+ data.tar.gz: 74f0e136c62057d6681acb69afff30e2a593b9ab
5
5
  SHA512:
6
- metadata.gz: 9fc6509640e2d8c19ff7f14baf9c21405a838d6c7efff3cf432bd6f97b0266984e20f886b15c1e89b2d3e4c423b2d7c11d5cad8381abcff521c87941ec3e9b7e
7
- data.tar.gz: 56bded79deb9eea4514c7d923eb553a3cfd0c49d762830cb695982dcd41067ea4919f4d40a13e43306ed64d691cba2decefd9978c3b7b5ebc066fd70ba2bbc9b
6
+ metadata.gz: 8ed9075b4c05fba27a26d3de78fb942ef8b4eb59c2021886ee6b8c0fe3120146298ae13d73a41585505aa5b9551ea0adc2f1dc80ad7eaa0e1ba2d37e18ba9ccf
7
+ data.tar.gz: f9156f84f36297579c2f53daa54f8e2be98ffb95e4c2c0fb18deae3b04110e844022090c78032db1f81b2e15affbe58f656d45a49c7417e2214857a7928c32de
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require 'drillbit/authorizers/parameters'
3
3
 
4
- # :reek:UnusedPrivateMethod
5
4
  module Drillbit
6
5
  module Authorizers
7
6
  class Parameters
@@ -46,8 +45,6 @@ class Filtering < Authorizers::Parameters
46
45
  end
47
46
  end
48
47
 
49
- # :reek:BooleanParameter
50
- # :reek:DuplicateMethodCall
51
48
  def override_filter_parameter(name:,
52
49
  value:,
53
50
  only_when_present: false,
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require 'drillbit/authorizers/parameters'
3
3
 
4
- # :reek:UnusedPrivateMethod
5
4
  module Drillbit
6
5
  module Authorizers
7
6
  class Parameters
@@ -16,7 +16,6 @@ class ApiRequestValidator
16
16
  end
17
17
 
18
18
  # rubocop:disable Metrics/LineLength
19
- # :reek:FeatureEnvy
20
19
  def call(env)
21
20
  env['HTTP_X_APPLICATION_NAME'] = Drillbit.configuration.application_name
22
21
 
@@ -10,7 +10,6 @@ class ParameterParser
10
10
  @app = app
11
11
  end
12
12
 
13
- # :reek:FeatureEnvy
14
13
  def call(env)
15
14
  env['QUERY_STRING'] = underscore_query_string(env['QUERY_STRING'])
16
15
 
@@ -36,7 +35,6 @@ class ParameterParser
36
35
  JSON.dump(data)
37
36
  end
38
37
 
39
- # :reek:UtilityFunction
40
38
  def underscore_query_string(query_string)
41
39
  return query_string unless query_string.respond_to? :gsub
42
40
 
@@ -45,8 +43,6 @@ class ParameterParser
45
43
  end
46
44
  end
47
45
 
48
- # :reek:UtilityFunction
49
- # :reek:FeatureEnvy
50
46
  def underscore_parameters(parameters)
51
47
  return parameters unless parameters.is_a? Hash
52
48
 
@@ -9,7 +9,6 @@ class TokenProcessor
9
9
  @app = app
10
10
  end
11
11
 
12
- # :reek:FeatureEnvy
13
12
  def call(env)
14
13
  request = Requests::Base.resolve(env)
15
14
  token = request.authorization_token
@@ -5,7 +5,6 @@ require 'drillbit/configuration'
5
5
  require 'drillbit/tokens/json_web_tokens/invalid'
6
6
  require 'drillbit/tokens/json_web_tokens/null'
7
7
 
8
- # :reek:TooManyMethods
9
8
  module Drillbit
10
9
  module Tokens
11
10
  class JsonWebToken
@@ -50,7 +49,6 @@ class JsonWebToken
50
49
  end
51
50
 
52
51
  # rubocop:disable Metrics/ParameterLists, Metrics/AbcSize, Metrics/LineLength
53
- # :reek:DuplicateMethodCall
54
52
  def self.build(id: SecureRandom.uuid,
55
53
  audience: Drillbit.configuration.default_token_audience,
56
54
  expiration: Time.now.utc.to_i + (60 * Drillbit.configuration.default_token_expiration_in_minutes),
@@ -5,8 +5,11 @@ module Drillbit
5
5
  module Tokens
6
6
  module JsonWebTokens
7
7
  class PasswordReset < JsonWebToken
8
- def self.build(expiration: Time.now.utc.to_i + (30 * 60), **attrs)
9
- super(expiration: expiration, **attrs)
8
+ def self.build(expiration: Time.now.utc.to_i + (30 * 60),
9
+ roles: ['password_reset'],
10
+ **attrs)
11
+
12
+ super(expiration: expiration, roles: roles, **attrs)
10
13
  end
11
14
  end
12
15
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Drillbit
3
- VERSION = '2.2.1'
3
+ VERSION = '2.2.2'
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.2.1
4
+ version: 2.2.2
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-06-09 00:00:00.000000000 Z
34
+ date: 2016-07-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