-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
58 lines (52 loc) · 1.9 KB
/
Rakefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
require "rake"
require "rake/testtask"
require "rake/rdoctask"
begin
require "jeweler"
Jeweler::Tasks.new do |gemspec|
gemspec.name = "rich_i18n"
gemspec.summary = "Enrichments (e9s) module for internationalization (i18n)"
gemspec.description = "Rich-i18n is a module of E9s (http://github.com/archan937/e9s) which enriches I18n, Formtastic, the String and Symbol classes. This simplifies internationalization of your Rails application making a Rails developers life much easier."
gemspec.email = "[email protected]"
gemspec.homepage = "http://codehero.es/rails_gems_plugins/rich_i18n"
gemspec.author = "Paul Engel"
gemspec.add_dependency "authlogic" , ">= 2.1.2"
gemspec.add_dependency "formtastic", ">= 1.1.0"
gemspec.add_dependency "hpricot"
gemspec.add_dependency "i18n" , ">= 0.3.7"
gemspec.add_dependency "jzip" , ">= 1.0.11"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
desc "Default: run unit tests."
task :default => :test
task :test do
Rake::Task["test:rails3"].execute
end
namespace :test do
desc "Test the rich_i18n plugin in Rails 2."
Rake::TestTask.new(:rails2) do |t|
t.libs << "lib"
t.libs << "test"
t.pattern = "test/rails-2/{,/*/**}/*_test.rb"
t.verbose = true
end
desc "Test the rich_i18n plugin in Rails 3."
Rake::TestTask.new(:rails3) do |t|
t.libs << "lib"
t.libs << "test"
t.pattern = "test/rails-3/{,/*/**}/*_test.rb"
t.verbose = true
end
end
desc "Generate documentation for the rich_i18n plugin."
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.title = "Rich-i18n"
rdoc.options << "--line-numbers" << "--inline-source"
rdoc.rdoc_files.include "README"
rdoc.rdoc_files.include "MIT-LICENSE"
rdoc.rdoc_files.include "lib/**/*.rb"
end