Skip to content
Browse files

version 2.0.4

  use 'zip' gem. thx id:forest
  fix Rakefile for latest rubygems / rake
  • Loading branch information...
1 parent dbe1b8f commit 569cded0aa1c58b473e42debaaba5d2304027121 @Constellation committed Jul 20, 2011
Showing with 10 additions and 11 deletions.
  1. +10 −11 Rakefile
View
21 Rakefile
@@ -3,9 +3,7 @@ require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
+require 'rubygems/package_task'
require 'rake/contrib/sshpublisher'
require './lib/crxmake'
@@ -14,6 +12,7 @@ $readme = 'README.rdoc'
$rdoc_opts = %W(--main #{$readme} --charset utf-8 --line-numbers --inline-source)
$name = 'crxmake'
$summary = 'make chromium extension'
+$description = 'command line tool for making chromium extension'
$author = 'Constellation'
$email = 'utatane.tea@gmail.com'
$page = 'http://github.com/Constellation/crxmake/tree/master'
@@ -38,7 +37,7 @@ spec = Gem::Specification.new do |s|
s.extra_rdoc_files = [$readme]
s.rdoc_options += $rdoc_opts
s.summary = $summary
- s.description = $summary
+ s.description = $description
s.author = $author
s.email = $email
s.homepage = $page
@@ -56,17 +55,17 @@ spec = Gem::Specification.new do |s|
s.files = %w(README.rdoc Rakefile) + Dir["{bin,test,lib}/**/*"]
end
-Rake::GemPackageTask.new(spec) do |p|
+Gem::PackageTask.new(spec) do |p|
p.need_tar = true
p.gem_spec = spec
end
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'doc'
- rdoc.options += $rdoc_opts
-# rdoc.template = 'resh'
- rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.c")
-end
+#RDoc::Task.new do |rdoc|
+# rdoc.rdoc_dir = 'doc'
+# rdoc.options += $rdoc_opts
+## rdoc.template = 'resh'
+# rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.c")
+#end
desc "gem spec"
task :gemspec do

0 comments on commit 569cded

Please sign in to comment.
Something went wrong with that request. Please try again.