Sha256: bd642cb2132d931d3997acf215787abfc7ad30b72919d975004e1f56fa82dbfd

Contents?: true

Size: 237 Bytes

Versions: 16

Compression:

Stored size: 237 Bytes

Contents

module Rack
  module Jasmine

    class Redirect
      def initialize(url)
        @url = url
      end

      def call(env)
        [
          302,
          { 'Location' => @url },
          []
        ]
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
rally-jasmine-1.2.0.18 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.12 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.11 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.10 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.8 lib/rack/jasmine/redirect.rb
jasmine-1.3.0 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.7 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.6 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.5 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.4 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.3 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.2 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0.1 lib/rack/jasmine/redirect.rb
rally-jasmine-1.2.0 lib/rack/jasmine/redirect.rb
jasmine-1.2.1 lib/rack/jasmine/redirect.rb
jasmine-1.2.0 lib/rack/jasmine/redirect.rb