Sha256: 8960d2a1105eb34ee2a22bd3f8353c77fcffa66fc07177ecc1c200dd68df015c

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rcov/rcovtask'
require 'rake/rdoctask'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |g|
    g.name = 'has_many_translations'
    g.summary = %(Makes models' speak in tongues)
    g.description = %(Keep a DRY multilingual translation of your ActiveRecord models' textual attributes)
    g.email = 'adam@artforge.com'
    g.homepage = 'http://github.com/opengotham/has_many_translations'
    g.authors = ["opengotham","Artforge"]
    g.add_dependency 'activerecord', '>= 2.1.0'
    g.add_development_dependency 'shoulda'
    g.add_development_dependency 'mocha'
    g.add_runtime_dependency 'artforge-rtranslate', '>=1.3.4'
    g.add_runtime_dependency 'activequeue'
    g.add_runtime_dependency 'settingslogic'
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
end

Rake::TestTask.new do |t|
  t.libs = %w(test)
  t.pattern = 'test/**/*_test.rb'
end

Rcov::RcovTask.new do |t|
  t.libs = %w(test)
  t.pattern = 'test/**/*_test.rb'
end

task :test => :check_dependencies
task :default => :test

Rake::RDocTask.new do |r|
  version = File.exist?('VERSION') ? File.read('VERSION') : nil
  r.rdoc_dir = 'rdoc'
  r.title = ['has_many_translations', version].compact.join(' ')
  r.options << '--line-numbers' << '--inline-source'
  r.rdoc_files.include('README*')
  r.rdoc_files.include('lib/**/*.rb')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
has_many_translations-0.3.8 Rakefile
has_many_translations-0.3.7 Rakefile