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

Syntax Error(ruby2.3.0) #1

Closed
ore-public opened this issue Jan 6, 2016 · 2 comments
Closed

Syntax Error(ruby2.3.0) #1

ore-public opened this issue Jan 6, 2016 · 2 comments

Comments

@ore-public
Copy link

require 'color_echo'

CE.ch :green
puts "Inported: a.json, count: 1111"
CE.off
/Users/hoge/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/color_echo-2.0.1/lib/color_echo/variables.rb:33:in `eval': (eval):1: `@@<' is not allowed as a class variable name (SyntaxError)
    from /Users/hoge/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/color_echo-2.0.1/lib/color_echo/variables.rb:33:in `block in <module:CE>'
    from /Users/hoge/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/color_echo-2.0.1/lib/color_echo/override.rb:15:in `puts'
    from main.rb:4:in `<main>'
@khotta
Copy link
Owner

khotta commented Jan 6, 2016

Hi, Thanks for your inquiry.
The problem be caused by the difference of return value about Kernel.#caller between '>= 2.3.0' and under it.
I've fixed this issue on color_echo-2.0.3.
But I think this way isn't rather smart. I'll try to find an other way of this problem.
I hope you to continue to use color_echo :)

@khotta khotta closed this as completed Jan 6, 2016
@ore-public
Copy link
Author

thanks

It was successfully After you verify with the new version.

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

2 participants