about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-03 23:36:32 +0000
committerEric Wong <normalperson@yhbt.net>2013-04-03 23:36:32 +0000
commit5d50d5c80ea510d153136390b1e43e0dca69396d (patch)
treee4a9172cb853651747a19cc76692e1903a095964
parentec0b5b656e6cad27a70d1e0dac8ca8ecfa203e4e (diff)
downloadmahoro-5d50d5c80ea510d153136390b1e43e0dca69396d.tar.gz
gemspec: cleanup and update rdoc options
In case users want to install documentation with their RubyGems
-rw-r--r--mahoro.gemspec5
1 files changed, 3 insertions, 2 deletions
diff --git a/mahoro.gemspec b/mahoro.gemspec
index b21d4ba..f33b488 100644
--- a/mahoro.gemspec
+++ b/mahoro.gemspec
@@ -5,7 +5,6 @@ Gem::Specification.new do |s|
   s.version = ENV["VERSION"].dup
   s.homepage = "http://mahoro.rubyforge.org/"
   s.authors = [ "Shu-yu Guo", "Eric Wong" ]
-  s.date = Time.now.utc.strftime('%Y-%m-%d')
   s.description = %{
 An interface to libmagic to determine file types using "magic" numbers.
 This can be used in place of calling the file(1) command in Ruby scripts.
@@ -20,6 +19,8 @@ source: http://bogomips.org/mahoro.git/
   s.summary = 'An interface to libmagic'
   s.test_files = %w(test.rb)
   s.extensions = %w(extconf.rb)
+  s.extra_rdoc_files = %w(mahoro.c)
+  s.rdoc_options = %w(--exclude \.o --exclude \.so)
 
-  s.license = "Public Domain" # disabled for compatibility with older RubyGems
+  s.license = "Public Domain"
 end