There are not too many changes from before, mostly spec updates, and internal updates that only really affect the generators to use merb-gen.
Unfortunately test unit support is... well the test unit tests aren't working atm. RSpec ones work, and all the specs should function correctly. The specs are fairly complete tho so I have at least some confidence that the plugin is working :)
Git it
The repo has now been fully moved over to git. I'm not planning on updating the SVN repo. Of course if there are people that really want to use the SVN repo, I'll push it over there.
To get merbful_authentication just
sudo gem install merbful_authenticationor get it from my git repo.
git clone git://github.com/hassox/restful-authentication.git
cd restful-authentication
git checkout -b merbful_authentication origin/merbful_authentication
rake install
How to use it
merb-gen authenticated user_model session_controller [--include-activation]The only required argument is the user model. The sessions controller will default to Sessions. If you use the --include-activation mailers and required code will also be included.
What's different?
Well, besides the internals of the gem being simplified, there has been some changes to the generated files themselves.- There isn't the mess of dependency and require statements anymore. There is a require on 1 file lib/authenticated_system/authenticated_system_dependencies.rb All the dependencies are listed in here.
- The required routes are now in the lib/authenticated_system/authenticated_system_routes.rb file. They are automatically prepended to you routes once the app has started. So now you can just start using them :)
I hope this release will be relatively bug free, but if you do have any issues, catch me in #merb, or shoot me an email has.sox [at] gmail DOT c o m
3 comments:
@hassox, very nice work. I just noticed that whenever merb (0.9.0) re-compiles routes the authenticated_routes get wiped out. This happens automatically in development whenever you save router.rb.
That's a really good point. Thanx for brining it up.
I really wanted to remove the need to have to configure anything in it, but perhaps routes is a bit much at the moment.
You can always copy the routes from lib/authenticated_system/authenticated_system_routes.rb into config/routes.rb
Cheers
Daniel.
I'm at merb-gen-0.9.4 and the generators don't seem to load. I poked into the merb-gen gem (say that 5 times fast!) and it looks like some updating of class names and some internal differences as well -- such as, the report method is nowhere to be found. Anyway, any chance of getting this updated soon?
Post a Comment