Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 5, 2014
  1. Ian Zabel
Commits on Mar 4, 2014
  1. Rich Rines

    Update Hash Syntax

    richrines authored
    * Update to ruby 1.9+ hash syntax
Commits on Mar 6, 2013
  1. Derek Prior

    Speed up tests for apps using clearance with bcrypt

    derekprior authored
    If clearance detects that it's being run in the test environment, it
    will lower the bcyrpt cost factor (essentially, how much it will sleep)
    to the minimum.
Commits on Jul 22, 2012
  1. Dan Croak

    Apply style guidelines

    croaky authored
    * Use single quotes unless interpolating.
    * Do not align tokens.
    * Add a newline between lines of code and blocks.
    * Alphabetize methods and lists of attributes.
    Additional refactoring:
    * Refactor new_indexes to more appropriately use a Hash.
    * Refactor collections to use Symbol#to_proc to shorten lines.
    * Use consistent naming patterns (existing_*, new_*).
    * Remove `each` naming convention on enumerators.
    * Remove now unnecessary GOALS file.
Commits on Jun 29, 2012
  1. Mike Burns

    BCrypt for passwords

    Dan Croak and Gabe Berke-Williams authored mike-burns committed
    This commit makes BCrypt the default for new setups, and introduces a
    strategy for converting existing infrastructure to BCrypt.
    To switch to BCrypt now:
        Clearance.configure do |config|
          config.password_strategy = Clearance::PasswordStrategies::BCrypt
    To set the password strategy to the conversion layer:
        Clearance.configure do |config|
          config.password_strategy = Clearance::PasswordStrategies::BCryptMigrationFromSHA1
    To continue to use SHA1:
        Clearance.configure do |config|
          config.password_strategy = Clearance::PasswordStrategies::SHA1
Something went wrong with that request. Please try again.