Sha256: 4e0cd150c48c72111a0d03651a871b34a2b00e4576c61e7cf1bd67182958804e

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the has_translations plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for the has_translations plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'HasTranslations'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "has_translations"
    gemspec.summary = "Create translations for your ActiveRecord models."
    gemspec.description = "Create translations for your ActiveRecord models. Uses delegate pattern. Fully tested and used in a several production sites."
    gemspec.email = "dmitry.polushkin@gmail.com"
    gemspec.homepage = "http://github.com/dmitry/has_translations"
    gemspec.authors = ["Dmitry Polushkin"]
    gemspec.version = '0.3.0'
  end
rescue LoadError
  puts "Jeweler not available. Install it with: gem install jeweler"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
has_translations-0.3.1 Rakefile
has_translations-0.3.0 Rakefile