-
Notifications
You must be signed in to change notification settings - Fork 320
Gem deployment
Bruno P. Kinoshita edited this page Jan 22, 2022
·
9 revisions
The best resource for deploying a gem to RubyGems is their guide about it: Publishing your Gem.
Another developer must grant you permission to publish gems in RubyGems. You can start by signing up with RubyGems.
If you are using Ubuntu LTS (18.04) you can try the following.
- Install
rbenv. DigitalOcean has a good tutorial for Ubuntu. - Install stable
ruby(at time of writing:2.7.1)
e.g.
rbenv install 2.7.1
rbenv global 2.7.1
- Create symlinks for
rubyandgemor add the$HOME/.rbenv/versions/2.7.1/bindirectory to your$PATHenvironment variable. -
gem install bundler. This will install the Smashing gem dependencies, and you should be able to use./bin/smashingto run with the latest modifications.
Commands are not in any special order. They may be useful when building or testing the Gem locally.
gem listgem install --user $gembundle install-
gem build smashing.gemspec&&gem install smashing-1.2.0.gem -
irband thenrequire 'smashing'
- Check any open issues or pending PRs (anything that deserves label:security?)
- Confirm the GitHub milestone is good
- Update version in gemspec and in version.rb, and also the date in gemspec
- Do we need to update the Changelog? Maybe the release date?
- Try
rake testor testing the current version. Does it work? - Create tag
- Create GitHub release from tag
- Upload to RubyGems
gem build smashing.gemspecgem push smashing-1.1.1.1....gem
- Announce it
- Home
- Dashing Workshop
- Installation
- Widgets
- Configuration
- Security
- Troubleshooting
- Deploying dashboards
- How Tos
- How to: post data to your dashboard and widgets
- How to: Define a data model and store history data to database
- How to: Prevent a job from overlapping with itself
- How to: Send HTML data to your widgets
- How to: Send mysql data to your widgets
- How to: Setup a Graph
- How to: Store data to and display from database
- How to: Update a Dashboard using a spreadsheet
- How to: update dashboard in Django
- How to: Update font awesome fonts from version 3 to 4
- How to: Use New Relic with Dashing
- How to: precompile assets
- Development