Giter VIP home page Giter VIP logo

Comments (9)

jonaf avatar jonaf commented on June 20, 2024

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.

temujin9 avatar temujin9 commented on June 20, 2024

Let's keep Ruby 1.9 compatibility, at least for as long as it's simple to do so.

from cloudformation-ruby-dsl.

jonaf avatar jonaf commented on June 20, 2024

Created #61 for this issue. @temujin9 care to take a quick look for me? Thanks.

from cloudformation-ruby-dsl.

oshmyrko avatar oshmyrko commented on June 20, 2024

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.

jonaf avatar jonaf commented on June 20, 2024

@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.

oshmyrko avatar oshmyrko commented on June 20, 2024

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.

jonaf avatar jonaf commented on June 20, 2024

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.

oshmyrko avatar oshmyrko commented on June 20, 2024

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.

oshmyrko avatar oshmyrko commented on June 20, 2024

Thank you @jonaf,
it is working now.

from cloudformation-ruby-dsl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.