Transaction::Simple 1.4.0
Saturday, 3 February 2007
Posted by austin in: Ruby, trackback
So I’ve finally had an opportunity to start working on my projects again, after having not worked on them for the latter part of 2005 and all of 2006. (I had other things going on.) I spent last night and today working on Transaction::Simple 1.4.0. I converted it to use Ryan Davis’s hoe. I made the .gem and the .tar.gz files idempotent (yes, my Rakefile depends on RubyGems—if you have problems with this, use the .tar.gz, thanks) and provide setup.rb 3.4.1 as part of the distribution. I also added a post-rewind hook (#_post_transaction_rewind) to fix the issues discussed last year. I went through and eliminated the warnings that appear, and I’ve decided that the #transaction method is bogus and will be removed with Transaction::Simple 2.0.
Transaction::Simple provides a generic way to add active transaction support to objects. The transaction methods added by this module will work with most objects, excluding those that cannot be Marshal-ed (bindings, procedure objects, IO instances, or singleton objects).
I’m going to need to look at hoe a little closer to provide a patch that will support the way that I need to use it (hoe’s default behaviour is pretty good, if not great for greenfield development; I have legacy behaviours I need to support). If Ryan doesn’t accept it (or at least the functionality I need, even if it’s in a different form), I may need to keep a private version around, because I had to do entirely too much manually even after I reorganized the project to match a lot of Ryan’s expectations.




Comments
Sorry, comments are closed for this entry