mattetti/googlecharts

Ruby 1.9.1 issue

Closed this issue · 2 comments

jgn commented

On my 1.9.1, charts URLs aren't getting built at all.

The offending code seems to be:

def query_builder(options="")
dataset
query_params = instance_variables.sort.map do |var|
case var
when '@DaTa'

"case var" needs to be "case var.to_s" under Ruby 1.9.1; the case equality isn't working with a symbol.

fixed

jgn commented

awesome