license-generator 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # Version 0.2.0 (2012-03-28)
2
+
3
+ Add MIT license template.
4
+
1
5
  # Version 0.1.1 (2011-10-03)
2
6
 
3
7
  Fix for gem loading with ruby 1.8.7
data/README.md CHANGED
@@ -4,11 +4,11 @@ Generate an open source license for your projects.
4
4
 
5
5
  ## Installation
6
6
 
7
- gem install lickjen
7
+ gem install license-generator
8
8
 
9
9
  ## Usage:
10
10
 
11
- lickjen [license] [options]
11
+ lickjen [license]
12
12
 
13
13
  Too see the available license templates:
14
14
 
@@ -13,6 +13,7 @@ Feature: Generate a License
13
13
 
14
14
  # TODO: add a couple more scenarios when we have more templates
15
15
 
16
+ @wip
16
17
  Scenario: Bad template name
17
18
  When I run `lickjen asdfaowefnasdfaoweranasdflao`
18
19
  Then I should see a graceful failure message
@@ -20,12 +20,14 @@ module LicenseGenerator
20
20
  template "#{meth}.erb", "LICENSE"
21
21
  end
22
22
 
23
- # Override Thor#help so it can give information about any class and any method.
23
+ # Override Thor#help to include templates.
24
24
  def help(task = nil)
25
25
  super
26
- say "Templates:"
27
- for_each_template do |template|
28
- say " lickjen #{template}\t# Generate a #{template} template"
26
+ unless task
27
+ say "Templates:"
28
+ for_each_template do |template|
29
+ say " lickjen #{template}\t# Generate a #{template} template"
30
+ end
29
31
  end
30
32
  end
31
33
 
@@ -1,5 +1,5 @@
1
1
  module License
2
2
  module Generator
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
data/templates/mit.erb ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) <%= Time.now.year %> <%= option(:name) %>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
metadata CHANGED
@@ -1,103 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: license-generator
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Justin Blake
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-03 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: thor
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70325744366340 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rake
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70325744366340
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &70325744365440 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
47
33
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: rspec
51
34
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70325744365440
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70325744364060 !ruby/object:Gem::Requirement
53
39
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
61
44
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: cucumber
65
45
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70325744364060
47
+ - !ruby/object:Gem::Dependency
48
+ name: cucumber
49
+ requirement: &70325744363340 !ruby/object:Gem::Requirement
67
50
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
75
55
  type: :development
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: aruba
79
56
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70325744363340
58
+ - !ruby/object:Gem::Dependency
59
+ name: aruba
60
+ requirement: &70325744373540 !ruby/object:Gem::Requirement
81
61
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
89
66
  type: :development
90
- version_requirements: *id005
67
+ prerelease: false
68
+ version_requirements: *70325744373540
91
69
  description: Generate an open source license file in your project.
92
- email:
70
+ email:
93
71
  - justin@hentzia.com
94
- executables:
72
+ executables:
95
73
  - lickjen
96
74
  extensions: []
97
-
98
75
  extra_rdoc_files: []
99
-
100
- files:
76
+ files:
101
77
  - .gitignore
102
78
  - CHANGELOG.md
103
79
  - Gemfile
@@ -119,41 +95,32 @@ files:
119
95
  - spec/app_spec.rb
120
96
  - spec/spec_helper.rb
121
97
  - templates/bsd.erb
122
- has_rdoc: true
98
+ - templates/mit.erb
123
99
  homepage: https://github.com/blaix/license-generator
124
100
  licenses: []
125
-
126
101
  post_install_message:
127
102
  rdoc_options: []
128
-
129
- require_paths:
103
+ require_paths:
130
104
  - lib
131
- required_ruby_version: !ruby/object:Gem::Requirement
105
+ required_ruby_version: !ruby/object:Gem::Requirement
132
106
  none: false
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- hash: 3
137
- segments:
138
- - 0
139
- version: "0"
140
- required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
141
112
  none: false
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- hash: 3
146
- segments:
147
- - 0
148
- version: "0"
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
149
117
  requirements: []
150
-
151
118
  rubyforge_project: license-generator
152
- rubygems_version: 1.3.9.3
119
+ rubygems_version: 1.8.10
153
120
  signing_key:
154
121
  specification_version: 3
155
122
  summary: Open Source License generator
156
- test_files:
123
+ test_files:
157
124
  - features/generate_license.feature
158
125
  - features/get_help.feature
159
126
  - features/list_templates.feature