Adapt case statement to Ruby 2.0
version 0.1.1