In gmailer.rb:284,
tmp = eval(x.gsub(",,",",'',").gsub(",,",",'',").gsub(",]",",'']&
quot;).gsub('#{','#\{'))
Only deal with '#{' is not enough.
irb(main):009:0> x = "#@"
SyntaxError: compile error
(irb):9: parse error, unexpected $undefined.
x = "#@"
^
(irb):9: unterminated string meets end of file
from (irb):9
from :0
It works better for me to simply escape # with \#, i.e., gsub('#','\#') as Ruby handles the escape correctly.
irb(main):001:0> x = "\#\#"
=> "##"
irb(main):002:0> x = "\#@"
=> "\#@"
irb(main):003:0> x = "\#1234"
=> "#1234"
|