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

celeduc opened this Issue Oct 31, 2012 · 1 comment


None yet
1 participant

celeduc commented Oct 31, 2012

/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

@celeduc celeduc pushed a commit to celeduc/cane that referenced this issue Oct 31, 2012

Chuck LeDuc Díaz Require Ruby 1.9
The gem should fail to install on old Ruby versions, as it won't run properly (see Issue #46)

celeduc commented Nov 1, 2012

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

celeduc closed this Nov 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment