Sha256: 5aa14881adaea8a1916604cb2b7ededed49107f09e3185037dd27e43b712681f

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rdoc/task'

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

desc 'Test the role_based_authorization 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 role_based_authorization plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'RoleBasedAuthorization'
  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 |gemspec|
    gemspec.name = "role_based_authorization"
    gemspec.summary = "Basic authorization module for rails"
    gemspec.description = "Provides a simple DSL for specifying the authorization logic" +
                          " of your application. Install the gem, add a role attribute" +
                          " to your user model and your almost ready to go."
    gemspec.email = "boborbt@gmail.com"
    gemspec.homepage = "http://github.com/boborbt/role_based_authorization"
    gemspec.authors = ["Roberto Esposito"]
    gemspec.add_dependency('rails', '~> 3')
    gemspec.add_dependency('mocha', '~> 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
role_based_authorization-0.3.1 Rakefile
role_based_authorization-0.3.0 Rakefile