Sha256: 33b9ebd45c65c801f2a31e15bfd4c3c70c905f2dee51f59f50a651f1a557e221

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

require 'rubygems'
require 'rake'
require 'rcov'
require 'spec/rake/spectask'

require 'lib/lockdown.rb'
task :default => 'rcov'

desc "Flog your code for Justice!"
task :flog do
    sh('flog lib/**/*.rb')
end

desc "Run all specs and rcov in a non-sucky way"
Spec::Rake::SpecTask.new(:rcov) do |t|
  t.spec_opts = IO.readlines("spec/spec.opts").map {|l| l.chomp.split " "}.flatten
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.rcov = true
  t.rcov_opts = IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "revo-lockdown"
    gemspec.version = Lockdown.version
    gemspec.rubyforge_project = "lockdown"
    gemspec.summary = "Authorization system for Rails 2.x"
    gemspec.description = "Restrict access to your controller actions.  Supports basic model level restrictions as well"
    gemspec.email = "andy@stonean.com"
    gemspec.homepage = "http://stonean.com/wiki/lockdown"
    gemspec.authors = ["Andrew Stone", "Revo Pty. Ltd."]
    gemspec.add_development_dependency('rspec')
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
revo-lockdown-1.7.1 Rakefile
revo-lockdown-1.7.0 Rakefile
revo-lockdown-1.6.2.2 Rakefile
revo-lockdown-1.6.2.1 Rakefile
revo-lockdown-1.6.2 Rakefile