Rakefile in piglop-prawn-0.10.2.2 vs Rakefile in piglop-prawn-0.10.2.3
- old
+ new
@@ -42,11 +42,37 @@
examples.each { |file| `ruby -Ilib #{file}` }
puts "Ran in #{Time.now - t} s"
`mv *.pdf output`
end
-spec = Gem::Specification.load "prawn.gemspec"
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_zip = true
- pkg.need_tar = true
+PRAWN_VERSION = "0.10.2.3"
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |spec|
+ spec.name = "piglop-prawn"
+ spec.version = PRAWN_VERSION
+ spec.platform = Gem::Platform::RUBY
+ spec.summary = "A fast and nimble PDF generator for Ruby"
+ spec.files = Dir.glob("{examples,lib,spec,vendor,data}/**/**/*") +
+ ["Rakefile"]
+ spec.require_path = "lib"
+
+ spec.test_files = Dir[ "test/*_test.rb" ]
+ spec.has_rdoc = true
+ spec.extra_rdoc_files = %w{HACKING README LICENSE COPYING}
+ spec.rdoc_options << '--title' << 'Prawn Documentation' <<
+ '--main' << 'README' << '-q'
+ spec.author = "Gregory Brown"
+ spec.email = " gregory.t.brown@gmail.com"
+ spec.rubyforge_project = "prawn"
+ spec.add_dependency('pdf-reader', '>=0.8.1')
+ spec.homepage = "http://prawn.majesticseacreature.com"
+ spec.description = <<END_DESC
+ Prawn is a fast, tiny, and nimble PDF generator for Ruby
+END_DESC
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
+