Permalink
Commits on Apr 20, 2017
  1. Fix changelog link.

    committed Apr 20, 2017
  2. Release 0.2.3.

    committed Apr 20, 2017
  3. Drop support for Ruby 1.9.

    committed Apr 20, 2017
  4. Update Ruby versions for Travis.

    Exclude Rack 2.0 from older, unsupported versions of Ruby.
    committed Apr 20, 2017
  5. Clean up README.

    committed Apr 20, 2017
Commits on Aug 3, 2016
  1. Support regex for the ignore option.

    Why:
    
    * As a developer I want to ignore domains via a regexp so that I can use
      this gem for a site that should allow subdomains.
    
    This change addresses the need by:
    
    * Add tests for using a regex with the ignore option.
    * Add documentation in the README.md.
    * Update the Redirect class to allow regex to be used for the ignore
      option.
    squaresurf committed Aug 3, 2016
Commits on May 17, 2016
  1. Release 0.2.2.

    committed May 17, 2016
Commits on Mar 31, 2016
  1. Clean up specs.

    committed Mar 30, 2016
  2. Clean up RSpec matchers.

    committed Mar 30, 2016
  3. Merge pull request #42 from tylerhunt/cache-control

    Add Cache-Control support
    committed Mar 31, 2016
Commits on Mar 30, 2016
  1. Update change log and contributors list.

    committed Mar 30, 2016
  2. Use explicit value for cache control header.

    Use :cache_control with raw header value to avoid type checking.
    Remove default value for Cache-Control to keep backwards compatibility.
    committed Mar 30, 2016
Commits on Mar 29, 2016
  1. Support :cache_expiry option

    To avoid browsers indefinitely caching a 301 redirect, it's a sensible
    idea to set an expiry on each redirect, to hedge against the chance you
    need to change that redirect in the future.
    
    This change adds a new option, `:cache_expiry`, that specifies the
    maximum duration, in seconds, a browser is allowed to cache the
    redirect. By default, it is set to one hour (3,600 seconds).
    
    Usage:
    
    ```ruby
    use Rack::CanonicalHost, 'example.com', cache_expiry: 42
    
    use Rack::CanonicalHost, 'example.com', cache_expiry: false
    
    use Rack::CanonicalHost, 'example.com', cache_expiry: 'no-cache'
    
    use Rack::CanonicalHost, 'example.com'
    ```
    Aupajo committed Mar 29, 2016
Commits on Mar 28, 2016
  1. Release 0.2.1.

    committed Mar 28, 2016
  2. Merge pull request #39 from zoso10/te-update-rack-dependency

    Change dependency restriction to allow rack 2
    committed Mar 28, 2016
  3. Release 0.2.0.

    committed Mar 28, 2016
Commits on Dec 14, 2015
  1. Merge pull request #33 from nbibler/patch-1

    Use the new Travis CI container infrastructure.
    committed Dec 14, 2015
Commits on Aug 19, 2015
  1. Fix spec failure under older versions of Rack.

    The Rack::QUERY_STRING constant wasn't introduced until 1.6.
    committed Aug 19, 2015
  2. Ensure default spec response adheres to Rack spec.

    The response body "must respond to each".
    committed Aug 19, 2015
  3. Improve compatibility with newer versions of Ruby.

    Method arguments with default values that are method calls matching the
    name of the named argument now result in a nil assignment to that
    argument without explicitly indicating that the default value is a
    method call.
    committed Aug 19, 2015
  4. Merge pull request #32 from tma/normalize-url

    Normalize redirect URL to prevent XSS.
    committed Aug 19, 2015
Commits on Aug 12, 2015
  1. Normalize redirect URL

    + Rack::CanonicalHost::Redirect#new_url returns normalized URL
    + Add spec for URL containing JavaScript XSS
    tma committed Aug 12, 2015
Commits on Nov 20, 2014
  1. Update copyright year.

    committed Nov 20, 2014
Commits on Nov 14, 2014
  1. Merge pull request #30 from nbibler/travis-cache

    Cache dependencies on CI.
    committed Nov 14, 2014
  2. Merge pull request #29 from nbibler/remove-force-ssl

    Remove :force_ssl option in favor of using rack-ssl
    committed Nov 14, 2014
Commits on Nov 10, 2014
  1. Cache dependencies on CI.

    nbibler committed Nov 10, 2014
Commits on Nov 7, 2014
  1. Merge pull request #27 from nbibler/scope-addressable

    Scope the addressable dependency
    committed Nov 7, 2014