Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bump to 1.0.0.rc1

  • Loading branch information...
commit 26860a19359dee679df02e183c2ce25c48125063 1 parent 96fdd7a
@mike-burns mike-burns authored
View
2  Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- clearance (0.16.2)
+ clearance (1.0.0.rc1)
bcrypt-ruby
diesel (= 0.1.5)
rails (>= 3.0)
View
16 NEWS.md
@@ -1,8 +1,20 @@
-HEAD:
+New for 1.0.0:
-* Change default password strategy to BCrypt
+* Change default password strategy to BCrypt.
* Provide BCryptMigrationFromSHA1 password strategy to help people migrate from
SHA1 (the old default password strategy) to BCrypt (the new default).
+* Require Ruby 1.9.2.
+* A revamped, more descriptive README.
+* More extension points in more controllers.
+* The email, encrypted_password, and remember_token fields of the users
+ table cannot be NULL.
+* We do not support adding Clearance after-the-fact.
+* We support Test::Unit.
+* Drop Rails plugin support.
+* Add SignedIn and SignedOut routing constraints.
+* Add a fake password strategy, which is useful when writing tests.
+* Remove deprecated methods on User: remember_me!, generate_random_code,
+ password_required?.
New for 0.16.2:
View
4 clearance.gemspec
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
s.summary = %q{Rails authentication & authorization with email & password.}
s.description = %q{Rails authentication & authorization with email & password.}
- s.files = `git ls-files`.split('\n')
- s.test_files = `git ls-files -- {features,spec}/*`.split('\n')
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {features,spec}/*`.split("\n")
s.extra_rdoc_files = %w(LICENSE README.md)
s.rdoc_options = ['--charset=UTF-8']
s.require_paths = ['lib']
View
2  gemfiles/3.0.15.gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: /home/mike/thoughtbot/clearance
specs:
- clearance (0.16.2)
+ clearance (1.0.0.rc1)
bcrypt-ruby
diesel (= 0.1.5)
rails (>= 3.0)
View
2  gemfiles/3.1.6.gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: /home/mike/thoughtbot/clearance
specs:
- clearance (0.16.2)
+ clearance (1.0.0.rc1)
bcrypt-ruby
diesel (= 0.1.5)
rails (>= 3.0)
View
2  gemfiles/3.2.6.gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: /home/mike/thoughtbot/clearance
specs:
- clearance (0.16.2)
+ clearance (1.0.0.rc1)
bcrypt-ruby
diesel (= 0.1.5)
rails (>= 3.0)
View
6 lib/clearance/password_strategies/sha1.rb
@@ -25,11 +25,7 @@ def encrypt(string)
end
def generate_hash(string)
- if RUBY_VERSION >= '1.9'
- Digest::SHA1.hexdigest(string).encode 'UTF-8'
- else
- Digest::SHA1.hexdigest string
- end
+ Digest::SHA1.hexdigest(string).encode 'UTF-8'
end
def initialize_salt_if_necessary
View
9 lib/clearance/testing/assertion_error.rb
@@ -1,11 +1,6 @@
module Clearance
module Testing
- if RUBY_VERSION > '1.9'
- require 'minitest/unit'
- AssertionError = MiniTest::Assertion
- else
- require 'test/unit/assertionfailederror'
- AssertionError = Test::Unit::AssertionFailedError
- end
+ require 'minitest/unit'
+ AssertionError = MiniTest::Assertion
end
end
View
20 lib/clearance/user.rb
@@ -50,11 +50,6 @@ def forgot_password!
save :validate => false
end
- def remember_me!
- warn '[DEPRECATION] remember_me! will be removed in Clearance 1.0.0: use reset_remember_token! instead'
- reset_remember_token!
- end
-
def reset_remember_token!
generate_remember_token
save :validate => false
@@ -86,16 +81,6 @@ def generate_confirmation_token
self.confirmation_token = SecureRandom.hex(20).encode('UTF-8')
end
- def generate_random_code(length = 20)
- warn "[DEPRECATION] generate_random_code will be removed in Clearance 1.0.0: instead, use SecureRandom.hex(20).encode 'UTF-8'"
-
- if RUBY_VERSION >= '1.9'
- SecureRandom.hex(length).encode 'UTF-8'
- else
- SecureRandom.hex length
- end
- end
-
def generate_remember_token
self.remember_token = SecureRandom.hex(20).encode('UTF-8')
end
@@ -103,10 +88,5 @@ def generate_remember_token
def password_optional?
encrypted_password.present? && password.blank? && password_changing.blank?
end
-
- def password_required?
- warn '[DEPRECATION] password_required?: use !password_optional? instead'
- !password_optional?
- end
end
end
View
2  lib/clearance/version.rb
@@ -1,3 +1,3 @@
module Clearance
- VERSION = '0.16.2'
+ VERSION = '1.0.0.rc1'
end
Please sign in to comment.
Something went wrong with that request. Please try again.