Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.4.2
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (37 sloc) 1.161 kb
# encoding: UTF-8
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test HasScope'
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 HasScope'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'HasScope'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "has_scope"
s.version = "0.4.2"
s.summary = "Maps controller filters to your resource scopes"
s.email = "contact@plataformatec.com.br"
s.homepage = "http://github.com/plataformatec/has_scope"
s.description = "Maps controller filters to your resource scopes"
s.authors = ['José Valim']
s.files = FileList["[A-Z]*", "lib/**/*", "init.rb"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end
Jump to Line
Something went wrong with that request. Please try again.