README.md in dm-is-authenticatable-0.1.2 vs README.md in dm-is-authenticatable-0.2.0
- old
+ new
@@ -1,18 +1,17 @@
# dm-is-authenticatable
-* [Source](http://github.com/postmodern/dm-is-authenticatable)
-* [Issues](http://github.com/postmodern/dm-is-authenticatable/issues)
+* [Source](https://github.com/postmodern/dm-is-authenticatable)
+* [Issues](https://github.com/postmodern/dm-is-authenticatable/issues)
* [Documentation](http://rubydoc.info/gems/dm-is-authenticatable/frames)
* [Email](mailto:postmodern.mod3 at gmail.com)
## Description
A DataMapper plugin for adding authentication and encrypted passwords to
-your DataMapper models. Ideal for use with
-[warden](http://github.com/hassox/warden) or
-[sinatra_warden](http://github.com/jsmestad/sinatra_warden).
+your DataMapper models. Ideal for use with [warden], [sinatra_warden] or
+[padrino-warden].
## Example
require 'dm-core'
require 'dm-is-authenticatable'
@@ -57,11 +56,11 @@
# => true
User.authenticate(:name => 'bob', :password => 'secret')
# => #<User: ...>
-Using dm-is-authenticatable with [Warden](http://github.com/hassox/warden#readme):
+Using dm-is-authenticatable with [warden]:
Warden::Manager.serialize_into_session { |user| user.id }
Warden::Manager.serialize_from_session { |id| User.get(id) }
Warden::Strategies.add(:password) do
@@ -70,11 +69,11 @@
params['name'] && params['password']
end
def authenticate!
attributes = {
- :name => params['name'],
+ :name => params['name'],
:password => params['password']
}
if (user = User.authenticate(attributes))
success! user
@@ -84,19 +83,23 @@
end
end
## Requirements
-* [bcrypt-ruby](http://rubygems.org/gems/bcrypt-ruby) ~> 3.0, >= 2.1.0
-* [dm-core](http://github.com/datamapper/dm-core/) ~> 1.0
-* [dm-types](http://github.com/datamapper/dm-types/) ~> 1.0
-* [dm-validations](http://github.com/datamapper/dm-validations/) ~> 1.0
+* [bcrypt-ruby](https://github.com/codahale/bcrypt-ruby#readme) ~> 3.0, >= 2.1.0
+* [dm-core](https://github.com/datamapper/dm-core#readme) ~> 1.0
+* [dm-types](https://github.com/datamapper/dm-types#readme) ~> 1.0
+* [dm-validations](https://github.com/datamapper/dm-validations#readme) ~> 1.0
## Install
$ gem install dm-is-authenticatable
## License
-Copyright (c) 2010-2011 Hal Brodigan
+Copyright (c) 2010-2012 Hal Brodigan
See {file:LICENSE.txt} for license information.
+
+[warden]: https://github.com/hassox/warden#readme
+[sinatra_warden]: https://github.com/jsmestad/sinatra_warden#readme
+[padrino-warden]: https://github.com/jondot/padrino-warden#readme