Sha256: 9e8a057e7a36c5f103e83183b4b9787a3adb614a17ef3baa4a855145e2ab8d60

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require File.dirname(__FILE__) + '/lib/i18n-js/version'

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

desc 'Test the i18n-js 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 i18n-js plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title    = 'I18n for JavaScript'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

begin
  require 'jeweler'

  JEWEL = Jeweler::Tasks.new do |gem|
    gem.name = "i18n-js"
    gem.email = "fnando.vieira@gmail.com"
    gem.homepage = "http://github.com/fnando/i18n-js"
    gem.authors = ["Nando Vieira"]
    gem.version = SimplesIdeias::I18n::Version::STRING
    gem.summary = "It's a small library to provide the Rails I18n translations on the Javascript."
    gem.files =  FileList["README.rdoc", "init.rb", "install.rb", "{lib,test,source}/**/*", "Rakefile"]
  end

  Jeweler::GemcutterTasks.new
rescue LoadError => e
  puts "[JEWELER] You can't build a gem until you install jeweler with `gem install jeweler`"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
i18n-js-0.1.6 Rakefile
i18n-js-0.1.5 Rakefile