Pikaday datepicker as a Ruby gem.
03/25/2015 - Unsupported: Due to the ETS Berkeley team now using npm for front-end dependencies, this gem is no longer supported.
Add the gem to your Gemfile:
gem "pikaday-gem"
And run
bundle install
in the terminal to download the resources.
In order for the files to load, you'll need to do add them.
application.js
:
//= require pikaday
application.css
:
*= require pikaday
and you should be good to go.
If you would like to update this gem you should take the following steps:
rake download VERSION=X.X.X
. If you don't specify the version, it will get the latest one.rake tag VERSION=X.X.X
will tag the version you've specified as the standard version.- Make a Pull request
Then the maintainer of the gem will need to do the following steps:
- Update the version lib/pikaday-gem/version.rb
- Run
gem build pikaday-gem.gemspec
to package the gem - Once satisfied, push the gem up to RubyGems.org with
gem push pikaday-gem-<VERSION>.gem
- Update the changelog
Releases happen in CircleCI when a tag is pushed to the repository.
To create a release, you will need to do the following:
- Change the version in
lib/pikaday-gem/version.rb
to the new version and create a PR with the change. - Once the PR is merged, switch to the master branch and
git pull
. git tag <version from version.rb>
git push origin --tags
CircleCI will see the tag push, build, and release a new version of the library.