drillbit 2.2.1 → 2.2.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/drillbit/authorizers/parameters/filtering.rb +0 -3
- data/lib/drillbit/authorizers/parameters/resource.rb +0 -1
- data/lib/drillbit/middleware/api_request_validator.rb +0 -1
- data/lib/drillbit/middleware/parameter_parser.rb +0 -4
- data/lib/drillbit/middleware/token_processor.rb +0 -1
- data/lib/drillbit/tokens/json_web_token.rb +0 -2
- data/lib/drillbit/tokens/json_web_tokens/password_reset.rb +5 -2
- data/lib/drillbit/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a0788697b4ea28f37b25f1ba8a104f34189edd58
         | 
| 4 | 
            +
              data.tar.gz: 74f0e136c62057d6681acb69afff30e2a593b9ab
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8ed9075b4c05fba27a26d3de78fb942ef8b4eb59c2021886ee6b8c0fe3120146298ae13d73a41585505aa5b9551ea0adc2f1dc80ad7eaa0e1ba2d37e18ba9ccf
         | 
| 7 | 
            +
              data.tar.gz: f9156f84f36297579c2f53daa54f8e2be98ffb95e4c2c0fb18deae3b04110e844022090c78032db1f81b2e15affbe58f656d45a49c7417e2214857a7928c32de
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | 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,
         | 
| @@ -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 |  | 
| @@ -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), | 
| 9 | 
            -
             | 
| 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
         | 
    
        data/lib/drillbit/version.rb
    CHANGED
    
    
    
        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. | 
| 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- | 
| 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 |