2.8 KiB
How to Contribute
If you're interested in contributing, take a look at the general contributer's guide first.
Build Gem
Run gem build application_insights.gemspec
to generate the gem file.
And you can install the gem to test it locally by running gem install application_insights-[version].gem
.
Run Test
Make sure you have bundler installed, you can install it by sudo gem install bundler
. And run bundler install
once to install all dependencies.
Run rake test
.
Releasing new version
This is for repository maintainers only:
-
Create and merge develop->master PR https://github.com/Microsoft/ApplicationInsights-Ruby/compare/master...develop?expand=1
-
Checkout latest
master
git checkout master git pull
-
Remove old gem:
rm *.gem
-
Push gem:
gem push application_insights-0.5.5.gem
-
Check gem on rubygems
-
Tag code:
git tag -a v0.5.5 git push origin v0.5.5
-
Update description of release from CHANGELOG.md
-
Create a branch off
develop
branchgit checkout develop git pull git checkout -b releaseUpdates git push --set-upstream origin releaseUpdates
-
Update version in
/lib/application_insights/version.rb
-
Create new entry for the next release in
/CHANGELOG.md
-
Push changes
git add -A git commit -m "post release updates" git push
-
Submit releaseUpdates->develop PR: https://github.com/Microsoft/ApplicationInsights-Ruby/compare/develop...releaseUpdates?expand=1
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.