Skip to content
This repository
Browse code

Bump to 1.0.0.rc1

  • Loading branch information...
commit 26860a19359dee679df02e183c2ce25c48125063 1 parent 96fdd7a
Mike Burns authored July 23, 2012
2  Gemfile.lock
... ...
@@ -1,7 +1,7 @@
1 1
 PATH
2 2
   remote: .
3 3
   specs:
4  
-    clearance (0.16.2)
  4
+    clearance (1.0.0.rc1)
5 5
       bcrypt-ruby
6 6
       diesel (= 0.1.5)
7 7
       rails (>= 3.0)
16  NEWS.md
Source Rendered
... ...
@@ -1,8 +1,20 @@
1  
-HEAD:
  1
+New for 1.0.0:
2 2
 
3  
-* Change default password strategy to BCrypt
  3
+* Change default password strategy to BCrypt.
4 4
 * Provide BCryptMigrationFromSHA1 password strategy to help people migrate from
5 5
   SHA1 (the old default password strategy) to BCrypt (the new default).
  6
+* Require Ruby 1.9.2.
  7
+* A revamped, more descriptive README.
  8
+* More extension points in more controllers.
  9
+* The email, encrypted_password, and remember_token fields of the users
  10
+  table cannot be NULL.
  11
+* We do not support adding Clearance after-the-fact.
  12
+* We support Test::Unit.
  13
+* Drop Rails plugin support.
  14
+* Add SignedIn and SignedOut routing constraints.
  15
+* Add a fake password strategy, which is useful when writing tests.
  16
+* Remove deprecated methods on User: remember_me!, generate_random_code,
  17
+  password_required?.
6 18
 
7 19
 New for 0.16.2:
8 20
 
4  clearance.gemspec
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
14 14
   s.summary = %q{Rails authentication & authorization with email & password.}
15 15
   s.description = %q{Rails authentication & authorization with email & password.}
16 16
 
17  
-  s.files = `git ls-files`.split('\n')
18  
-  s.test_files = `git ls-files -- {features,spec}/*`.split('\n')
  17
+  s.files = `git ls-files`.split("\n")
  18
+  s.test_files = `git ls-files -- {features,spec}/*`.split("\n")
19 19
   s.extra_rdoc_files = %w(LICENSE README.md)
20 20
   s.rdoc_options = ['--charset=UTF-8']
21 21
   s.require_paths = ['lib']
2  gemfiles/3.0.15.gemfile.lock
... ...
@@ -1,7 +1,7 @@
1 1
 PATH
2 2
   remote: /home/mike/thoughtbot/clearance
3 3
   specs:
4  
-    clearance (0.16.2)
  4
+    clearance (1.0.0.rc1)
5 5
       bcrypt-ruby
6 6
       diesel (= 0.1.5)
7 7
       rails (>= 3.0)
2  gemfiles/3.1.6.gemfile.lock
... ...
@@ -1,7 +1,7 @@
1 1
 PATH
2 2
   remote: /home/mike/thoughtbot/clearance
3 3
   specs:
4  
-    clearance (0.16.2)
  4
+    clearance (1.0.0.rc1)
5 5
       bcrypt-ruby
6 6
       diesel (= 0.1.5)
7 7
       rails (>= 3.0)
2  gemfiles/3.2.6.gemfile.lock
... ...
@@ -1,7 +1,7 @@
1 1
 PATH
2 2
   remote: /home/mike/thoughtbot/clearance
3 3
   specs:
4  
-    clearance (0.16.2)
  4
+    clearance (1.0.0.rc1)
5 5
       bcrypt-ruby
6 6
       diesel (= 0.1.5)
7 7
       rails (>= 3.0)
6  lib/clearance/password_strategies/sha1.rb
@@ -25,11 +25,7 @@ def encrypt(string)
25 25
       end
26 26
 
27 27
       def generate_hash(string)
28  
-        if RUBY_VERSION >= '1.9'
29  
-          Digest::SHA1.hexdigest(string).encode 'UTF-8'
30  
-        else
31  
-          Digest::SHA1.hexdigest string
32  
-        end
  28
+        Digest::SHA1.hexdigest(string).encode 'UTF-8'
33 29
       end
34 30
 
35 31
       def initialize_salt_if_necessary
9  lib/clearance/testing/assertion_error.rb
... ...
@@ -1,11 +1,6 @@
1 1
 module Clearance
2 2
   module Testing
3  
-    if RUBY_VERSION > '1.9'
4  
-      require 'minitest/unit'
5  
-      AssertionError = MiniTest::Assertion
6  
-    else
7  
-      require 'test/unit/assertionfailederror'
8  
-      AssertionError = Test::Unit::AssertionFailedError
9  
-    end
  3
+    require 'minitest/unit'
  4
+    AssertionError = MiniTest::Assertion
10 5
   end
11 6
 end
20  lib/clearance/user.rb
@@ -50,11 +50,6 @@ def forgot_password!
50 50
       save :validate => false
51 51
     end
52 52
 
53  
-    def remember_me!
54  
-      warn '[DEPRECATION] remember_me! will be removed in Clearance 1.0.0: use reset_remember_token! instead'
55  
-      reset_remember_token!
56  
-    end
57  
-
58 53
     def reset_remember_token!
59 54
       generate_remember_token
60 55
       save :validate => false
@@ -86,16 +81,6 @@ def generate_confirmation_token
86 81
       self.confirmation_token = SecureRandom.hex(20).encode('UTF-8')
87 82
     end
88 83
 
89  
-    def generate_random_code(length = 20)
90  
-      warn "[DEPRECATION] generate_random_code will be removed in Clearance 1.0.0: instead, use SecureRandom.hex(20).encode 'UTF-8'"
91  
-
92  
-      if RUBY_VERSION >= '1.9'
93  
-        SecureRandom.hex(length).encode 'UTF-8'
94  
-      else
95  
-        SecureRandom.hex length
96  
-      end
97  
-    end
98  
-
99 84
     def generate_remember_token
100 85
       self.remember_token = SecureRandom.hex(20).encode('UTF-8')
101 86
     end
@@ -103,10 +88,5 @@ def generate_remember_token
103 88
     def password_optional?
104 89
       encrypted_password.present? && password.blank? && password_changing.blank?
105 90
     end
106  
-
107  
-    def password_required?
108  
-      warn '[DEPRECATION] password_required?: use !password_optional? instead'
109  
-      !password_optional?
110  
-    end
111 91
   end
112 92
 end
2  lib/clearance/version.rb
... ...
@@ -1,3 +1,3 @@
1 1
 module Clearance
2  
-  VERSION = '0.16.2'
  2
+  VERSION = '1.0.0.rc1'
3 3
 end

0 notes on commit 26860a1

Please sign in to comment.
Something went wrong with that request. Please try again.