From f8c0c5eca111b2e116c38df7d670c18cd5f6ba6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 20 Nov 2010 11:45:36 +0100 Subject: [PATCH] Improve gemspec a bit. --- thor.gemspec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/thor.gemspec b/thor.gemspec index 2de2f29ef..850f8e6fc 100644 --- a/thor.gemspec +++ b/thor.gemspec @@ -1,6 +1,8 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/thor/version', __FILE__) +extra_rdoc_files = ['CHANGELOG.rdoc', 'LICENSE', 'README.md', 'Thorfile'] + Gem::Specification.new do |s| s.add_development_dependency("bundler", "~> 1.0") s.add_development_dependency("fakeweb", "~> 1.3") @@ -13,12 +15,12 @@ Gem::Specification.new do |s| s.authors = ['Yehuda Katz', 'José Valim'] s.description = %q{A scripting framework that replaces rake, sake and rubigen} s.email = ['ruby-thor@googlegroups.com'] - s.extra_rdoc_files = ['CHANGELOG.rdoc', 'LICENSE', 'README.md', 'Thorfile'] - s.homepage = 'http://yehudakatz.com/2008/05/12/by-thors-hammer/' + s.extra_rdoc_files = extra_rdoc_files + s.homepage = 'http://github.com/wycats/thor' s.rdoc_options = ['--charset=UTF-8'] s.require_paths = ['lib'] s.summary = s.description s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.files = `git ls-files -- {bin,lib,spec}/*`.split("\n") + extra_rdoc_files + s.test_files = `git ls-files -- {spec}/*`.split("\n") end