omniauth 1.2.1 → 1.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.
Potentially problematic release.
This version of omniauth might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -13
- data/.travis.yml +1 -6
- data/Gemfile +6 -10
- data/Gemfile.rack-1.3.x +2 -1
- data/README.md +5 -6
- data/Rakefile +2 -2
- data/lib/omniauth.rb +4 -2
- data/lib/omniauth/auth_hash.rb +1 -1
- data/lib/omniauth/builder.rb +1 -1
- data/lib/omniauth/strategy.rb +5 -5
- data/lib/omniauth/test/phony_session.rb +12 -8
- data/lib/omniauth/version.rb +1 -1
- data/omniauth.gemspec +8 -10
- data/spec/helper.rb +1 -1
- data/spec/omniauth/auth_hash_spec.rb +1 -1
- data/spec/omniauth/builder_spec.rb +1 -1
- data/spec/omniauth/strategies/developer_spec.rb +2 -2
- data/spec/omniauth/strategy_spec.rb +6 -6
- metadata +8 -28
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/certs/sferik.pem +0 -20
- metadata.gz.sig +0 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0ccca6a859c1cf14b111691d6447c4fda9e6a392
         | 
| 4 | 
            +
              data.tar.gz: 9b5e43d88cdc536a6e2e31111ea81f547d18abe9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: cae2202a6cfd9bbd4f0f5bc5b68d613e4890458ac14cdd6e919e1e53db3cb5835b17c3b0d426a4cce305b4508943534e7ebde9b2638fa1864cf3e929b3393603
         | 
| 7 | 
            +
              data.tar.gz: 4ea31502c6e79c25aa73e39340becc0302d4001fad09b0921ad08f211e6467a9b2a9982be5cadf63975b6f0e8af85291500492de52913af240d38da9a6de7e99
         | 
    
        data/.rubocop.yml
    CHANGED
    
    | @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            AllCops:
         | 
| 2 | 
            -
               | 
| 2 | 
            +
              Include:
         | 
| 3 3 | 
             
                - 'Gemfile'
         | 
| 4 4 | 
             
                - 'Rakefile'
         | 
| 5 5 | 
             
                - 'omniauth.gemspec'
         | 
| @@ -11,7 +11,7 @@ ParameterLists: | |
| 11 11 |  | 
| 12 12 | 
             
            MethodLength:
         | 
| 13 13 | 
             
              CountComments: false
         | 
| 14 | 
            -
              Max:  | 
| 14 | 
            +
              Max: 15
         | 
| 15 15 |  | 
| 16 16 | 
             
            # Avoid more than `Max` levels of nesting.
         | 
| 17 17 | 
             
            BlockNesting:
         | 
| @@ -25,15 +25,6 @@ CollectionMethods: | |
| 25 25 | 
             
                find:     'detect'
         | 
| 26 26 | 
             
                find_all: 'select'
         | 
| 27 27 |  | 
| 28 | 
            -
            # Do not force public/protected/private keyword to be indented at the same
         | 
| 29 | 
            -
            # level as the def keyword. My personal preference is to outdent these keywords
         | 
| 30 | 
            -
            # because I think when scanning code it makes it easier to identify the
         | 
| 31 | 
            -
            # sections of code and visually separate them. When the keyword is at the same
         | 
| 32 | 
            -
            # level I think it sort of blends in with the def keywords and makes it harder
         | 
| 33 | 
            -
            # to scan the code and see where the sections are.
         | 
| 34 | 
            -
            AccessModifierIndentation:
         | 
| 35 | 
            -
              Enabled: false
         | 
| 36 | 
            -
             | 
| 37 28 | 
             
            # Limit line length
         | 
| 38 29 | 
             
            LineLength:
         | 
| 39 30 | 
             
              Enabled: false
         | 
| @@ -78,5 +69,13 @@ Lambda: | |
| 78 69 | 
             
              Enabled: false
         | 
| 79 70 |  | 
| 80 71 | 
             
            HandleExceptions:
         | 
| 81 | 
            -
               | 
| 82 | 
            -
             | 
| 72 | 
            +
              Enabled: false
         | 
| 73 | 
            +
             | 
| 74 | 
            +
            RaiseArgs:
         | 
| 75 | 
            +
              EnforcedStyle: compact
         | 
| 76 | 
            +
             | 
| 77 | 
            +
            TrailingComma:
         | 
| 78 | 
            +
              Enabled: false
         | 
| 79 | 
            +
             | 
| 80 | 
            +
            EachWithObject:
         | 
| 81 | 
            +
              Enabled: false
         | 
    
        data/.travis.yml
    CHANGED
    
    | @@ -1,8 +1,3 @@ | |
| 1 | 
            -
            before_install:
         | 
| 2 | 
            -
              - gem update bundler
         | 
| 3 | 
            -
              - bundle --version
         | 
| 4 | 
            -
              - gem update --system 2.1.11
         | 
| 5 | 
            -
              - gem --version
         | 
| 6 1 | 
             
            bundler_args: --without development
         | 
| 7 2 | 
             
            gemfile:
         | 
| 8 3 | 
             
              - Gemfile
         | 
| @@ -14,7 +9,7 @@ rvm: | |
| 14 9 | 
             
              - 1.9.3
         | 
| 15 10 | 
             
              - 2.0.0
         | 
| 16 11 | 
             
              - 2.1.0
         | 
| 17 | 
            -
              - rbx
         | 
| 12 | 
            +
              - rbx-2
         | 
| 18 13 | 
             
              - ruby-head
         | 
| 19 14 | 
             
            matrix:
         | 
| 20 15 | 
             
              include:
         | 
    
        data/Gemfile
    CHANGED
    
    | @@ -14,24 +14,20 @@ group :development do | |
| 14 14 | 
             
              gem 'kramdown'
         | 
| 15 15 | 
             
              gem 'plymouth', :platforms => [:ruby_19, :ruby_20, :ruby_21]
         | 
| 16 16 | 
             
              gem 'pry'
         | 
| 17 | 
            -
              gem 'pry-debugger', :platforms => [:mri_19, :mri_20 | 
| 17 | 
            +
              gem 'pry-debugger', :platforms => [:mri_19, :mri_20]
         | 
| 18 | 
            +
              gem 'pry-byebug', :platforms => [:mri_21]
         | 
| 18 19 | 
             
              gem 'rb-fsevent'
         | 
| 19 20 | 
             
            end
         | 
| 20 21 |  | 
| 21 22 | 
             
            group :test do
         | 
| 22 23 | 
             
              gem 'coveralls', :require => false
         | 
| 23 | 
            -
              gem 'json', '>= 1.8.1', :platforms => [:jruby, : | 
| 24 | 
            +
              gem 'json', '>= 1.8.1', :platforms => [:jruby, :ruby_18, :ruby_19]
         | 
| 24 25 | 
             
              gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
         | 
| 25 26 | 
             
              gem 'rack-test'
         | 
| 26 | 
            -
              gem ' | 
| 27 | 
            -
              gem ' | 
| 27 | 
            +
              gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
         | 
| 28 | 
            +
              gem 'rspec', '~> 3.0'
         | 
| 29 | 
            +
              gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21]
         | 
| 28 30 | 
             
              gem 'simplecov', :require => false
         | 
| 29 31 | 
             
            end
         | 
| 30 32 |  | 
| 31 | 
            -
            platforms :rbx do
         | 
| 32 | 
            -
              gem 'racc'
         | 
| 33 | 
            -
              gem 'rubinius-coverage', '~> 2.0'
         | 
| 34 | 
            -
              gem 'rubysl', '~> 2.0'
         | 
| 35 | 
            -
            end
         | 
| 36 | 
            -
             | 
| 37 33 | 
             
            gemspec
         | 
    
        data/Gemfile.rack-1.3.x
    CHANGED
    
    | @@ -10,8 +10,9 @@ group :test do | |
| 10 10 | 
             
              gem 'json', '>= 1.8.1', :platforms => [:jruby, :rbx, :ruby_18, :ruby_19]
         | 
| 11 11 | 
             
              gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
         | 
| 12 12 | 
             
              gem 'rack-test'
         | 
| 13 | 
            +
              gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
         | 
| 13 14 | 
             
              gem 'rspec', '>= 2.14'
         | 
| 14 | 
            -
              gem 'rubocop', '>= 0. | 
| 15 | 
            +
              gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21]
         | 
| 15 16 | 
             
              gem 'simplecov', :require => false
         | 
| 16 17 | 
             
            end
         | 
| 17 18 |  | 
    
        data/README.md
    CHANGED
    
    | @@ -1,10 +1,10 @@ | |
| 1 1 | 
             
            # OmniAuth: Standardized Multi-Provider Authentication
         | 
| 2 2 |  | 
| 3 | 
            -
            [][gem]
         | 
| 4 | 
            +
            [][travis]
         | 
| 5 | 
            +
            [][gemnasium]
         | 
| 6 | 
            +
            [][codeclimate]
         | 
| 7 | 
            +
            [][coveralls]
         | 
| 8 8 | 
             
            [](https://bitdeli.com/free "Bitdeli Badge")
         | 
| 9 9 |  | 
| 10 10 | 
             
            [gem]: https://rubygems.org/gems/omniauth
         | 
| @@ -13,7 +13,6 @@ | |
| 13 13 | 
             
            [codeclimate]: https://codeclimate.com/github/intridea/omniauth
         | 
| 14 14 | 
             
            [coveralls]: https://coveralls.io/r/intridea/omniauth
         | 
| 15 15 |  | 
| 16 | 
            -
             | 
| 17 16 | 
             
            **OmniAuth 1.0 has several breaking changes from version 0.x. You can set
         | 
| 18 17 | 
             
            the dependency to `~> 0.3.2` if you do not wish to make the more difficult
         | 
| 19 18 | 
             
            upgrade. See [the wiki](https://github.com/intridea/omniauth/wiki/Upgrading-to-1.0)
         | 
    
        data/Rakefile
    CHANGED
    
    
    
        data/lib/omniauth.rb
    CHANGED
    
    | @@ -87,11 +87,13 @@ module OmniAuth | |
| 87 87 | 
             
                  mock.keys.each do |key|
         | 
| 88 88 | 
             
                    mock[key.to_s] = mock.delete(key)
         | 
| 89 89 | 
             
                  end
         | 
| 90 | 
            -
                  mock.each_pair do | | 
| 90 | 
            +
                  mock.each_pair do |_key, val|
         | 
| 91 91 | 
             
                    if val.is_a? Hash
         | 
| 92 92 | 
             
                      val.keys.each do |subkey|
         | 
| 93 93 | 
             
                        val[subkey.to_s] = val.delete(subkey)
         | 
| 94 94 | 
             
                      end
         | 
| 95 | 
            +
                    else
         | 
| 96 | 
            +
                      next
         | 
| 95 97 | 
             
                    end
         | 
| 96 98 | 
             
                  end
         | 
| 97 99 |  | 
| @@ -113,7 +115,7 @@ module OmniAuth | |
| 113 115 | 
             
                  camelizations[name.to_s] = camelized.to_s
         | 
| 114 116 | 
             
                end
         | 
| 115 117 |  | 
| 116 | 
            -
                attr_writer | 
| 118 | 
            +
                attr_writer :on_failure, :before_callback_phase, :before_options_phase, :before_request_phase
         | 
| 117 119 | 
             
                attr_accessor :failure_raise_out_environments, :path_prefix, :allowed_request_methods, :form_css, :test_mode, :mock_auth, :full_host, :camelizations, :logger
         | 
| 118 120 | 
             
              end
         | 
| 119 121 |  | 
    
        data/lib/omniauth/auth_hash.rb
    CHANGED
    
    
    
        data/lib/omniauth/builder.rb
    CHANGED
    
    | @@ -47,7 +47,7 @@ module OmniAuth | |
| 47 47 | 
             
                    begin
         | 
| 48 48 | 
             
                      middleware = OmniAuth::Strategies.const_get("#{OmniAuth::Utils.camelize(klass.to_s)}")
         | 
| 49 49 | 
             
                    rescue NameError
         | 
| 50 | 
            -
                      raise | 
| 50 | 
            +
                      raise(LoadError.new("Could not find matching strategy for #{klass.inspect}. You may need to install an additional gem (such as omniauth-#{klass})."))
         | 
| 51 51 | 
             
                    end
         | 
| 52 52 | 
             
                  end
         | 
| 53 53 |  | 
    
        data/lib/omniauth/strategy.rb
    CHANGED
    
    | @@ -126,7 +126,7 @@ module OmniAuth | |
| 126 126 | 
             
                #   will be passed through and set to the appropriate values.
         | 
| 127 127 | 
             
                #
         | 
| 128 128 | 
             
                # @yield [Options] Yields options to block for further configuration.
         | 
| 129 | 
            -
                def initialize(app, *args, &block)
         | 
| 129 | 
            +
                def initialize(app, *args, &block) # rubocop:disable UnusedMethodArgument
         | 
| 130 130 | 
             
                  @app = app
         | 
| 131 131 | 
             
                  @env = nil
         | 
| 132 132 | 
             
                  @options = self.class.default_options.dup
         | 
| @@ -140,13 +140,13 @@ module OmniAuth | |
| 140 140 | 
             
                  end
         | 
| 141 141 |  | 
| 142 142 | 
             
                  # Make sure that all of the args have been dealt with, otherwise error out.
         | 
| 143 | 
            -
                  fail(ArgumentError | 
| 143 | 
            +
                  fail(ArgumentError.new("Received wrong number of arguments. #{args.inspect}")) unless args.empty?
         | 
| 144 144 |  | 
| 145 145 | 
             
                  yield options if block_given?
         | 
| 146 146 | 
             
                end
         | 
| 147 147 |  | 
| 148 148 | 
             
                def inspect
         | 
| 149 | 
            -
                  "#<#{self.class | 
| 149 | 
            +
                  "#<#{self.class}>"
         | 
| 150 150 | 
             
                end
         | 
| 151 151 |  | 
| 152 152 | 
             
                # Direct access to the OmniAuth logger, automatically prefixed
         | 
| @@ -256,7 +256,7 @@ module OmniAuth | |
| 256 256 | 
             
                # This is called in lieu of the normal request process
         | 
| 257 257 | 
             
                # in the event that OmniAuth has been configured to be
         | 
| 258 258 | 
             
                # in test mode.
         | 
| 259 | 
            -
                def mock_call!( | 
| 259 | 
            +
                def mock_call!(*)
         | 
| 260 260 | 
             
                  return mock_request_call if on_request_path?
         | 
| 261 261 | 
             
                  return mock_callback_call if on_callback_path?
         | 
| 262 262 | 
             
                  call_app!
         | 
| @@ -467,7 +467,7 @@ module OmniAuth | |
| 467 467 | 
             
                  env['omniauth.error.strategy'] = self
         | 
| 468 468 |  | 
| 469 469 | 
             
                  if exception
         | 
| 470 | 
            -
                    log :error, "Authentication failure! #{message_key}: #{exception.class | 
| 470 | 
            +
                    log :error, "Authentication failure! #{message_key}: #{exception.class}, #{exception.message}"
         | 
| 471 471 | 
             
                  else
         | 
| 472 472 | 
             
                    log :error, "Authentication failure! #{message_key} encountered."
         | 
| 473 473 | 
             
                  end
         | 
| @@ -1,11 +1,15 @@ | |
| 1 | 
            -
             | 
| 2 | 
            -
               | 
| 3 | 
            -
                 | 
| 4 | 
            -
             | 
| 1 | 
            +
            module OmniAuth
         | 
| 2 | 
            +
              module Test
         | 
| 3 | 
            +
                class PhonySession
         | 
| 4 | 
            +
                  def initialize(app)
         | 
| 5 | 
            +
                    @app = app
         | 
| 6 | 
            +
                  end
         | 
| 5 7 |  | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 8 | 
            +
                  def call(env)
         | 
| 9 | 
            +
                    @session ||= (env['rack.session'] || {})
         | 
| 10 | 
            +
                    env['rack.session'] = @session
         | 
| 11 | 
            +
                    @app.call(env)
         | 
| 12 | 
            +
                  end
         | 
| 13 | 
            +
                end
         | 
| 10 14 | 
             
              end
         | 
| 11 15 | 
             
            end
         | 
    
        data/lib/omniauth/version.rb
    CHANGED
    
    
    
        data/omniauth.gemspec
    CHANGED
    
    | @@ -4,21 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
| 4 4 | 
             
            require 'omniauth/version'
         | 
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |spec|
         | 
| 7 | 
            -
              spec.add_dependency 'hashie', ['>= 1.2', '<  | 
| 7 | 
            +
              spec.add_dependency 'hashie', ['>= 1.2', '< 4']
         | 
| 8 8 | 
             
              spec.add_dependency 'rack', '~> 1.0'
         | 
| 9 9 | 
             
              spec.add_development_dependency 'bundler', '~> 1.0'
         | 
| 10 | 
            -
              spec.authors       = ['Michael Bleigh', 'Erik Michaels-Ober']
         | 
| 11 | 
            -
              spec. | 
| 12 | 
            -
              spec. | 
| 13 | 
            -
              spec. | 
| 14 | 
            -
              spec.files         = `git ls-files`.split($/)
         | 
| 10 | 
            +
              spec.authors       = ['Michael Bleigh', 'Erik Michaels-Ober', 'Tom Milewski']
         | 
| 11 | 
            +
              spec.description   = 'A generalized Rack framework for multiple-provider authentication.'
         | 
| 12 | 
            +
              spec.email         = ['michael@intridea.com', 'sferik@gmail.com', 'tmilewski@gmail.com']
         | 
| 13 | 
            +
              spec.files         = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
         | 
| 15 14 | 
             
              spec.homepage      = 'http://github.com/intridea/omniauth'
         | 
| 16 | 
            -
              spec.licenses      =  | 
| 15 | 
            +
              spec.licenses      = %w(MIT)
         | 
| 17 16 | 
             
              spec.name          = 'omniauth'
         | 
| 18 | 
            -
              spec.require_paths =  | 
| 17 | 
            +
              spec.require_paths = %w(lib)
         | 
| 19 18 | 
             
              spec.required_rubygems_version = '>= 1.3.5'
         | 
| 20 | 
            -
              spec.signing_key   = File.expand_path('~/.gem/private_key.pem') if $PROGRAM_NAME =~ /gem\z/
         | 
| 21 19 | 
             
              spec.summary       = spec.description
         | 
| 22 | 
            -
              spec.test_files    = spec.files.grep( | 
| 20 | 
            +
              spec.test_files    = spec.files.grep(/^spec\//)
         | 
| 23 21 | 
             
              spec.version       = OmniAuth::VERSION
         | 
| 24 22 | 
             
            end
         | 
    
        data/spec/helper.rb
    CHANGED
    
    | @@ -19,7 +19,7 @@ OmniAuth.config.logger = Logger.new('/dev/null') | |
| 19 19 |  | 
| 20 20 | 
             
            RSpec.configure do |config|
         | 
| 21 21 | 
             
              config.include Rack::Test::Methods
         | 
| 22 | 
            -
              config.extend | 
| 22 | 
            +
              config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
         | 
| 23 23 | 
             
              config.expect_with :rspec do |c|
         | 
| 24 24 | 
             
                c.syntax = :expect
         | 
| 25 25 | 
             
              end
         | 
| @@ -5,7 +5,7 @@ describe OmniAuth::Strategies::Developer do | |
| 5 5 | 
             
                Rack::Builder.new do |b|
         | 
| 6 6 | 
             
                  b.use Rack::Session::Cookie, :secret => 'abc123'
         | 
| 7 7 | 
             
                  b.use OmniAuth::Strategies::Developer
         | 
| 8 | 
            -
                  b.run lambda { | | 
| 8 | 
            +
                  b.run lambda { |_env| [200, {}, ['Not Found']] }
         | 
| 9 9 | 
             
                end.to_app
         | 
| 10 10 | 
             
              end
         | 
| 11 11 |  | 
| @@ -52,7 +52,7 @@ describe OmniAuth::Strategies::Developer do | |
| 52 52 | 
             
                    Rack::Builder.new do |b|
         | 
| 53 53 | 
             
                      b.use Rack::Session::Cookie, :secret => 'abc123'
         | 
| 54 54 | 
             
                      b.use OmniAuth::Strategies::Developer, :fields => [:first_name, :last_name], :uid_field => :last_name
         | 
| 55 | 
            -
                      b.run lambda { | | 
| 55 | 
            +
                      b.run lambda { |_env| [200, {}, ['Not Found']] }
         | 
| 56 56 | 
             
                    end.to_app
         | 
| 57 57 | 
             
                  end
         | 
| 58 58 |  | 
| @@ -11,7 +11,7 @@ end | |
| 11 11 |  | 
| 12 12 | 
             
            describe OmniAuth::Strategy do
         | 
| 13 13 | 
             
              let(:app) do
         | 
| 14 | 
            -
                lambda { | | 
| 14 | 
            +
                lambda { |_env| [404, {}, ['Awesome']] }
         | 
| 15 15 | 
             
              end
         | 
| 16 16 |  | 
| 17 17 | 
             
              let(:fresh_strategy) do
         | 
| @@ -397,7 +397,7 @@ describe OmniAuth::Strategy do | |
| 397 397 |  | 
| 398 398 | 
             
                context ':form option' do
         | 
| 399 399 | 
             
                  it 'calls through to the supplied form option if one exists' do
         | 
| 400 | 
            -
                    strategy.options.form = lambda { | | 
| 400 | 
            +
                    strategy.options.form = lambda { |_env| 'Called me!' }
         | 
| 401 401 | 
             
                    expect(strategy.call(make_env('/auth/test'))).to eq('Called me!')
         | 
| 402 402 | 
             
                  end
         | 
| 403 403 |  | 
| @@ -409,17 +409,17 @@ describe OmniAuth::Strategy do | |
| 409 409 |  | 
| 410 410 | 
             
                context 'dynamic paths' do
         | 
| 411 411 | 
             
                  it 'runs the request phase if the custom request path evaluator is truthy' do
         | 
| 412 | 
            -
                    @options = {:request_path => lambda { | | 
| 412 | 
            +
                    @options = {:request_path => lambda { |_env| true }}
         | 
| 413 413 | 
             
                    expect { strategy.call(make_env('/asoufibasfi')) }.to raise_error('Request Phase')
         | 
| 414 414 | 
             
                  end
         | 
| 415 415 |  | 
| 416 416 | 
             
                  it 'runs the callback phase if the custom callback path evaluator is truthy' do
         | 
| 417 | 
            -
                    @options = {:callback_path => lambda { | | 
| 417 | 
            +
                    @options = {:callback_path => lambda { |_env| true }}
         | 
| 418 418 | 
             
                    expect { strategy.call(make_env('/asoufiasod')) }.to raise_error('Callback Phase')
         | 
| 419 419 | 
             
                  end
         | 
| 420 420 |  | 
| 421 421 | 
             
                  it 'provides a custom callback path if request_path evals to a string' do
         | 
| 422 | 
            -
                    strategy_instance = fresh_strategy.new(nil, :request_path => lambda { | | 
| 422 | 
            +
                    strategy_instance = fresh_strategy.new(nil, :request_path => lambda { |_env| '/auth/boo/callback/22' })
         | 
| 423 423 | 
             
                    expect(strategy_instance.callback_path).to eq('/auth/boo/callback/22')
         | 
| 424 424 | 
             
                  end
         | 
| 425 425 |  | 
| @@ -549,7 +549,7 @@ describe OmniAuth::Strategy do | |
| 549 549 | 
             
                context 'test mode' do
         | 
| 550 550 | 
             
                  let(:app) do
         | 
| 551 551 | 
             
                    # In test mode, the underlying app shouldn't be called on request phase.
         | 
| 552 | 
            -
                    lambda { | | 
| 552 | 
            +
                    lambda { |_env| [404, {'Content-Type' => 'text/html'}, []] }
         | 
| 553 553 | 
             
                  end
         | 
| 554 554 |  | 
| 555 555 | 
             
                  before do
         | 
    
        metadata
    CHANGED
    
    | @@ -1,36 +1,16 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: omniauth
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.2. | 
| 4 | 
            +
              version: 1.2.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Michael Bleigh
         | 
| 8 8 | 
             
            - Erik Michaels-Ober
         | 
| 9 | 
            +
            - Tom Milewski
         | 
| 9 10 | 
             
            autorequire: 
         | 
| 10 11 | 
             
            bindir: bin
         | 
| 11 | 
            -
            cert_chain:
         | 
| 12 | 
            -
            -  | 
| 13 | 
            -
              -----BEGIN CERTIFICATE-----
         | 
| 14 | 
            -
              MIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ8wDQYDVQQDDAZzZmVy
         | 
| 15 | 
            -
              aWsxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2NvbTAe
         | 
| 16 | 
            -
              Fw0xMzAyMDMxMDAyMjdaFw0xNDAyMDMxMDAyMjdaMD0xDzANBgNVBAMMBnNmZXJp
         | 
| 17 | 
            -
              azEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29tMIIB
         | 
| 18 | 
            -
              IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl0x5dx8uKxi7TkrIuyBUTJVB
         | 
| 19 | 
            -
              v1o93nUB9j/y4M96gV2rYwAci1JPBseNd6Fybzjo3YGuHl7EQHuSHNaf1p2lxew/
         | 
| 20 | 
            -
              y60JXIJBBgPcDK/KCP4NUHofm0jfoYD+H5uNJfHCNq7/ZsTxOtE3Ra92s0BCMTpm
         | 
| 21 | 
            -
              wBMMlWR5MtdEhIYuBO4XhnejYgH0L/7BL2lymntVnsr/agdQoojQCN1IQmsRJvrR
         | 
| 22 | 
            -
              duZRO3tZvoIo1pBc4JEehDuqCeyBgPLOqMoKtQlold1TQs1kWUBK7KWMFEhKC/Kg
         | 
| 23 | 
            -
              zyzKRHQo9yDYwOvYngoBLY+T/lwCT4dyssdhzRbfnxAhaKu4SAssIwaC01yVowID
         | 
| 24 | 
            -
              AQABozkwNzAJBgNVHRMEAjAAMB0GA1UdDgQWBBS0ruDfRak5ci1OpDNX/ZdDEkIs
         | 
| 25 | 
            -
              iTALBgNVHQ8EBAMCBLAwDQYJKoZIhvcNAQEFBQADggEBAHHSMs/MP0sOaLkEv4Jo
         | 
| 26 | 
            -
              zvkm3qn5A6t0vaHx774cmejyMU+5wySxRezspL7ULh9NeuK2OhU+Oe3TpqrAg5TK
         | 
| 27 | 
            -
              R8GQILnVu2FemGA6sAkPDlcPtgA6ieI19PZOF6HVLmc/ID/dP/NgZWWzEeqQKmcK
         | 
| 28 | 
            -
              2+HM+SEEDhZkScYekw4ZOe164ZtZG816oAv5x0pGitSIkumUp7V8iEZ/6ehr7Y9e
         | 
| 29 | 
            -
              XOg4eeun5L/JjmjARoW2kNdvkRD3c2EeSLqWvQRsBlypHfhs6JJuLlyZPGhU3R/v
         | 
| 30 | 
            -
              Sf3lVKpBCWgRpGTvy45XVpB+59y33PJmEuQ1PTEOYvQyao9UKMAAaAN/7qWQtjl0
         | 
| 31 | 
            -
              hlw=
         | 
| 32 | 
            -
              -----END CERTIFICATE-----
         | 
| 33 | 
            -
            date: 2014-01-16 00:00:00.000000000 Z
         | 
| 12 | 
            +
            cert_chain: []
         | 
| 13 | 
            +
            date: 2014-07-09 00:00:00.000000000 Z
         | 
| 34 14 | 
             
            dependencies:
         | 
| 35 15 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 36 16 | 
             
              name: hashie
         | 
| @@ -41,7 +21,7 @@ dependencies: | |
| 41 21 | 
             
                    version: '1.2'
         | 
| 42 22 | 
             
                - - "<"
         | 
| 43 23 | 
             
                  - !ruby/object:Gem::Version
         | 
| 44 | 
            -
                    version: ' | 
| 24 | 
            +
                    version: '4'
         | 
| 45 25 | 
             
              type: :runtime
         | 
| 46 26 | 
             
              prerelease: false
         | 
| 47 27 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -51,7 +31,7 @@ dependencies: | |
| 51 31 | 
             
                    version: '1.2'
         | 
| 52 32 | 
             
                - - "<"
         | 
| 53 33 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            -
                    version: ' | 
| 34 | 
            +
                    version: '4'
         | 
| 55 35 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 56 36 | 
             
              name: rack
         | 
| 57 37 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -84,6 +64,7 @@ description: A generalized Rack framework for multiple-provider authentication. | |
| 84 64 | 
             
            email:
         | 
| 85 65 | 
             
            - michael@intridea.com
         | 
| 86 66 | 
             
            - sferik@gmail.com
         | 
| 67 | 
            +
            - tmilewski@gmail.com
         | 
| 87 68 | 
             
            executables: []
         | 
| 88 69 | 
             
            extensions: []
         | 
| 89 70 | 
             
            extra_rdoc_files: []
         | 
| @@ -100,7 +81,6 @@ files: | |
| 100 81 | 
             
            - LICENSE.md
         | 
| 101 82 | 
             
            - README.md
         | 
| 102 83 | 
             
            - Rakefile
         | 
| 103 | 
            -
            - certs/sferik.pem
         | 
| 104 84 | 
             
            - lib/omniauth.rb
         | 
| 105 85 | 
             
            - lib/omniauth/auth_hash.rb
         | 
| 106 86 | 
             
            - lib/omniauth/builder.rb
         | 
| @@ -143,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 143 123 | 
             
                  version: 1.3.5
         | 
| 144 124 | 
             
            requirements: []
         | 
| 145 125 | 
             
            rubyforge_project: 
         | 
| 146 | 
            -
            rubygems_version: 2.2. | 
| 126 | 
            +
            rubygems_version: 2.2.2
         | 
| 147 127 | 
             
            signing_key: 
         | 
| 148 128 | 
             
            specification_version: 4
         | 
| 149 129 | 
             
            summary: A generalized Rack framework for multiple-provider authentication.
         | 
    
        checksums.yaml.gz.sig
    DELETED
    
    | Binary file | 
    
        data.tar.gz.sig
    DELETED
    
    | Binary file | 
    
        data/certs/sferik.pem
    DELETED
    
    | @@ -1,20 +0,0 @@ | |
| 1 | 
            -
            -----BEGIN CERTIFICATE-----
         | 
| 2 | 
            -
            MIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ8wDQYDVQQDDAZzZmVy
         | 
| 3 | 
            -
            aWsxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2NvbTAe
         | 
| 4 | 
            -
            Fw0xMzAyMDMxMDAyMjdaFw0xNDAyMDMxMDAyMjdaMD0xDzANBgNVBAMMBnNmZXJp
         | 
| 5 | 
            -
            azEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29tMIIB
         | 
| 6 | 
            -
            IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl0x5dx8uKxi7TkrIuyBUTJVB
         | 
| 7 | 
            -
            v1o93nUB9j/y4M96gV2rYwAci1JPBseNd6Fybzjo3YGuHl7EQHuSHNaf1p2lxew/
         | 
| 8 | 
            -
            y60JXIJBBgPcDK/KCP4NUHofm0jfoYD+H5uNJfHCNq7/ZsTxOtE3Ra92s0BCMTpm
         | 
| 9 | 
            -
            wBMMlWR5MtdEhIYuBO4XhnejYgH0L/7BL2lymntVnsr/agdQoojQCN1IQmsRJvrR
         | 
| 10 | 
            -
            duZRO3tZvoIo1pBc4JEehDuqCeyBgPLOqMoKtQlold1TQs1kWUBK7KWMFEhKC/Kg
         | 
| 11 | 
            -
            zyzKRHQo9yDYwOvYngoBLY+T/lwCT4dyssdhzRbfnxAhaKu4SAssIwaC01yVowID
         | 
| 12 | 
            -
            AQABozkwNzAJBgNVHRMEAjAAMB0GA1UdDgQWBBS0ruDfRak5ci1OpDNX/ZdDEkIs
         | 
| 13 | 
            -
            iTALBgNVHQ8EBAMCBLAwDQYJKoZIhvcNAQEFBQADggEBAHHSMs/MP0sOaLkEv4Jo
         | 
| 14 | 
            -
            zvkm3qn5A6t0vaHx774cmejyMU+5wySxRezspL7ULh9NeuK2OhU+Oe3TpqrAg5TK
         | 
| 15 | 
            -
            R8GQILnVu2FemGA6sAkPDlcPtgA6ieI19PZOF6HVLmc/ID/dP/NgZWWzEeqQKmcK
         | 
| 16 | 
            -
            2+HM+SEEDhZkScYekw4ZOe164ZtZG816oAv5x0pGitSIkumUp7V8iEZ/6ehr7Y9e
         | 
| 17 | 
            -
            XOg4eeun5L/JjmjARoW2kNdvkRD3c2EeSLqWvQRsBlypHfhs6JJuLlyZPGhU3R/v
         | 
| 18 | 
            -
            Sf3lVKpBCWgRpGTvy45XVpB+59y33PJmEuQ1PTEOYvQyao9UKMAAaAN/7qWQtjl0
         | 
| 19 | 
            -
            hlw=
         | 
| 20 | 
            -
            -----END CERTIFICATE-----
         | 
    
        metadata.gz.sig
    DELETED