Skip to content

yoolk/assets-rails

Repository files navigation

Assets-Rails

assets-rails allows you to require javascript and stylesheet libraries with the exact version so that your frontend stuffs will continue to work as times passed by. You can use different versions for different templates in a single Rails application.

Installation

Add this line to your application's Gemfile:

gem 'assets-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install assets-rails

Usage

The good use case of this gem is that you have a Rails application which allows external designers to build themes. In this case, you have no control on those themes or you have too many themes to work on when upgrading the frontend framework such as: jquery or bootstrap. Why it's hard to upgrade? It's because of this line:

  //= require bootstrap

This above line currently means require bootstrap.v3.2.0. As times passed by, bootstrap team releases newer version, the above line will fail out the existing themes. assets-rails allows you to require with the exact version inside your manifest files. This allows you to work on new themes and keep the existing themes continue to work as normal.

  //= require bootstrap/v3.2.0

Currently, assets-rails has bundled the following libraries:

  1. bootstrap: v3.2.0, v3.3.0, v3.3.2, v3.3.4
  2. jquery: v1.11.1, v2.1.1
  3. jquery.collageplus v0.3.3
  4. jquery.colorbox v1.5.14
  5. jquery.expander v1.4.12
  6. jquery.fakecrop
  7. jquery.fancybox v2.1.5
  8. jquery.flexslider v2.2.2
  9. jquery.render v1.1.0
  10. jquery.timeago v1.4.1
  11. jquery.nivo.slider v3.2
  12. jquery.owlcarousel v1.3.3
  13. jquery.scrollto v1.4.13
  14. jquery.infinitescroll v2.0.2
  15. jquery.pageless
  16. jquery.turbolinks v2.1.0
  17. jquery.cookie v1.4.1
  18. jquery.share
  19. jquery.zoom v1.7.13
  20. nprogress v0.1.6
  21. font-awesome v4.2.0
  22. zebra_datepicker v1.8.9
  23. draggabilly v1.1.1
  24. imagesloaded v3.1.8
  25. masonry v3.2.2
  26. responsiveCarousel v1.2.0
  27. responsiveslides v1.54
  28. isotope v2.0.1
  29. photoswipe v4.0.0, v4.0.2
  30. waypoints v3.0.1
  31. bootstrap-hover-dropdown v2.1.3
  32. jquery.magnific-popup v1.0.0
  33. jquery.resizeimagetoparent
  34. jquery-migrate v1.2.1
  35. jquery.mCustomScrollbar
  36. mobile-detect v1.2.0
  37. js-cookie v2.0.2
  38. jquery-ui v1.11.4
  39. jquery.matchHeight v0.6.0
  40. jquery.elevatezoom v3.0.8
  41. wow v1.1.2
  42. jquery.minimalect v0.9.0, v0.9.0
  43. javascript-equal-height-responsive-rowsv1.0.0
  44. jquery.cycle2 v2.1.6
  45. smartcrop.js v0.0.1
  46. evol.colorpicker v3.2.3, v3.2.3
  47. jquery.fileupload
  48. requirejs v2.1.22

Authors

About

Require the pre-vendored js/css libraries in your rails asset pipeline

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages