public
Rubygem
Fork of mattetti/globalite
Description: Globalite is meant to be a breed of the best i18n /l10n plugins available for Rails.
Homepage: http://code.google.com/p/globalite/
Clone URL: git://github.com/pnowak2/globalite.git
Search Repo:
globalite / Rakefile
100644 32 lines (27 sloc) 0.748 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'spec/rake/spectask'
 
desc 'Run Rspec examples for Globalite'
task :g_spec do
 Rake::Task["spec"].invoke
end
 
Spec::Rake::SpecTask.new do |t|
   t.spec_files = FileList["spec/**/*_spec.rb"]
end
 
desc 'Default: run unit tests.'
task :default => :test
 
desc 'Test the globalite plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the globalite plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'Globalite'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end