d3js-plugins-rails

Each plugin should live in a directory that matches its name.

Installation

Add the following to your gemfile:

gem 'd3js-plugins-rails'

And then execute:

$ bundle

Add the needed directives to your JavaScript manifest file (application.js):

//= require d3/plugins/geo/projection/projection
//= require d3/plugins/geo/projection/kavrayskiy7

It's unlikely you will need to include all plugins globally.

HighSecurity

To ensure that you're including a gem with original code, you can install this gem using a HighSecurity policy.

gem cert --add <(curl -Ls https://gist.github.com/bai/5150087/raw/public_cert.pem)
bundle install --trust-policy HighSecurity

Or, if you don't use bundler:

gem install d3js-plugins-rails -P HighSecurity

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request