Fix case expression for Ruby 1.9
Add gemspec