Acts as Subversioned 0.1 released on RubyForge!
That’s right — I’ve finished the first public version of my plugin for Ruby on Rails!
Here’s the project link: http://rubyforge.org/projects/actsassvn/
For those of you that downloaded my svn_repos.rb from a previous post: get rid of it! An updated version of that file is released in the above project.
What you get with this plugin:
- A sweet way to revision ActiveRecord objects using a Subversion repository,
- A fixture-style test harness for using repositories in unit tests,
- The above mentioned wrapper class for interacting with repositories,
- and automatic creation of environment specific repositories, handled by the plugin itself.
Once again, check it out at the RubyForge project site!
Note: Some documation is provided within the files themselves. I’m working on writing more user/technical documentation as well as trying to get RubyForge’s wiki to work with the project site (for some reason, there’s trouble). I’ll post again in the next week or two and let you know what’s up.
And…
Version 0.2 is in the works. I’ve got some ideas I’d like to add to this plugin to round out its features (mainly housekeeping of the repository itself, as well as diffing support and file locking). I’ll keep you posted.
Thanks for the interest!
Just saw your posting and am very happy you are releasing this plugin. I’ll take a look and pass along any comments since I need exactly this kind of functionality. Hope to see version 0.2 soon
Hey, thanks Bill.
There’s no strong dates because I’m doing this on my spare time, but I’m hoping it’ll soon. I wanted it done this weekend, but next weekend is probably more realistic.
Thanks for the interest!
Hi Tim,
This is very interesting work and has come at a very good time. I’m putting together a CMS and want to use Subversion as the backend. I’ve installed version 0.1 of your plugin but not had any luck getting it to work yet. Tell me, does the repository have to be local? I’m hoping I can access it using the svn protocol. My first stab at getting this to work was to create a new model and get it to act_as_subversioned. When I create a new instance it complains of a missing table name, just like ActiveRecord would without Subversion. Does this mean I’ve messed up somewhere?
I need to get a read-only version of the site running within a week so I’m tempted to just get the data by reading a local working copy and then come back to this later (perhaps when you have version 0.2?)
Anyway, thanks for your plugin. Let me know if I can help at all.
-
Bill (but not Bill Katz, a different Bill!)
Bill,
I’m not sure why you are getting table not found errors. If I understand my plugin correctly, there shouldn’t be a need for an extra table other than the one associated with your model. Have you ran the migration associated with that model, to make sure the table in the databased was created?
Unfortunately, version 0.2 isn’t going to be done for the next couple weeks. I was hoping to get it done last weekend, but I ran into some snags, and wasn’t able to. Now, I’m preparing to graduate from FL Tech, so all my extra time is pretty much taken up.
If you want to, go ahead and send me your model as well as your database schema and I’ll see if I can reproduce the error. I’m doubting the error is due to my plugin, but if very well could be.
Let me know if there’s anything else I can do.
Tim