Clearance Crypto
So in my foray into the rails templates world I’ve stumbled onto a couple of authentication options that I wasn’t previously aware of.
Authlogic which is nice in that it moves all the actual authentication logic into a gem to make updates dead simple. The one thing I didn’t like was that you have to generate all of your own MVC code. Though honestly this isn’t such an issue now that I have it all rolled in to a Rails 2.3 template
Clearance is also nice in that it generates the MVC code yet still keeps all the authentication logic in a gem for easy updates. The only thing I didn’t really care for, though I do understand why they did it, is the inability to choose the hash algorithm.
Along comes ClearanceCrypto this provides a very similar way to choose the hashing algorithm like you can in Authlogic. The code was picked and tweaked from the Authlogic code to match the way Clearance checks the authentication.
It’s very new and may have issues. Feel free to let me know if you find anything.
continue reading
A very happy Sean on rvm friendly TextMate bundles on Aug 10, 2010 at 02:43 AM
Thanks so much for these. I’d almost give up on getting Textmate working with RVM.
Ed Ruder on rvm + gemsets + TextMate == yay! * 2 on Jul 30, 2010 at 04:06 PM
What got everything working for me was to: a) follow the directions on http://rvm.beginrescueend.com/integration/textmate/, b) rename a second Builder.rb file in ~/Library/Application\ Support/TextMate/Pristine\ Copy/Support/lib, and c) set up TM_RUBY per slides 36 & 37 of http://www.slideshare.net/freelancing_god/zsh-and-rvm (create a shell script that resolves to rvm’s ruby on the fly and point TextMate to it)!
Now, everything is working like a charm! (No mucking with TextMate’s Bundle Editor, either, which is nice.)
Trevor on rvm friendly TextMate bundles on Jun 22, 2010 at 10:20 AM
Really excited to see that you’ve put this together, but I’m having trouble getting it to see anything other than my system Ruby. I’ve set up the .rvmrc in my project w/ the proper ruby and can confirm that it’s seeing the right one. I assume that this is intended to use project-level .rvmrc?
Gerhard on rvm + gemsets + TextMate == yay! * 2 on Jun 02, 2010 at 04:27 AM
This kinda’ works, but I’m getting a weird error related to paths even though the path that it’s complaining about is correct and the file exists, is readable etc.
Also, formatting is all screwy when it uses rvm & gemsets.
jake on rvm + gemsets + TextMate == yay! * 2 on May 18, 2010 at 10:10 AM
You will have to edit each command you want to have these changes in the Bundle Editor.