danger-samsao 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +60 -0
- data/lib/samsao/gem_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce381ca0181a3c9df3c2c536e6d707bce6defcbe
|
4
|
+
data.tar.gz: 14d687d8d21fb34fd864526eb1fd82832b0835cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c73357ebc4b5683b292f389f08e810fb5467997bddbcc6c5b6bc27250c8b659b822de6a7d36106e5392b292d29fe8d8f516f20877028ee523407054e291a6695
|
7
|
+
data.tar.gz: 00bec8ce51b8b01b75a3d2b9ee6fe5fab5a550b1763714eea63a2386837be29a85182b558b3ec01bbc9e20d581be1b096b08507638114e0095ea2cc24750c68b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -228,3 +228,63 @@ and enter the token to the side of `DANGER_GITHUB_API_TOKEN` line.
|
|
228
228
|
|
229
229
|
The release process is quite simple. It consists of doing a release commit,
|
230
230
|
run a rake task and finally doing a bump to next version commit and push it.
|
231
|
+
Assume for the rest of this section that we are releasing version `0.1.0`
|
232
|
+
and today's date is `May 1st, 2017`. Terminal commands are given, but feel
|
233
|
+
free to use `SourceTree` or anything else.
|
234
|
+
|
235
|
+
Start by checking out the commit that was flagged as the release commit (could be
|
236
|
+
the `develop` branch) and name the branch `release/0.1.0`:
|
237
|
+
|
238
|
+
```
|
239
|
+
git checkout -b release/0.1.0 aeb156fb4a
|
240
|
+
```
|
241
|
+
|
242
|
+
Once on the branch, modify `CHANGELOG.md` so that `In progress` is replaced by
|
243
|
+
the current version and released date `## 0.1.0 (May 1, 2017)`. Then modify
|
244
|
+
`lib/samsao/gem_version.rb` to ensure the version is set to current value
|
245
|
+
`VERSION = '0.1.0'.freeze`. Lastly, run `bundle install` just to ensure
|
246
|
+
`Gemfile.lock` has correct new version also.
|
247
|
+
|
248
|
+
With all these changes, make a release commit and use the following normalized
|
249
|
+
text as the commit message:
|
250
|
+
|
251
|
+
```
|
252
|
+
Released version 0.1.0
|
253
|
+
```
|
254
|
+
|
255
|
+
Once the commit is done, simply run `bundle exec rake release`. This will
|
256
|
+
ask you for the Samsao's RubyGems credentials (only if it's your first
|
257
|
+
release, ask a system administrator to get them). It will create a tag
|
258
|
+
on the current commit of the current branch (should be the release commit
|
259
|
+
made earlier) named `v0.1.0`. And it will finally push the tag to the
|
260
|
+
repository as well as building and publishing the gem on RubyGems.
|
261
|
+
|
262
|
+
Last thing to do is bumping to next development version. Edit back
|
263
|
+
`CHANGELOG.md` so that `## In progress` is the new section header and
|
264
|
+
add a bunch of empty lines (around 10, only 2 shown in the example for
|
265
|
+
brevity) starting with a **space** followed by a **star**:
|
266
|
+
|
267
|
+
```
|
268
|
+
## In progress
|
269
|
+
|
270
|
+
*
|
271
|
+
|
272
|
+
*
|
273
|
+
|
274
|
+
## 0.1.0 (May 1, 2017)
|
275
|
+
```
|
276
|
+
|
277
|
+
Also edit `lib/samsao/gem_version.rb` so that next development version
|
278
|
+
value is used `VERSION = '0.1.1.pre1'.freeze`. The `.pre1` is the lowest
|
279
|
+
possible version before the official `0.1.1` one (or higher).
|
280
|
+
|
281
|
+
Commit all this changes together in a new commit that has the following
|
282
|
+
message:
|
283
|
+
|
284
|
+
```
|
285
|
+
Bumped to next development version
|
286
|
+
```
|
287
|
+
|
288
|
+
Finally, create a PR with this branch and open a pull request and merge
|
289
|
+
right away (your team mates should known in advance that a release is
|
290
|
+
happening and branch merged faster than other ones).
|
data/lib/samsao/gem_version.rb
CHANGED