Permalink
Browse files

Updated the gem spec to use almost all the options.

git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@171 5af023f1-ac1a-0410-98d6-829a145c37ef
  • Loading branch information...
1 parent 9ec4874 commit 44fa75ba5d14ae83e4a235a1c9a0525968a13179 jimweirich committed May 1, 2004
Showing with 41 additions and 16 deletions.
  1. +41 −16 rake/Rakefile
View
@@ -89,27 +89,52 @@ if ! defined?(Gem)
puts "Package Target requires RubyGEMs"
else
spec = Gem::Specification.new do |s|
- s.platform = Gem::Platform::RUBY
- s.summary = "Ruby based make-like utility."
+
+ #### Basic information.
+
s.name = 'rake'
s.version = PKG_VERSION
- s.requirements << 'none'
- s.require_path = 'lib'
- s.autorequire = 'rake'
+ s.summary = "Ruby based make-like utility."
+ s.description = <<-EOF
+ Rake is a Make-like program implemented in Ruby. Tasks
+ and dependencies are specified in standard Ruby syntax.
+ EOF
+
+ #### Dependencies and requirements.
+
+ #s.add_dependency('log4r', '> 1.0.4')
+ #s.requirements << ""
+
+ #### Which files are to be included in this gem? Everything! (Except CVS directories.)
+
s.files = PKG_FILES.to_a
- s.author = 'Jim Weirich'
- s.email = 'jweirich@one.net'
- s.homepage = 'http://onestepback.org'
+
+ #### C code extensions.
+
+ #s.extensions << "ext/rmagic/extconf.rb"
+
+ #### Load-time details: library and application (you will need one or both).
+
+ s.require_path = 'lib' # Use these for libraries.
+ s.autorequire = 'rake'
+
+ s.bindir = "bin" # Use these for applications.
+ s.executables = ["rake"]
+ s.default_executable = "rake"
+
+ #### Documentation and testing.
+
s.has_rdoc = true
-# s.rdoc_files = rd.rdoc_files
-# s.rdoc_options = rd.option_list
- s.rubyforge_project = 'rake'
- s.description = <<EOF
-Rake is a Make-like program implemented in Ruby. Tasks
-and dependencies are specified in standard Ruby syntax.
-EOF
+ #s.test_suite_file = "test/rmagic-tests.rb"
+
+ #### Author and project details.
+
+ s.author = "Jim Weirich"
+ s.email = "jim@weirichhouse.org"
+ s.homepage = "http://http://onestepback.org"
+ s.rubyforge_project = "rake"
end
-
+
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true

0 comments on commit 44fa75b

Please sign in to comment.