Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.88 KB

File metadata and controls

46 lines (37 loc) · 1.88 KB
  • Maintenance

    • :send_file rules return content in an Array for Ruby 1.9.2 compatibility

  • Maintenance

    • Set Content-Type based on file extension of file/location being redirected to. Addresses GitHub Issue #8.

  • API

    • Fix rack 1.1.0 / rails3 compatibility by eliminating reliance on REQUEST_URI env param. Paths are now constructed with PATH_INFO and QUERY_STRING

    • Follow rack directory/require convention: require ‘rack/rewrite’ instead of ‘rack-rewrite’

    • Include an HTML anchor tag linked to where the URL being redirected to in the body of 301’s and 302’s

  • API

  • Maintenance

    • Ignore empty captures instead of failing during subsitution (thanks to Ben Brinckerhoff)

    • Play nice with Rack::Test requests which only set PATH_INFO and not REQUEST_URI (thanks to @docunext)

    • Use QUERY_STRING instead of QUERYSTRING as per Rack spec. Closes Issue #1.

  • API

    • Allow Proc’s to be be passed as the ‘to’ argument to rule declarations

    • Introduce rule guard support using :if => Proc.new option.

    • :send_file and :x_send_file rules

    • proxy rack_env to rule guards for arbitrary rule writing

  • Documentation

    • Add example of writing capistrano maintenance page rewrite rules

    • Add examples of rule guards and arbitrary rewriting

    • Add examples of :send_file and :x_send_file rules

  • Maintenance

    • Ensure Content-Type header is set for 301’s and 302’s (thanks to Sebastian Röbke)

  • Documentation

    • Add HISTORY.rdoc

  • Initial Feature Set

    • :r301, :r302 and :redirect are supported in the rewrite DSL

    • Regex matching/substitution patterns supported in rules