A gem that makes JSColor available to Rails applications.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install jscolor-rails
//= require jscolor
The gem's jscolor.js is NOT the library itself. It simply requires the original jscolor file (renamed to jscolor_vendor.js) and adds compatibility with Turbolinks and the asset pipeline.
jscolor.dir's default value has been changed to
'/assets/' because jscolor's auto-detect fails to find the images in production mode. To change the path to the asset directory, do the following in your application's JS files:
jscolor.dir = '/path/to/assets/';
The gem version number tracks JSColor's version number.
The major, minor, and patch version numbers will always represent the JSColor version. Should a gem bug be discovered, a 4th version identifier will be added and incremented.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request
- 17/12/2014 1.4.4 Updated jscolor.js to 1.4.4
- 07/02/2013 18.104.22.168 Support for Rails 4 asset pipeline and Turbolinks. Moved customisations out of vendor jscolor.js.
- 17/12/2013 1.4.2 Updated jscolor.js to 1.4.2
- 21/01/2013 22.214.171.124 Fixed image URL in production mode
- 20/12/2013 1.4.0 Initial release