Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (36 sloc) 1.269 kB
83b1553 @fnando Initial commit.
fnando authored
1 require 'rake'
2 require 'rake/testtask'
b145bf1 @fnando Distribute I18n-js as Rails 3 gem.
fnando authored
3 require 'rake/rdoctask'
b782da2 @fnando Bump up version
fnando authored
4 require File.dirname(__FILE__) + '/lib/i18n-js/version'
83b1553 @fnando Initial commit.
fnando authored
5
6 desc 'Default: run unit tests.'
7 task :default => :test
8
34a24f8 @ZenCocoon Project name typo
ZenCocoon authored
9 desc 'Test the i18n-js plugin.'
83b1553 @fnando Initial commit.
fnando authored
10 Rake::TestTask.new(:test) do |t|
11 t.libs << 'lib'
12 t.libs << 'test'
13 t.pattern = 'test/**/*_test.rb'
14 t.verbose = true
15 end
16
34a24f8 @ZenCocoon Project name typo
ZenCocoon authored
17 desc 'Generate documentation for the i18n-js plugin.'
83b1553 @fnando Initial commit.
fnando authored
18 Rake::RDocTask.new(:rdoc) do |rdoc|
244305f @fnando Cleaning up the code.
fnando authored
19 rdoc.rdoc_dir = 'doc'
20 rdoc.title = 'I18n for JavaScript'
83b1553 @fnando Initial commit.
fnando authored
21 rdoc.options << '--line-numbers' << '--inline-source'
244305f @fnando Cleaning up the code.
fnando authored
22 rdoc.rdoc_files.include('README.rdoc')
83b1553 @fnando Initial commit.
fnando authored
23 rdoc.rdoc_files.include('lib/**/*.rb')
24 end
b145bf1 @fnando Distribute I18n-js as Rails 3 gem.
fnando authored
25
26 begin
27 require 'jeweler'
28
29 JEWEL = Jeweler::Tasks.new do |gem|
30 gem.name = "i18n-js"
31 gem.email = "fnando.vieira@gmail.com"
32 gem.homepage = "http://github.com/fnando/i18n-js"
33 gem.authors = ["Nando Vieira"]
34 gem.version = SimplesIdeias::I18n::Version::STRING
35 gem.summary = "It's a small library to provide the Rails I18n translations on the Javascript."
36 gem.files = FileList["README.rdoc", "init.rb", "install.rb", "{lib,test,source}/**/*", "Rakefile"]
37 end
38
39 Jeweler::GemcutterTasks.new
40 rescue LoadError => e
41 puts "[JEWELER] You can't build a gem until you install jeweler with `gem install jeweler`"
42 end
Something went wrong with that request. Please try again.