licensor 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/lib/licensor/cli.rb +6 -6
- data/lib/licensor/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: ace8628bb615f766437017632c7e127224f3daac
|
4
|
+
data.tar.gz: ea9be3907d5619bd96222e2cbd7034aba3782851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8451ca09ff84cf2d563ad40ca9c523c0c71093a2d1b528cf85bfe60fc38b0514979671150f887c01a4c506e1c50f43f1c0d2a868f27339098e28bd560cd57d6b
|
7
|
+
data.tar.gz: ad60724817a7cc344aedf5f4bc4f4b28fbf99c5c3123afe68b7cd6de0d893c5dc3b49735d405c4db984855845461ec064285df29942563a74a957ea989f4d262
|
data/README.md
CHANGED
@@ -7,17 +7,18 @@ Create LICENSE file into your project.
|
|
7
7
|
|
8
8
|
## Usage
|
9
9
|
### Commands
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
|
11
|
+
* `licensor create <LICENSE>`: Create a license file.
|
12
|
+
* `licensor help [COMMAND]`: Describe available commands or one specific command.
|
13
|
+
* `licensor list`: See all available licenses.
|
14
|
+
* `licensor show <LICENSE>`: Show a license text.
|
15
|
+
* `licensor version`: Print the version.
|
15
16
|
|
16
17
|
|
17
18
|
### Options
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
* `-f`, `--filename <FILENAME>`: The output filename. Default value is `LICENSE'.
|
20
|
+
* `-n`, `--name <NAME>`: The name to use. Default value is obtained from git.
|
21
|
+
* `-y`, `--year <YEAR>`: The year to use. Default value is this year.
|
21
22
|
|
22
23
|
### Examples
|
23
24
|
|
@@ -33,7 +34,7 @@ $ gem install licensor
|
|
33
34
|
|
34
35
|
## Available Licenses
|
35
36
|
|
36
|
-
Run `licensor
|
37
|
+
Run `licensor list` to see all available licenses.
|
37
38
|
|
38
39
|
* apache
|
39
40
|
* artistic
|
data/lib/licensor/cli.rb
CHANGED
@@ -11,11 +11,13 @@ module Licensor
|
|
11
11
|
class_option :year, type: :numeric, aliases: :y, desc: "The year to use. Default value is this year."
|
12
12
|
class_option :name, type: :string, aliases: :n, desc: "The fullname to use. Default value is obtained from git."
|
13
13
|
|
14
|
+
|
14
15
|
desc "show <LICENSE>", "Show a license text."
|
15
16
|
def show(license)
|
16
17
|
puts text(license)
|
17
18
|
end
|
18
19
|
|
20
|
+
|
19
21
|
desc "create <LICENSE>", "Create a license file."
|
20
22
|
option :filename, type: :string, aliases: :f, desc: "The output filename. Default value is `LICENSE'."
|
21
23
|
def create(license)
|
@@ -27,16 +29,14 @@ module Licensor
|
|
27
29
|
end
|
28
30
|
|
29
31
|
|
30
|
-
|
31
|
-
|
32
|
-
def __print_supported_licenses
|
32
|
+
desc "list", "See all available licenses."
|
33
|
+
def list
|
33
34
|
puts @template.licenses
|
34
35
|
end
|
35
36
|
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
def __print_version
|
38
|
+
desc "version", "Print the version."
|
39
|
+
def version
|
40
40
|
puts VERSION
|
41
41
|
end
|
42
42
|
|
data/lib/licensor/version.rb
CHANGED