Coder Social home page Coder Social logo

Using with Rails 3.1 about html5shiv-js-rails HOT 6 CLOSED

roul avatar roul commented on September 26, 2024
Using with Rails 3.1

from html5shiv-js-rails.

Comments (6)

RouL avatar RouL commented on September 26, 2024

To be true, I'm not sure if the current version runs with Rails 3.1. At work I'm only working with Rails 4.x and in private projects I currently only use Rails 4.1. So I can't test it for Rails 3.x.

If you can test it and everything works (also that it's automatically compiled with rake assets:precompile for production) and tell me the railties version you did used, then I will fix the gemspec. :)

from html5shiv-js-rails.

brendon avatar brendon commented on September 26, 2024

Thanks @RouL, for now I've just downloaded it and added it into the asset pipeline locally (since it's one file) :) If I have some spare time I'll fork it and give it a go :) I didn't think about the precompile thing! I assumed whatever was used to do the precompiling would be defined by the rails project itself rather than per each -rails asset pipeline gem :)

from html5shiv-js-rails.

RouL avatar RouL commented on September 26, 2024

No problem @brendon. It's possible to do that in the project, but since html5shiv will be always included directly from with a script-tag instead of being included into the application.js via asset-pipeline, I thought it will be best to make sure you don't need to add it to the precompile list with: Rails.application.config.assets.precompile += %w( html5shiv.js )

With Rails 4.0 or 4.1 something changed, that's why I'm not sure if the current version will run properly with older Rails versions. You can see the change here: 304d1d0

from html5shiv-js-rails.

brendon avatar brendon commented on September 26, 2024

Thanks @RouL :) I've just checked my project and I'm adding assets to the precompile array using the += method, so you could probably loosen up the gemspec down to Rails 3.1 if you liked :)

from html5shiv-js-rails.

RouL avatar RouL commented on September 26, 2024

I think at the weekend I will find some time. I will also check for new versions of html5shiv then.

from html5shiv-js-rails.

brendon avatar brendon commented on September 26, 2024

Thanks Markus :)

from html5shiv-js-rails.

Related Issues (3)

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.