-
Notifications
You must be signed in to change notification settings - Fork 76
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
Keyword arguments do not work in Ruby 1.9 #59
Comments
Hi @oshmyrko , good find! Looks like we either need to stop supporting Ruby 1.9, require Ruby 2.0, or fix this for backward compatibility with Ruby 1.9. I guess we should fix this to support Ruby 1.9. @temujin9 Any thoughts/preference on this? I don't think there's anything else that is incompatible with Ruby 1.9 ... |
Let's keep Ruby 1.9 compatibility, at least for as long as it's simple to do so. |
Hi @jonaf,
Thanks! |
@oshmyrko I didn't get this error in Ruby 1.9.3-p551_1. What version of Ruby are you running? This error is due to the trailing comma, which is a preferred code style and acceptable in most places in most versions of Ruby (apparently, 1.9.1 doesn't like the trailing comma in method parameters?). |
I'm using Ruby 1.9.3p484:
|
That's odd ... Why does |
Found this - Why are we installing Ruby 1.9.2/1.9.3 gems into a 1.9.1 folder?, and this.
Seems it is normal. |
Thank you @jonaf, |
In this commit you've added new method and variable with keyword argument:
but keyword arguments work only with Ruby 2.0.
Does it mean that we should use cloudformation-ruby-dsl with Ruby 2.0 or it's just a mistake?
Thanks!
The text was updated successfully, but these errors were encountered: