square/cane

Cane breaks on Ruby 1.8.7; contains 1.9-specific code.

Closed this issue · 1 comments

/Library/Ruby/Gems/1.8/gems/cane-2.4.0/lib/cane/runner.rb:3:in `require': /Library/Ruby/Gems/1.8/gems/cane-2.4.0/lib/cane/violation_formatter.rb:13: syntax error, unexpected ':', expecting ')' (SyntaxError)
        v.merge(file_and_line: v[:line] ?
                              ^
/Library/Ruby/Gems/1.8/gems/cane-2.4.0/lib/cane/violation_formatter.rb:16: syntax error, unexpected ')', expecting kEND
/Library/Ruby/Gems/1.8/gems/cane-2.4.0/lib/cane/violation_formatter.rb:61: syntax error, unexpected $end, expecting kEND
    from /Library/Ruby/Gems/1.8/gems/cane-2.4.0/lib/cane/runner.rb:3
    from /Library/Ruby/Gems/1.8/gems/cane-2.4.0/lib/cane/cli.rb:1:in `require'
    from /Library/Ruby/Gems/1.8/gems/cane-2.4.0/lib/cane/cli.rb:1
    from /Library/Ruby/Gems/1.8/gems/cane-2.4.0/bin/cane:3:in `require'
    from /Library/Ruby/Gems/1.8/gems/cane-2.4.0/bin/cane:3
    from /usr/bin/cane:23:in `load'
    from /usr/bin/cane:23

Now that it requires 1.9, I think this "works as coded".