Comments (9)
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 ...
from cloudformation-ruby-dsl.
Let's keep Ruby 1.9 compatibility, at least for as long as it's simple to do so.
from cloudformation-ruby-dsl.
Created #61 for this issue. @temujin9 care to take a quick look for me? Thanks.
from cloudformation-ruby-dsl.
Hi @jonaf,
I'm not well familiar with Ruby, but I have one more question.
Should this line also be changed - validate_params: false?
Seems this error is caused by that line:
/var/lib/gems/1.9.1/gems/cloudformation-ruby-dsl-1.0.3/lib/cloudformation-ruby-dsl/cfntemplate.rb:52: syntax error, unexpected keyword_end, expecting $end
from ./logstash.rb:4:in `<main>'
Thanks!
from cloudformation-ruby-dsl.
@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?).
from cloudformation-ruby-dsl.
I'm using Ruby 1.9.3p484:
$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
$ gem which cloudformation-ruby-dsl
/var/lib/gems/1.9.1/gems/cloudformation-ruby-dsl-1.0.3/lib/cloudformation-ruby-dsl.rb
from cloudformation-ruby-dsl.
That's odd ... Why does gem
indicate you have cloudformation-ruby-dsl
installed for ruby 1.9.1, but your version of Ruby is 1.9.3?
from cloudformation-ruby-dsl.
Found this - Why are we installing Ruby 1.9.2/1.9.3 gems into a 1.9.1 folder?, and this.
In Ruby 1.9.0, the C interface was changed from the Ruby 1.8 series.
Gems that compile to native code had to be recompiled.
The interface was again changed in Ruby 1.9.1 and kept the same in Ruby 1.9.2 & 3. This explains the 1.9.1 you are seeing in your path.
Seems it is normal.
from cloudformation-ruby-dsl.
Thank you @jonaf,
it is working now.
from cloudformation-ruby-dsl.
Related Issues (20)
- Use optparse or thor HOT 1
- Allow nested code in interpolate()
- Improve unit testbed
- Use an OptionParser to generate the usage output
- Regression: expanding default parameters no longer works HOT 18
- False `diff` output and incorrect exit code HOT 2
- Updating with interactive parameters causes error HOT 1
- Using resource from a module HOT 1
- Add support for Change Sets for `diff` operation
- Attributes with dots in the name generate an incorrect get_att() call
- aws_region() "pseudo" parameter is not a pseudo parameter HOT 1
- Update fails if stack contains immutable parameter with NoEcho=true
- Incorrect handling of nested intrinsic functions in join()
- Missing function for Fn::Cidr
- https://rubygems.org/gems/cloudformation-ruby-dsl was displaying the license as "N/A" HOT 1
- Add support for stack metadata HOT 2
- Assumed Roles are ignored HOT 3
- profile fix broke it
- Add Github pull request template
- Credentials regression error in 1.2.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudformation-ruby-dsl.