Skip to content

Commit 8f91a9e

Browse files
authored
Release first beta (#116)
1 parent d6037e6 commit 8f91a9e

File tree

4 files changed

+53
-1
lines changed

4 files changed

+53
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ failed.txt
44
rerun.txt
55
coverage/
66
examples/
7+
datadog_api_client-*.gem

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CHANGELOG
2+
3+
## 1.0.0-beta.1 / 2020-12-09
4+
5+
* [Added] First beta release of the Ruby datadog-api-client library

RELEASING.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Releasing
2+
This document summarizes the process of doing a new release of this project.
3+
Release can only be performed by Datadog maintainers of this repository.
4+
5+
## Schedule
6+
This project does not have a strict release schedule. However, we would make a release at least every 2 months.
7+
- No release will be done if no changes got merged to the `master` branch during the above mentioned window.
8+
- Releases may be done more frequently than the above mentioned window.
9+
10+
## Prerelease checklist
11+
* Check and upgrade dependencies where it applies and makes sense.
12+
- Create a distinct pull request and test your changes since it may introduce regressions.
13+
- While using the latest versions of dependencies is advised, it may not always be possible due to potential compatibility issues.
14+
- Upgraded dependencies should be thoroughly considered and tested to ensure they are safe!
15+
* Make sure tests are passing.
16+
- Locally and in the continuous integration system.
17+
* Manually test changes included in the new release.
18+
* Make sure documentation is up-to-date.
19+
20+
## Release Process
21+
### Prerequisite
22+
Install [bundler](https://bundler.io/) and setup your RubyGems credentials:
23+
1. Register an account on https://rubygems.org/
24+
1. *Datadog Admins only* - Be assigned to Datadog's RubyGems gems by an owner.
25+
1. Set a `~/.gem/credentials` file as the following:
26+
```
27+
---
28+
:rubygems_api_key: $RUBYGEMS_APIKEY
29+
```
30+
1. Install [datadog_checks_dev](https://datadog-checks-base.readthedocs.io/en/latest/datadog_checks_dev.cli.html#installation) using Python 3.
31+
1. Install [gem-release](https://github.com/svenfuchs/gem-release#installation).
32+
33+
### Update Changelog
34+
#### Commands
35+
- See changes ready for release by running `ddev release show changes .` at the root of this project. Add any missing labels to PRs if needed.
36+
- Run `ddev release changelog . <NEW_VERSION>` to update the `CHANGELOG.md` file at the root of this repository
37+
- Commit the changes to the repository in a release branch. Do not merge yet.
38+
39+
### Release
40+
1. Bump the version. e.g. `gem bump -v 1.0.0`.
41+
1. Merge the PR to master.
42+
1. Create the release in the [Github releases page](https://github.com/DataDog/datadog-api-client-ruby/releases).
43+
1. Checkout the tag created at the previous step.
44+
1. Release the gem: `gem release`.
45+
1. Check that the [Ruby Gem is published](https://rubygems.org/gems/datadog_api_client).
46+
1. Bump the version again to a dev version (e.g. `gem bump -v 1.0.1+dev`), open a PR and merge it to master.

lib/datadog_api_client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'rbconfig'
44

55
module DatadogAPIClient
6-
VERSION = '0.1.0'
6+
VERSION = '1.0.0-beta.1'
77

88
USER_AGENT = format(
99
'datadog-api-client-ruby/%<version>s (ruby %<ruver>s; os %<os>s; arch %<arch>s)',

0 commit comments

Comments
 (0)