Sha256: 79f56e0b07eb17bf05f86f5c8a3fc18ee3fe8093ab3f9d9f18bbdd8bc29ad51d

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

require 'rubygems'
require File.join(File.dirname(__FILE__), 'lib', 'acl9', 'version')
require 'rake'
require 'spec/rake/spectask'

desc 'Default: run specs.'
task :default => :spec

begin
  require 'echoe'

  Echoe.new 'acl9' do |p|
    p.version = Acl9::Version::STRING
    p.author = "Oleg Dashevskii"
    p.email  = 'olegdashevskii@gmail.com'
    p.project = 'acl9'
    p.summary = "Yet another role-based authorization system for Rails with a nice DSL for access control lists."
    p.url = "http://github.com/be9/acl9"
    p.ignore_pattern = ["spec/db/*.sqlite3", "spec/debug.log"]
    p.development_dependencies = ["rspec >=1.1.11", "rspec-rails >=1.1.11"]
  end
rescue LoadError => boom
  puts "You are missing a dependency required for meta-operations on this gem."
  puts "#{boom.to_s.capitalize}."
end

desc 'Run the specs'
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
  t.spec_files = FileList['spec/**/*_spec.rb']
end

desc 'Regenerate the .gemspec'
task :gemspec => :package do
  gemspec = Dir["pkg/**/*.gemspec"].first
  FileUtils.cp gemspec, "."
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
be9-acl9-0.9.1 Rakefile
be9-acl9-0.9.2 Rakefile