June 3, 2009
Machinist 1.0, now with DataMapper support
Machinist 1.0 is now available on GitHub!
The major feature is DataMapper support. Big thanks to Daniel Neighman for his help with this.
Update: I wrote up a simple example of how Machinist intelligently handles associations in DataMapper and ActiveRecord.
You can also now blueprint plain old Ruby objects.
It’s easy to add support for other ORM layers. If you’re keen, take a look at lib/machinist/active_record.rb for a comprehensive example of how it’s done.
Upgrading
If you've installed it as a gem:
sudo gem update notahat-machinist
If you’re using it as a Rails plugin:
./script/plugin install --force git://github.com/notahat/machinist.git
Important: You now have to require Machinist and Sham in your blueprints.rb:
require 'machinist/active_record'
require 'sham'
Substitute in data_mapper if that’s your weapon of choice.
Congratulations on the 1.0!
Freakin' awesome dude. Love it.
Yay! Everything is green! Totally depend on it.
Nice one Pete.
Eat that factory girl. Congrats!