add tests for ruby1.9
add micro definition to support both ruby 1.8 and 1.9
fix to work with ruby 1.9