Found something wrong? Got a great idea? You too can make cucumber-nagios better by submitting a issue or patch.
First, head over to our issue tracking and see if other people want the same thing. If you don't see anything similar, create an issue to let us know what's on your mind. As you might expect, we use cucumber to write tests, so if you can describe your idea using Givens, Whens, and Thens, that'll make fixing it even easier.
If you're feeling ambitious, creating a feature branch that solves your issue is even better. Fork the project, and check out your fork (assuming a GitHub username of ken):
$ git clone https://github.com/ken/cucumber-nagios.git
Setup your environment and make sure the tests pass:
$ cd cucumber-nagios
$ bundle install
$ rake
Start a branch, apply your changes, make sure the tests still pass, commit, and push to GitHub:
$ git checkout -b my_feature_branch
[ edit files ]
$ rake
$ git commit -m "Added new awesome features. Fixes github issue #1234"
$ git push origin my_feature_branch
Then send us a pull request from your fork's page at GitHub.
Releasing a gem is easy, but everyone forgets the exact steps.
-
Check AUTHORS, LICENSE, TODO, README.md and lib/generators/project/README to make sure they're still accurate. Everyone hates when the docs are out of date! :-)
-
Review MANIFEST to make sure gem files, all the gem files, and nothing but the gem files are going into the gem. Running
git status
andrake check_manifest
will help you notice anything out of place. -
Update Cucumber::Nagios::VERSION in lib/cucumber/nagios/version.rb. Check http://semver.org if you aren't sure whether to use a prerelease, increment the patch, minor or major version.
-
Remove any stray files. Every file in
git status
should be in "Changes to be committed". -
Run the tests with
rake
. -
Commit your changes.
-
Build the gem with
rake build
. -
Install the gem locally with
rake install
. Check that it seems to work. -
Tag and push to RubyGems with
rake release
. -
Push to GitHub with
git push origin