licensor 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dda0f0c99aca255650615faa81c95dccea3c390
4
- data.tar.gz: 8dd69cef2bbe29997c646dd0205f9b956702935f
3
+ metadata.gz: dffa8eb5358db48284060ba8e6d8c31d7c23015b
4
+ data.tar.gz: e9d0df358b97b21f68beac4f7febf777fcca0755
5
5
  SHA512:
6
- metadata.gz: 0b00a0a5d097f8efe3e4708b6d95e1456eef63a43fdf21ec82c79554dda0fa7c1cfc255a8b61a43471cbfa7c039dced9b49c8b9f3e1f7a7d2a5ee8ae101308ac
7
- data.tar.gz: ef647be2e54dd3222b5f821d73cbaaa525a35b440447fed1effc160d4814f7b1339691df2a4c70eae94b1771efd3ff3f0aea9a7e1e09c8de49b149f42deebb3b
6
+ metadata.gz: a4894872294fdd4f9547ea93322f84e489d95c0c7f7cdf2a2ef2c6658812670e4348c4aa2a24e75ded2e61497f04b3165ce4fab31c6e01c02bb885b9307e7ad6
7
+ data.tar.gz: f11b907720e80ea8e42554fea1f4daa6cc6f0e881d609fb72a8ec4b9f9d573e023a7560f45381172e4a922a283d354b391624d2744fca51d3519f96d7cd00d54
data/README.md CHANGED
@@ -2,15 +2,10 @@
2
2
 
3
3
  Create LICENSE file into your project.
4
4
 
5
+ ![create-demo](https://cloud.githubusercontent.com/assets/1025461/7900296/ab43db5a-0788-11e5-9e61-7a3366ff460d.gif)
5
6
 
6
- ## Usage
7
-
8
- ```
9
- $ licensor --list
10
- $ licensor show zlib -n "John Doe"
11
- $ licensor create bsd
12
- ```
13
7
 
8
+ ## Usage
14
9
  ### Commands
15
10
  * `-l`, `--list`: See all available licenses.
16
11
  * `-v`, `--version`: Print the version.
@@ -19,9 +14,16 @@ $ licensor create bsd
19
14
  * `show <LICENSE>`: Show a license text.
20
15
 
21
16
 
22
- ### Options:
17
+ ### 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.
23
20
  * `-y`, `--year <YEAR>`: The year to use. Default value is this year.
24
- * `-n`, `--name=NAME`: The name to use. Default value is obtained from git.
21
+
22
+ ### Examples
23
+
24
+ ![options-demo](https://cloud.githubusercontent.com/assets/1025461/7900297/b8a3e45c-0788-11e5-892f-f0670ea3593f.gif)
25
+
26
+ ![default-demo](https://cloud.githubusercontent.com/assets/1025461/7900299/c699421e-0788-11e5-8354-9cbbc4318f91.gif)
25
27
 
26
28
  ## Installation
27
29
 
@@ -29,6 +31,24 @@ $ licensor create bsd
29
31
  $ gem install licensor
30
32
  ```
31
33
 
34
+ ## Available Licenses
35
+
36
+ Run `licensor --list` to see all available licenses.
37
+
38
+ * apache
39
+ * artistic
40
+ * bsd
41
+ * eclipse
42
+ * gpl
43
+ * lgpl
44
+ * mit
45
+ * mozilla
46
+ * nysl
47
+ * zlib
48
+ * no-license
49
+ * unlicense
50
+
51
+
32
52
  ## Development
33
53
 
34
54
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec licensor` to use the gem in this directory, ignoring other installed copies of this gem.
@@ -42,7 +62,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/tatzyr
42
62
 
43
63
  ## Licence
44
64
 
45
- See [LICENSE]().
65
+ See [LICENSE](LICENSE).
46
66
 
47
67
 
48
68
  ## Author
@@ -22,7 +22,7 @@ module Licensor
22
22
 
23
23
  private
24
24
  def find_templates
25
- Dir["lib/licensor/templates/*#{EXTNAME}"]
25
+ Dir["#{__dir__}/templates/*#{EXTNAME}"]
26
26
  end
27
27
  end
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module Licensor
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/licensor.gemspec CHANGED
@@ -17,6 +17,9 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
+ spec.required_ruby_version = "~> 2.0"
21
+ spec.license = "Zlib"
22
+
20
23
  spec.add_dependency "mustache", "~> 1.0"
21
24
  spec.add_dependency "thor", "~> 0.19"
22
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OTSUKA Tatsuya
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-30 00:00:00.000000000 Z
11
+ date: 2015-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustache
@@ -116,7 +116,8 @@ files:
116
116
  - lib/licensor/version.rb
117
117
  - licensor.gemspec
118
118
  homepage: https://github.com/tatzyr/licensor
119
- licenses: []
119
+ licenses:
120
+ - Zlib
120
121
  metadata: {}
121
122
  post_install_message:
122
123
  rdoc_options: []
@@ -124,9 +125,9 @@ require_paths:
124
125
  - lib
125
126
  required_ruby_version: !ruby/object:Gem::Requirement
126
127
  requirements:
127
- - - ">="
128
+ - - "~>"
128
129
  - !ruby/object:Gem::Version
129
- version: '0'
130
+ version: '2.0'
130
131
  required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  requirements:
132
133
  - - ">="