forked from grosser/gettext_i18n_rails
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
32 lines (28 loc) · 959 Bytes
/
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
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color']}
task :default do
# test with 2.x
puts `VERSION='~>2' rake spec RSPEC_COLOR=1`
# gem 'activerecord', '>=3' did not work for me, but just require gets the right version...
require 'active_record'
if ActiveRecord::VERSION::MAJOR >= 3
puts `rake spec RSPEC_COLOR=1`
else
'install rails 3 to get full test coverage...'
end
end
begin
require 'jeweler'
project_name = 'gettext_i18n_rails'
Jeweler::Tasks.new do |gem|
gem.name = project_name
gem.summary = "Simple FastGettext Rails integration."
gem.email = "[email protected]"
gem.homepage = "http://github.com/grosser/#{project_name}"
gem.authors = ["Michael Grosser"]
gem.add_dependency 'fast_gettext'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end