Skip to content
GeoCENS JS API for the Rails asset pipeline
JavaScript Ruby
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/assets/javascripts
certs
lib
.gitignore
Gemfile
README.md
Rakefile
geocens-js-api-rails.gemspec

README.md

GeoCENS JS API for Rails Asset Pipeline

This gem will automatically include the GeoCENS JS API in the Rails Asset Pipeline for easy inclusion and upgrading.

Installation

Add this line to your Rails application's Gemfile:

gem 'geocens-js-api-rails', github: 'Canarie-Sensor-RPI/geocens-js-api-rails'

And then execute:

$ bundle install

You can optionally lock it to a specific version of the GeoCENS JS API using a tag:

gem 'geocens-js-api-rails', github: 'Canarie-Sensor-RPI/geocens-js-api-rails', tag: 'v1.2.5'

Usage

After installing the gem in your application, you can include the GeoCENS JS API libraries in your JS files using Sprockets require method:

// application.js example
//
//= require jquery
//= require highstock
//= require leaflet
//= require geocens
//= require geocens-chart
//= require geocens-map

Note that you must install jQuery, Highcharts, and Leaflet yourself separately from this gem to use all the features of the GeoCENS JS API.

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

License

Copyright Geo Sensor WebLab, James Badger, 2013. All rights reserved.

You can’t perform that action at this time.