Entries from October 2006

October 26, 2006

Better API with Ruby

I was building an API to automate MS Access and started with VBScript, because I tough it would be more simple. Even with no built-in include support, no true test framework, the code was pretty simple. The problem emerged at the time of using the resulting API…
VBScript:

GetControl(GetForm(myApp, “Contact”), “Name”).Value = “test”

= ugly
Now with [...]

October 15, 2006

migrate NAnt task

Just added an NAnt task to the migrator project. So if you would like to use it without the Castle Generator you could use this simple NAnt task on your own super projects:

<loadtasks assembly=”…/Migrator.NAnt.dll” />
<target name=”migrate” description=”Migrate the database” depends=”build”>
<property name=”version” value=”-1″ overwrite=”false” />
<migrate
provider=”MySql|PostgreSQL|SqlServer”
[...]