Giter Site home page Giter Site logo

Rails 5 Support about survey HOT 11 OPEN

3zcurdia avatar 3zcurdia commented on July 20, 2024 5
Rails 5 Support

from survey.

Comments (11)

emersonthis avatar emersonthis commented on July 20, 2024 5

I'd love to use this in a Rails 5 app also! Any news on whether this is on the horizon?

from survey.

pedroadame avatar pedroadame commented on July 20, 2024

+1

from survey.

grimmwerks avatar grimmwerks commented on July 20, 2024

Any additional info - is it ready?

from survey.

tycoool avatar tycoool commented on July 20, 2024

+1

from survey.

osimakoff avatar osimakoff commented on July 20, 2024

Any word on this? Thanks!

from survey.

natsandovalt avatar natsandovalt commented on July 20, 2024

Any news?

from survey.

eriko-de avatar eriko-de commented on July 20, 2024

I prepared a commit, feel free to review (haven't done much on github yet, so please be patient with noobish mistakes)

from survey.

bjacquet avatar bjacquet commented on July 20, 2024

I opened a PR to support this.

@eriko-de we both worked on this at the same time!

I was having a hard time keeping both Rails versions (3.2.6 and 5.0.7) because of Bundler incompatibility. I.e. Rails 3 uses Bundler 1 and Rails 5 uses Bundler 2, and Bundler 1 isn't compatible with 2 (and vice-versa). For this reason I gave up on Rails 3.
It's Rails 5 from now on. 🚀

from survey.

eriko-de avatar eriko-de commented on July 20, 2024

I had no issue using bundler with ruby < 2.5 (used 2.3). i also don't get why it should be incompatible. nevertheless i did not had time to fully test the gem in a rails 3.x embedded app, but in our rails 4.x app all is working as expected after including the gem.

Don't understand why the dependency should be pushed from 3 to 5 not supporting 3 and 4 at all. I think this would introduce a lot of issues for other users.

from survey.

bjacquet avatar bjacquet commented on July 20, 2024

I first tried to keep the dependency from 3 to 5. But doing so I could not create an app for Rails 5 and another for Rails 3, using the same version of the gem. Maybe my system is not well configured or maybe I don't fully grasp RVM and Bundler and so.

The Rails version on my PR (5.0.7) is itself an unmaintained version. 5.2 is the oldest still with maintenance. Current users of the gem that do not want or do not need to upgrade to Rails 5 will have to lock this gem version in their Gemfile.

Either way, future developments will surely break retro-compatibility. The moment we use some new feature from Rails 6 or Ruby 3 our support for older gem versions is gone.

May I suggest you @eriko-de try to look into our PRs and try to create a gem supporting 3 through 5. See if you can create an app in Rails 3, 4, and 5. If you can, then great! 🎉 Meaning it's definitely my fault not being able to do so in the first place.

from survey.

eriko-de avatar eriko-de commented on July 20, 2024

Hey, sorry for the silence. I used my patch to get the gem working for our software (Rails 4, Ruby 2.3.3). It's running fine in our test environment, but we'll also update to Rails 5 at the end of the month (hopefully).

After updating to Rails 5, we would like to stick to the original repo again. So i'm happy with any PR which gets merged to get it running on Rails 5.

I wasn't able to get rails 3 running in the test suit because the dependencies are quit painful. I don't want to waste too much time, because, as you mentioned, it is rails 5 time :)

from survey.

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.