Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Commit 5f6f3f0

Browse files
author
David Dooling
committed
Prepare for 0.30.0 release
Update change log. Add AddLicense to README. Revert LICENSE text to original content.
1 parent 888f947 commit 5f6f3f0

File tree

5 files changed

+47
-6
lines changed

5 files changed

+47
-6
lines changed

.atomist/editors/AddLicense.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AddLicense implements EditProject {
4343

4444
// TODO: Add more license types
4545
@Parameter({
46-
displayName: "License type",
46+
displayName: "License Type",
4747
description: "license type (currently only supporting aslv2: Apache version 2)",
4848
pattern: "^aslv2$",
4949
validInput: "Possible values: aslv2",

.atomist/resources/licenses/aslv2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2016 Atomist
189+
Copyright [yyyy] [name of copyright owner]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10-
[Unreleased]: https://github.com/atomist/rug-rugs/compare/0.29.0...HEAD
10+
[Unreleased]: https://github.com/atomist/rug-rugs/compare/0.30.0...HEAD
11+
12+
## [0.30.0] - 2017-05-12
13+
14+
[0.30.0]: https://github.com/atomist/rug-rugs/compare/0.29.0...0.30.0
15+
16+
Version release
1117

1218
### Changed
1319

@@ -20,16 +26,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2026

2127
- Command handler `show latest versions` that displays the latest versions
2228
of `com.atomist:rug` and `@atomist/rugs`
23-
- BumpVersion editor
24-
- UpdateRug editor
29+
- BumpVersion editor [#49][49]
30+
- UpdateRug editor [#49][49]
2531
- isRugArchive and isSetupForTypeScript functions
2632
- NotRugArchiveError class
33+
- AddLicense editor
2734

2835
### Deprecated
2936

3037
- IsRugArchive and IsSetupForTypeScript functions
3138

3239
[51]: https://github.com/atomist/rug-rugs/issues/51
40+
[49]: https://github.com/atomist/rug-rugs/issues/49
3341

3442
## [0.29.0] - 2017-04-26
3543

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2016 Atomist
189+
Copyright [yyyy] [name of copyright owner]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,39 @@ handlers. Most meta.
1212

1313
## Rugs
1414

15+
### AddLicense
16+
17+
The AddLicense editor adds a LICENSE file to a project and license
18+
header comments to TypeScript files in a project.
19+
20+
#### Prerequisites
21+
22+
A source code project.
23+
24+
#### Parameters
25+
26+
This Rug takes following parameters.
27+
28+
Name | Required | Default | Description
29+
-----|----------|---------|------------
30+
`include` | No | "" | Comma-separated list of paths under which to search for files, search under all paths if empty
31+
`license` | No | "aslv2" | License to add, currently only "aslv2" is supported
32+
33+
#### Running
34+
35+
Run this Rug as follows:
36+
37+
```
38+
$ cd project/directory
39+
$ rug edit atomist:rug-rugs:AddLicense \
40+
include=src,test \
41+
license=aslv2
42+
```
43+
44+
This will add the ASLv2 license as `LICENSE` to the file and add a
45+
license header comment to all TypeScript files under the `src` and
46+
`test` directories in the project.
47+
1548
### AddLocalEditor
1649

1750
The AddLocalEditor editor adds an editor for modifying the local

0 commit comments

Comments
 (0)