Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syndbg/rails_jquery_cropper
Integrates fengyuanchen's jQuery cropper with Rails' asset pipeline
https://github.com/syndbg/rails_jquery_cropper
Last synced: 11 days ago
JSON representation
Integrates fengyuanchen's jQuery cropper with Rails' asset pipeline
- Host: GitHub
- URL: https://github.com/syndbg/rails_jquery_cropper
- Owner: syndbg
- License: mit
- Created: 2015-07-19T19:03:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-19T19:39:21.000Z (over 9 years ago)
- Last Synced: 2024-10-06T19:35:36.850Z (about 1 month ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/rails_jquery_cropper
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RailsJqueryCropper
## Requirements
* rails >= 4.0.0
* jquery-rails## Installation
### Add to your Gemfile
`gem 'rails_jquery_cropper'`
### Add to your `application.css`
`*= require cropper`
### Add to your `application.js`
`//= require cropper`
### `bundle install` !
### jQuery Cropper usage is explained in http://fengyuanchen.github.io/cropper/
## Contributing
## Found a bug or you'd like to add a feature:
* Fork the repo
* Clone *your* fork `https://github.com/YOUR_USERNAME/rails_jquery_cropper.git`
* Create a new branch `pull-request-name`
* Run the one and only unit test `rake test`
* Run the app server in `test/dummy` (`bundle install && cd test/dummy && rails s`)
* Go in your browser to '/' and confirm that everything is working or you can reproduce a bug you found
* Now you can start coding your feature/fix!
* Submit a PR in the end### jQuery Cropper is out-of-date?
* Follow the steps in `Found a bug or you'd like to add a feature` until running the unit test
* Run `rake update` which will download the latest CSS and JS of jQuery Cropper and place it in `vendor/assets/`If you're not in a hurry (means you can wait 1-2 days at most)
* Commit, push and submit a PR.If you're in a hurry and need the updated jQuery Cropper ASAP:
* Push your updated fork.
* Modify Gemfile rails_jquery_cropper line like this `gem 'rails_jquery_cropper', github:'YOUR_USERNAME/rails_jquery_cropper', branch: 'your-branch'`