Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 38 lines (34 sloc) 1.165 kB
e298e5f @raul New version
authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4
5 desc 'Default: run unit tests.'
6 task :default => :test
7
24de25c @raul Added jeweler tasks, fixed gemspec typo
authored
8 begin
9 require 'jeweler'
10 Jeweler::Tasks.new do |gem|
11 gem.name = "translate_routes"
12 gem.summary = %Q{Translate your Rails routes in a simple manner}
13 gem.description = %Q{Translates the Rails routes of your application into the languages defined in your locale files}
14 gem.email = "raul@murciano.net"
15 gem.homepage = "http://github.com/raul/translate_routes"
16 gem.authors = ["Raul Murciano"]
17 gem.files = Dir.glob('lib/**/*.rb')
18 end
19 Jeweler::GemcutterTasks.new
20 rescue LoadError
21 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
22 end
23
e298e5f @raul New version
authored
24 desc 'Test the translate_routes plugin.'
25 Rake::TestTask.new(:test) do |t|
26 t.libs << 'lib'
27 t.pattern = 'test/**/*_test.rb'
28 t.verbose = true
29 end
30
31 desc 'Generate documentation for the translate_routes plugin.'
32 Rake::RDocTask.new(:rdoc) do |rdoc|
33 rdoc.rdoc_dir = 'rdoc'
34 rdoc.title = 'TranslateRoutes'
35 rdoc.options << '--line-numbers' << '--inline-source'
36 rdoc.rdoc_files.include('README')
37 rdoc.rdoc_files.include('lib/**/*.rb')
53894f6 @enriclluelles dropped jeweler, wrote gemspec by hand
enriclluelles authored
38 end
Something went wrong with that request. Please try again.