pubnub-js
This gem packages the PubNub Javascript SDK for the Rails asset pipeline
Versionning
Versioning follows the core releases of the PubNub Javascript SDK
For instance: using
gem 'pubnub-js', '~> 3.7.14'
in yourGemfile
will include the version3.7.14
of the PubNub Javascript SDK in your Rails app.
See the list of available versions on the gem page
Installation
→ In your Gemfile
add:
gem 'pubnub-js'
and run :
bundle install
→ In your application.js
add:
//= require pubnub
Contributing
If you notice that this gem is not using the last version of the PubNub Javascript SDK. You can easily bundle a new version of the pubnub-js gem with a new version of the PubNub Javascript SDK by following these steps :
- Fork this repository ( https://github.com/supertinou/pubnub-js/fork )
- Create your feature branch (
git checkout -b update-to-[new version number]
) - Update the pubnub.js file located at
vendor/assets/javascripts/pubnub.js
by replacing it with the new version and update the version number inversion.rb
with the corresponding version. - Commit your changes (
git commit -am 'Version [new version number]'
) - Push to the branch (
git push origin update-to-[new version number]
) - Create a new Pull Request