Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (41 sloc) 1.574 kb
3ffc052 initial import
PerfectLine authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
ea7bd57 gem support
Tanel Suurhans authored
4 require 'rcov/rcovtask'
3ffc052 initial import
PerfectLine authored
5
6 desc 'Default: run unit tests.'
7 task :default => :test
8
ea7bd57 gem support
Tanel Suurhans authored
9 begin
10 require 'jeweler'
11 Jeweler::Tasks.new do |jewel|
4ffada9 - cleaned up gemspec
Tanel Suurhans authored
12 jewel.name = 'locale_routing'
13 jewel.summary = 'LocaleRouting makes parsing I18N locale from an url parameters/hostname seamless.'
14 jewel.email = ['tanel.suurhans@perfectline.ee', "tarmo.lehtpuu@perfectline.ee"]
15 jewel.homepage = 'http://github.com/perfectline/locale_routing/tree/master'
16 jewel.description = 'A library for configuring/parsin locales from url params or hostname for I18n.'
17 jewel.files = FileList["lib/**/*.rb", "*.rb", "MIT-LICENCE", "README.markdown"]
18 jewel.authors = ["Tanel Suurhans", "Tarmo Lehtpuu"]
ea7bd57 gem support
Tanel Suurhans authored
19 end
20 rescue LoadError
21 puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
22 end
23
3ffc052 initial import
PerfectLine authored
24 desc 'Test the LocaleRouting plugin.'
25 Rake::TestTask.new(:test) do |t|
26 t.libs << 'lib'
27 t.libs << 'test'
28 t.pattern = 'test/**/*_test.rb'
29 t.verbose = true
30 end
31
32 desc 'Generate documentation for the LocaleRouting plugin.'
33 Rake::RDocTask.new(:rdoc) do |rdoc|
34 rdoc.rdoc_dir = 'rdoc'
35 rdoc.title = 'LocaleRouting'
36 rdoc.options << '--line-numbers' << '--inline-source'
ee7cf44 - and more readme
PerfectLine authored
37 rdoc.rdoc_files.include('README.markdown')
3ffc052 initial import
PerfectLine authored
38 rdoc.rdoc_files.include('lib/**/*.rb')
39 end
ea7bd57 gem support
Tanel Suurhans authored
40
41 desc 'Generate code coverage report'
42 Rcov::RcovTask.new(:rcov) do |rcov|
43 rcov.libs << 'test'
44 rcov.test_files = FileList['test/*_test.rb']
45 rcov.verbose = true
46 end
Something went wrong with that request. Please try again.