This Rakefile generates a snapshot of the Joshua Project's widget and crops the image appropriately. The purpose is to circumvent the restrictions on WordPress.com websites that only allow static images in the widget area. To see the final result, check out the following image.
To run this script, from terminal use the following command:
rake create_snapshot:snap_it -f lib/tasks/create_snapshot.rake
To run Bundler on a shared host, use the following command:
bundle install --gemfile /directory/of/your/Gemfile --path /directory/to/vendor/gems
If you choose to install your gems in a local directory, make sure to run the rake command with bundle exec.
- Ruby 1.8.7
- Bundler
- All gems in the Gemfile
- A Browshot Account
Questions or problems? Please post them on the issue tracker. You can contribute changes by forking the project and submitting a pull request.
This script is created by Missional Digerati and is under the GNU General Public License v3.