Summoner is a project mainly written in Ruby, it's free.
Simple replacement for Ruby Fixtures
Summoner is a really simple fixture replacemoent for Ruby.
gem install summoner
You can prepare your monsters like:
Summoner.prepare :monster do |c| c.type "Esper" end
Then, you can summon your monsters like:
Summoner.summon :monster
Or, if you need to override default values:
Summoner.summon :monster do |c| c.type "Guardian" end
Also, you can override options with a hash:
Summoner.summon(:monster, :type => "Avatar")
From v0.1.2 on, you can also summon ActiveRecord instances directly from their classes without prepare them before, for example:
Monster.summon do |m| m.type = "Esper" end
Note the difference between with the prepare method, here you should use the = sign to assign values.