Skip to content
This repository
Newer
Older
100755 36 lines (32 sloc) 1.422 kb
4341edd4 » makandra
2009-05-28 initial import
1 require 'rake'
2 require 'rake/rdoctask'
56f574d5 » Henning
2010-04-25 first aegis2 implementation, has_role specs
3 require 'spec/rake/spectask'
4341edd4 » makandra
2009-05-28 initial import
4
56f574d5 » Henning
2010-04-25 first aegis2 implementation, has_role specs
5 desc 'Default: Run Aegis specs'
6 task :default => :spec
4341edd4 » makandra
2009-05-28 initial import
7
56f574d5 » Henning
2010-04-25 first aegis2 implementation, has_role specs
8 desc "Run Aegis specs"
9 Spec::Rake::SpecTask.new() do |t|
10 t.spec_opts = ['--options', "\"spec/spec.opts\""]
11 t.spec_files = FileList['spec/**/*_spec.rb']
4341edd4 » makandra
2009-05-28 initial import
12 end
13
56f574d5 » Henning
2010-04-25 first aegis2 implementation, has_role specs
14 desc 'Generate documentation for the Aegis gem'
4341edd4 » makandra
2009-05-28 initial import
15 Rake::RDocTask.new(:rdoc) do |rdoc|
16 rdoc.rdoc_dir = 'rdoc'
17 rdoc.title = 'Aegis'
18 rdoc.options << '--line-numbers' << '--inline-source'
19 rdoc.rdoc_files.include('README')
20 rdoc.rdoc_files.include('lib/**/*.rb')
21 end
2c491ad7 » makandra
2009-05-29 created gemspec with jeweler
22
23 begin
24 require 'jeweler'
25 Jeweler::Tasks.new do |gemspec|
d25ce0d6 » Henning
2010-05-02 new gem version
26 gemspec.name = "aegis"
c5552cd1 » Henning
2010-04-25 some started RDOC. detailled API still todo.
27 gemspec.summary = "Complete authorization solution for Rails"
d25ce0d6 » Henning
2010-05-02 new gem version
28 gemspec.email = "henning.koch@makandra.de"
2c491ad7 » makandra
2009-05-29 created gemspec with jeweler
29 gemspec.homepage = "http://github.com/makandra/aegis"
c5552cd1 » Henning
2010-04-25 some started RDOC. detailled API still todo.
30 gemspec.description = "Aegis is an authorization solution for Ruby on Rails that supports roles and a RESTish, resource-style declaration of permission rules."
d25ce0d6 » Henning
2010-05-02 new gem version
31 gemspec.authors = ["Henning Koch", "Tobias Kraze"]
5b25463a » henning-koch
2010-09-03 application controllers must now include Aegis::Controller to be safe…
32 gemspec.post_install_message = "Upgrade notice:\nIf you are using Aegis' automatic controller integration, include Aegis::Controller in your ApplicationController\nAlso see http://wiki.github.com/makandra/aegis/controller-integration\n"
2c491ad7 » makandra
2009-05-29 created gemspec with jeweler
33 end
34 rescue LoadError
35 puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
36 end
37
Something went wrong with that request. Please try again.