gemstub 1.2.3 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,11 @@ app_readme_file:
11
11
  type: file
12
12
  template_path: <%= File.join(templates_directory_path, "README.template") %>
13
13
  output_path: <%= File.join(app, "README") %>
14
+
15
+ app_license_file:
16
+ type: file
17
+ template_path: <%= File.join(templates_directory_path, "LICENSE.template") %>
18
+ output_path: <%= File.join(app, "LICENSE") %>
14
19
 
15
20
  app_lib_init_file:
16
21
  type: file
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) <%= Time.now.year %> <%= author %>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -26,9 +26,9 @@ end
26
26
  s.author = "<%= author %>"
27
27
  s.email = ""
28
28
  s.homepage = ""
29
- s.files = FileList['lib/**/*.*', 'README', 'doc/**/*.*', 'bin/**/*.*']
29
+ s.files = FileList['lib/**/*.*', 'README', 'LICENSE', 'doc/**/*.*', 'bin/**/*.*']
30
30
  s.require_paths = ['lib']
31
- s.extra_rdoc_files = ["README"]
31
+ s.extra_rdoc_files = ['README', 'LICENSE']
32
32
  s.has_rdoc = true
33
33
  s.rubyforge_project = "<%= app %>"
34
34
  # s.test_files = FileList['spec/**/*']
@@ -118,8 +118,13 @@ end
118
118
  Rake::RDocTask.new do |rd|
119
119
  rd.main = "README"
120
120
  files = Dir.glob("**/*.rb")
121
+ <%- if rspec? -%>
122
+ files = files.collect {|f| f unless f.match("spec/") || f.match("doc/") }.compact
123
+ <%- elsif unit? -%>
121
124
  files = files.collect {|f| f unless f.match("test/") || f.match("doc/") }.compact
122
- files << "README"
125
+ <%- end -%>
126
+ files << 'README'
127
+ files << 'LICENSE'
123
128
  rd.rdoc_files = files
124
129
  rd.rdoc_dir = "doc"
125
130
  rd.options << "--line-numbers"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemstub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Bates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-19 00:00:00 -04:00
12
+ date: 2009-06-05 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -55,6 +55,7 @@ files:
55
55
  - lib/gemstub/gem_generator/manifest.yml
56
56
  - lib/gemstub/gem_generator/templates/app_gem.rb.template
57
57
  - lib/gemstub/gem_generator/templates/app_init.rb.template
58
+ - lib/gemstub/gem_generator/templates/LICENSE.template
58
59
  - lib/gemstub/gem_generator/templates/Rakefile.template
59
60
  - lib/gemstub/gem_generator/templates/README.template
60
61
  - lib/gemstub/gem_generator/templates/spec/app_spec.rb.template