ai / r18n

I18n tool to translate your Ruby application.

This URL has Read+Write access

nanodeath (author)
Mon Oct 26 03:28:03 -0700 2009
ai (committer)
Mon Oct 26 03:28:03 -0700 2009
commit  98326a83f308da8ae7a9eefce750efbcc5ffd1bc
tree    300ac343f418cea281bd7816bc27e3ea283b25a4
parent  798475ad621c09f800194c1e283492051928ae88
r18n / Rakefile
100644 38 lines (30 sloc) 0.68 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
33
34
35
36
37
38
# encoding: utf-8
require 'rubygems'
gem 'rspec'
require 'spec/rake/spectask'
 
GEMS = %w[ r18n-core r18n-desktop sinatra-r18n ]
 
task :default => :spec
 
def rake(task)
  sh "#{RUBY} -S rake #{task}", :verbose => false
end
 
def each_rake(task)
  GEMS.each do |dir|
    Dir.chdir(dir) { rake task }
  end
end
 
Spec::Rake::SpecTask.new('spec') do |t|
  t.libs << 'r18n-core/lib/'
  t.spec_opts = ['--format', 'progress', '--colour']
  t.spec_files = []
  GEMS.each do |gem|
    t.spec_files << Dir[gem + '/spec/**/*_spec.rb'].sort
  end
end
 
desc 'Build the gem files'
task :gem do
  each_rake 'gem'
end
 
task :clobber do
  rm_r 'log' if File.exists? 'log'
  each_rake 'clobber'
end