Giter Site home page Giter Site logo

Rails 5 error about sham_rack HOT 3 CLOSED

mdub avatar mdub commented on May 18, 2024
Rails 5 error

from sham_rack.

Comments (3)

mdub avatar mdub commented on May 18, 2024

Hi Marcel.

Yeah, I'm aware there are some issues around Sinatra vs Rack v2. But, how do you imagine sham_rack resolving the conflict? That is, what kind of constraint do you propose adding to the gemspec?

It kind of feels like this shouldn't be ShamRack's problem. I'm reluctant to be specific about rack version - I'd rather make it compatible with as many versions of Rack as possible.

from sham_rack.

marceloboeira avatar marceloboeira commented on May 18, 2024

I was thinking about it now, since ShamRack is not declaring any other dependency other than "rack" and it does not specify the version I am inclined to agree. But I would like to keep the issue open or create a warning at the README so others can easily find a solution to that problem, at least while sinatra is beta. WDYT?

from sham_rack.

mdub avatar mdub commented on May 18, 2024

I'm happy to discuss solutions in this thread. I'm going to mark it closed, though - I don't think it makes it any less findable.

ShamRack's gemspec makes no mention of Sinatra, so that's not the source of the conflict. Is something else pulling sinatra into your project?

I think the real "fix" is waiting for the release of Sinatra 2.0.0, bringing compatibility with Rack 2.0, and Rails 5. It looks like the Sinatra folks are getting close to a 2.0.0 release.

In the meantime, I reckon

gem "sinatra", ">= 2.0.0.beta"

is a fine workaround.

from sham_rack.

Related Issues (6)

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.