KLADR API JS client for Rails Asset Pipeline
[JS client for KLADR API servise as jQuery plugin] plugin by [@garakh] author packaged for Ruby on Rails asset pipeline.
THIS GEM IS NO MORE MAINTAINED! Using Rails Assets to install this library instead is strongly encouraged and recommended!
Rails Assets is much better in publishing JS libraries as gems for rails asset pipeline and keeping them up to date than me. So use it and be happy!
Installation of plugin from Bower via Rails Assets
Just do the three simple steps:
-
Add this to your
Gemfilesource 'https://rails-assets.org' do gem 'rails-assets-jquery.kladr' end
-
Add this line to
app/assets/stylesheets/application.css:*= require jquery.kladr/jquery.kladr.minAnd this line to
app/assets/javascripts/application.js://= require jquery.kladr
Upgrading from Rubygems gem release to Rails Assets gem release
- Remove from
Gemfilestringgem 'jquery-kladr-rails' - Remove
require jquery.kladrfrom your asset manifests. - Follow installation instructions above.
Installation of this gem from RubyGems (discouraged)
THIS GEM IS NO MORE MAINTAINED! E.g. no updates from upstream.
Add this line to your application's Gemfile:
gem 'jquery-kladr-rails'
And then execute:
$ bundle
Add this line to app/assets/stylesheets/application.css:
*= require jquery.kladr
Add this line to app/assets/javascripts/application.js:
//= require jquery.kladr
Usage
See the original plugin README and official examples.
Contributing
- 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
Version policy
This gem version number is in form of X.Y.Z.P, where X.Y.Z is a version of original plugin and P is a gem-specific patch level.