Permalink
Browse files

Removed minimum password length validation, bumping the gemspec to 0.4.1

  • Loading branch information...
eugenebolshakov committed Jan 27, 2009
1 parent 260c3c2 commit c8da3d69b45caeeff34e9ba6e3e8537381c0760c
Showing with 46 additions and 47 deletions.
  1. +1 −1 Rakefile
  2. +43 −43 clearance.gemspec
  3. +1 −1 lib/clearance/app/models/user.rb
  4. +1 −2 lib/clearance/test/unit/user_test.rb
View
@@ -35,7 +35,7 @@ task :default => 'test:all'
gem_spec = Gem::Specification.new do |gem_spec|
gem_spec.name = "clearance"
- gem_spec.version = "0.4.0"
+ gem_spec.version = "0.4.1"
gem_spec.summary = "Rails authentication for developers who write tests."
gem_spec.email = "support@thoughtbot.com"
gem_spec.homepage = "http://github.com/thoughtbot/clearance"
View
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: clearance
version: !ruby/object:Gem::Version
- version: 0.4.0
+ version: 0.4.1
platform: ruby
authors:
- thoughtbot, inc.
@@ -15,7 +15,7 @@ autorequire:
bindir: bin
cert_chain: []
-date: 2009-01-18 00:00:00 -05:00
+date: 2009-01-27 00:00:00 -05:00
default_executable:
dependencies: []
@@ -28,30 +28,26 @@ extensions: []
extra_rdoc_files: []
files:
-- LICENSE
- Rakefile
- README.textile
+- LICENSE
- TODO.textile
- generators/clearance
-- generators/clearance/clearance_generator.rb
-- generators/clearance/lib
-- generators/clearance/lib/insert_commands.rb
-- generators/clearance/lib/rake_commands.rb
- generators/clearance/templates
+- generators/clearance/templates/README
+- generators/clearance/templates/test
+- generators/clearance/templates/test/factories
+- generators/clearance/templates/test/factories/clearance.rb
+- generators/clearance/templates/test/functional
+- generators/clearance/templates/test/functional/confirmations_controller_test.rb
+- generators/clearance/templates/test/functional/passwords_controller_test.rb
+- generators/clearance/templates/test/functional/sessions_controller_test.rb
+- generators/clearance/templates/test/functional/users_controller_test.rb
+- generators/clearance/templates/test/unit
+- generators/clearance/templates/test/unit/clearance_mailer_test.rb
+- generators/clearance/templates/test/unit/user_test.rb
- generators/clearance/templates/app
-- generators/clearance/templates/app/controllers
-- generators/clearance/templates/app/controllers/application.rb
-- generators/clearance/templates/app/controllers/confirmations_controller.rb
-- generators/clearance/templates/app/controllers/passwords_controller.rb
-- generators/clearance/templates/app/controllers/sessions_controller.rb
-- generators/clearance/templates/app/controllers/users_controller.rb
-- generators/clearance/templates/app/models
-- generators/clearance/templates/app/models/clearance_mailer.rb
-- generators/clearance/templates/app/models/user.rb
- generators/clearance/templates/app/views
-- generators/clearance/templates/app/views/clearance_mailer
-- generators/clearance/templates/app/views/clearance_mailer/change_password.html.erb
-- generators/clearance/templates/app/views/clearance_mailer/confirmation.html.erb
- generators/clearance/templates/app/views/passwords
- generators/clearance/templates/app/views/passwords/edit.html.erb
- generators/clearance/templates/app/views/passwords/new.html.erb
@@ -61,44 +57,48 @@ files:
- generators/clearance/templates/app/views/users/_form.html.erb
- generators/clearance/templates/app/views/users/edit.html.erb
- generators/clearance/templates/app/views/users/new.html.erb
+- generators/clearance/templates/app/views/clearance_mailer
+- generators/clearance/templates/app/views/clearance_mailer/change_password.html.erb
+- generators/clearance/templates/app/views/clearance_mailer/confirmation.html.erb
+- generators/clearance/templates/app/models
+- generators/clearance/templates/app/models/user.rb
+- generators/clearance/templates/app/models/clearance_mailer.rb
+- generators/clearance/templates/app/controllers
+- generators/clearance/templates/app/controllers/application.rb
+- generators/clearance/templates/app/controllers/passwords_controller.rb
+- generators/clearance/templates/app/controllers/users_controller.rb
+- generators/clearance/templates/app/controllers/sessions_controller.rb
+- generators/clearance/templates/app/controllers/confirmations_controller.rb
- generators/clearance/templates/db
- generators/clearance/templates/db/migrate
- generators/clearance/templates/db/migrate/create_users_with_clearance_columns.rb
- generators/clearance/templates/db/migrate/update_users_with_clearance_columns.rb
-- generators/clearance/templates/README
-- generators/clearance/templates/test
-- generators/clearance/templates/test/factories
-- generators/clearance/templates/test/factories/clearance.rb
-- generators/clearance/templates/test/functional
-- generators/clearance/templates/test/functional/confirmations_controller_test.rb
-- generators/clearance/templates/test/functional/passwords_controller_test.rb
-- generators/clearance/templates/test/functional/sessions_controller_test.rb
-- generators/clearance/templates/test/functional/users_controller_test.rb
-- generators/clearance/templates/test/unit
-- generators/clearance/templates/test/unit/clearance_mailer_test.rb
-- generators/clearance/templates/test/unit/user_test.rb
+- generators/clearance/lib
+- generators/clearance/lib/insert_commands.rb
+- generators/clearance/lib/rake_commands.rb
- generators/clearance/USAGE
+- generators/clearance/clearance_generator.rb
- lib/clearance
-- lib/clearance/app
-- lib/clearance/app/controllers
-- lib/clearance/app/controllers/application_controller.rb
-- lib/clearance/app/controllers/confirmations_controller.rb
-- lib/clearance/app/controllers/passwords_controller.rb
-- lib/clearance/app/controllers/sessions_controller.rb
-- lib/clearance/app/controllers/users_controller.rb
-- lib/clearance/app/models
-- lib/clearance/app/models/clearance_mailer.rb
-- lib/clearance/app/models/user.rb
- lib/clearance/test
+- lib/clearance/test/test_helper.rb
- lib/clearance/test/functional
- lib/clearance/test/functional/confirmations_controller_test.rb
- lib/clearance/test/functional/passwords_controller_test.rb
- lib/clearance/test/functional/sessions_controller_test.rb
- lib/clearance/test/functional/users_controller_test.rb
-- lib/clearance/test/test_helper.rb
- lib/clearance/test/unit
- lib/clearance/test/unit/clearance_mailer_test.rb
- lib/clearance/test/unit/user_test.rb
+- lib/clearance/app
+- lib/clearance/app/models
+- lib/clearance/app/models/user.rb
+- lib/clearance/app/models/clearance_mailer.rb
+- lib/clearance/app/controllers
+- lib/clearance/app/controllers/application_controller.rb
+- lib/clearance/app/controllers/passwords_controller.rb
+- lib/clearance/app/controllers/users_controller.rb
+- lib/clearance/app/controllers/sessions_controller.rb
+- lib/clearance/app/controllers/confirmations_controller.rb
- lib/clearance.rb
- shoulda_macros/clearance.rb
- rails/init.rb
@@ -127,6 +127,6 @@ rubyforge_project:
rubygems_version: 1.3.1
signing_key:
specification_version: 2
-summary: Simple, complete Rails authentication.
+summary: Rails authentication for developers who write tests.
test_files: []
@@ -12,7 +12,7 @@ def self.included(model)
attr_accessor :password, :password_confirmation
validates_presence_of :email
- validates_length_of :password, :if => :password_required?, :minimum => 6
+ validates_presence_of :password, :if => :password_required?
validates_confirmation_of :password, :if => :password_required?
validates_uniqueness_of :email, :case_sensitive => false
validates_format_of :email, :with => %r{.+@.+\..+}
@@ -13,11 +13,10 @@ def self.included(unit_test)
# registering
context "When registering" do
- should_require_attributes :email
+ should_require_attributes :email, :password
should_allow_values_for :email, "foo@example.com"
should_not_allow_values_for :email, "foo"
should_not_allow_values_for :email, "example.com"
- should_ensure_length_at_least :password, 6
should_validate_confirmation_of :password,
:factory => :registered_user

0 comments on commit c8da3d6

Please sign in to comment.