Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
celeduc opened this issue Oct 31, 2012 · 1 comment
Closed

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

celeduc opened this issue Oct 31, 2012 · 1 comment

Comments

@celeduc
Copy link
Contributor

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 pushed a commit to celeduc/cane that referenced this issue Oct 31, 2012
The gem should fail to install on old Ruby versions, as it won't run properly (see Issue square#46)
@celeduc
Copy link
Contributor Author

celeduc commented Nov 1, 2012

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

@celeduc celeduc closed this as completed Nov 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant