Skip to content

Commit

Permalink
version 2.0.4
Browse files Browse the repository at this point in the history
  use 'zip' gem. thx id:forest
  fix Rakefile for latest rubygems / rake
  • Loading branch information
Constellation committed Jul 20, 2011
1 parent dbe1b8f commit 569cded
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Rakefile
Expand Up @@ -3,9 +3,7 @@ require 'rubygems'
require 'rake' require 'rake'
require 'rake/clean' require 'rake/clean'
require 'rake/testtask' require 'rake/testtask'
require 'rake/packagetask' require 'rubygems/package_task'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/contrib/sshpublisher' require 'rake/contrib/sshpublisher'
require './lib/crxmake' require './lib/crxmake'


Expand All @@ -14,6 +12,7 @@ $readme = 'README.rdoc'
$rdoc_opts = %W(--main #{$readme} --charset utf-8 --line-numbers --inline-source) $rdoc_opts = %W(--main #{$readme} --charset utf-8 --line-numbers --inline-source)
$name = 'crxmake' $name = 'crxmake'
$summary = 'make chromium extension' $summary = 'make chromium extension'
$description = 'command line tool for making chromium extension'
$author = 'Constellation' $author = 'Constellation'
$email = 'utatane.tea@gmail.com' $email = 'utatane.tea@gmail.com'
$page = 'http://github.com/Constellation/crxmake/tree/master' $page = 'http://github.com/Constellation/crxmake/tree/master'
Expand All @@ -38,7 +37,7 @@ spec = Gem::Specification.new do |s|
s.extra_rdoc_files = [$readme] s.extra_rdoc_files = [$readme]
s.rdoc_options += $rdoc_opts s.rdoc_options += $rdoc_opts
s.summary = $summary s.summary = $summary
s.description = $summary s.description = $description
s.author = $author s.author = $author
s.email = $email s.email = $email
s.homepage = $page s.homepage = $page
Expand All @@ -56,17 +55,17 @@ spec = Gem::Specification.new do |s|
s.files = %w(README.rdoc Rakefile) + Dir["{bin,test,lib}/**/*"] s.files = %w(README.rdoc Rakefile) + Dir["{bin,test,lib}/**/*"]
end end


Rake::GemPackageTask.new(spec) do |p| Gem::PackageTask.new(spec) do |p|
p.need_tar = true p.need_tar = true
p.gem_spec = spec p.gem_spec = spec
end end


Rake::RDocTask.new do |rdoc| #RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'doc' # rdoc.rdoc_dir = 'doc'
rdoc.options += $rdoc_opts # rdoc.options += $rdoc_opts
# rdoc.template = 'resh' ## rdoc.template = 'resh'
rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.c") # rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.c")
end #end


desc "gem spec" desc "gem spec"
task :gemspec do task :gemspec do
Expand Down

0 comments on commit 569cded

Please sign in to comment.