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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dffa8eb5358db48284060ba8e6d8c31d7c23015b
4
- data.tar.gz: e9d0df358b97b21f68beac4f7febf777fcca0755
3
+ metadata.gz: ace8628bb615f766437017632c7e127224f3daac
4
+ data.tar.gz: ea9be3907d5619bd96222e2cbd7034aba3782851
5
5
  SHA512:
6
- metadata.gz: a4894872294fdd4f9547ea93322f84e489d95c0c7f7cdf2a2ef2c6658812670e4348c4aa2a24e75ded2e61497f04b3165ce4fab31c6e01c02bb885b9307e7ad6
7
- data.tar.gz: f11b907720e80ea8e42554fea1f4daa6cc6f0e881d609fb72a8ec4b9f9d573e023a7560f45381172e4a922a283d354b391624d2744fca51d3519f96d7cd00d54
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
- * `-l`, `--list`: See all available licenses.
11
- * `-v`, `--version`: Print the version.
12
- * `create <LICENSE>`: Create a license file.
13
- * `help [COMMAND]`: Describe available commands or one specific command.
14
- * `show <LICENSE>`: Show a license text.
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
- * `-f`, `--filename <FILENAME>`: The output filename. Default value is `LICENSE'.
19
- * `-n`, `--name <NAME>`: The name to use. Default value is obtained from git.
20
- * `-y`, `--year <YEAR>`: The year to use. Default value is this year.
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 --list` to see all available licenses.
37
+ Run `licensor list` to see all available licenses.
37
38
 
38
39
  * apache
39
40
  * artistic
@@ -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
- map %w[--list -l] => :__print_supported_licenses
31
- desc "-l, [--list]", "See all available licenses."
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
- map %w[--version -v] => :__print_version
38
- desc "-v, [--version]", "Print the version."
39
- def __print_version
38
+ desc "version", "Print the version."
39
+ def version
40
40
  puts VERSION
41
41
  end
42
42
 
@@ -1,3 +1,3 @@
1
1
  module Licensor
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OTSUKA Tatsuya