Sha256: d5fd43956fa0a09ec33c46956e15992f5be479a5d18f876e853248b226baec54

Contents?: true

Size: 268 Bytes

Versions: 34

Compression:

Stored size: 268 Bytes

Contents

module OmniAuth
  module Test
    class PhonySession
      def initialize(app)
        @app = app
      end

      def call(env)
        @session ||= (env['rack.session'] || {})
        env['rack.session'] = @session
        @app.call(env)
      end
    end
  end
end

Version data entries

34 entries across 32 versions & 2 rubygems

Version Path
omniauth-2.1.2 lib/omniauth/test/phony_session.rb
omniauth-2.1.1 lib/omniauth/test/phony_session.rb
omniauth-1.9.2 lib/omniauth/test/phony_session.rb
omniauth-2.1.0 lib/omniauth/test/phony_session.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/omniauth-2.0.4/lib/omniauth/test/phony_session.rb
omniauth-2.0.4 lib/omniauth/test/phony_session.rb
omniauth-2.0.3 lib/omniauth/test/phony_session.rb
omniauth-2.0.2 lib/omniauth/test/phony_session.rb
omniauth-2.0.1 lib/omniauth/test/phony_session.rb
omniauth-2.0.0 lib/omniauth/test/phony_session.rb
omniauth-2.0.0.pre.rc1 lib/omniauth/test/phony_session.rb
omniauth-1.9.1 lib/omniauth/test/phony_session.rb
omniauth-1.9.0 lib/omniauth/test/phony_session.rb
tdiary-5.0.8 vendor/bundle/gems/omniauth-1.8.1/lib/omniauth/test/phony_session.rb
omniauth-1.8.1 lib/omniauth/test/phony_session.rb
omniauth-1.8.0 lib/omniauth/test/phony_session.rb
omniauth-1.4.3 lib/omniauth/test/phony_session.rb
omniauth-1.7.1 lib/omniauth/test/phony_session.rb
omniauth-1.7.0 lib/omniauth/test/phony_session.rb
tdiary-5.0.5 vendor/bundle/gems/omniauth-1.6.1/lib/omniauth/test/phony_session.rb