I just installed 3.5 and fired up a Ramaze project I'm working on
and... BOOM!
/opt/local/lib/ruby/gems/1.9.1/gems/sequel-3.5.0/lib/sequel/core.rb:
165:in `require': /opt/local/lib/ruby/gems/1.9.1/gems/sequel-3.5.0/lib/
sequel/adapters/shared/mssql.rb:230: syntax error, unexpected ':',
expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
/opt/local/lib/ruby/gems/1.9.1/gems/sequel-3.5.0/lib/sequel/adapters/
shared/mssql.rb:232: syntax error, unexpected keyword_when, expecting
keyword_end
when Array:
I'm running Ruby 1.9.1p243 and I believe the colon syntax is
depreciated.
I changed this (/sequel-3.5.0/lib/sequel/adapters/shared/mssql.rb line
227):
def output(into, values)
output = {}
case values
when Hash:
output[:column_list], output[:select_list] = values.keys,
values.values
when Array:
output[:select_list] = values
end
output[:into] = into
clone({:output => output})
end
to this:
def output(into, values)
output = {}
case values
when Hash then
output[:column_list], output[:select_list] = values.keys,
values.values
when Array then
output[:select_list] = values
end
output[:into] = into
clone({:output => output})
end
Which appears to have solved the problem.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---