Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (40 sloc) 1.19 kb
521ceb0 overhaul and some testing
thorny_sun authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
258c2ac Implemented as a gem
Ilya authored
4 require 'rake/gempackagetask'
521ceb0 overhaul and some testing
thorny_sun authored
5
6 desc 'Default: run unit tests.'
7 task :default => :test
8
824d621 Tiny rakefile updates: tests are broken. Need to fix
Ilya authored
9 #desc 'Test the prawnto plugin.'
10 #Rake::TestTask.new(:test) do |t|
11 #t.libs << 'lib'
12 #t.pattern = 'test/**/*_test.rb'
13 #t.verbose = true
14 #end
521ceb0 overhaul and some testing
thorny_sun authored
15
16 desc 'Generate documentation for the prawnto plugin.'
17 Rake::RDocTask.new(:rdoc) do |rdoc|
18 rdoc.rdoc_dir = 'rdoc'
19 rdoc.title = 'Prawnto'
20 rdoc.options << '--line-numbers' << '--inline-source'
21 rdoc.rdoc_files.include('README')
22 rdoc.rdoc_files.include('lib/**/*.rb')
23 end
258c2ac Implemented as a gem
Ilya authored
24
25 PKG_FILES = FileList[ '[a-zA-Z]*', 'lib/**/*', 'test/*', 'rails/*' ]
26
27 spec = Gem::Specification.new do |s|
28 s.name = "prawnto"
29 s.version = "0.0.1"
30 s.author = "smecsia"
31 s.email = "smecsia@gmail.com"
32 #s.homepage = ""
33 s.platform = Gem::Platform::RUBY
34 s.summary = "Prawnto rails plugin implemented as a gem (see prawnto)"
35 s.add_dependency('rails', '>=2.1')
36 s.add_dependency('prawn')
37 s.files = PKG_FILES.to_a
38 s.require_path = "lib"
39 s.has_rdoc = true
40 s.extra_rdoc_files = ["README"]
41 end
42
43 desc 'Turn this plugin into a gem.'
44 Rake::GemPackageTask.new(spec) do |pkg|
45 pkg.gem_spec = spec
46 end
47
Something went wrong with that request. Please try again.