-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
36 lines (32 loc) · 1.16 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'rake'
require 'spec/rake/spectask'
desc 'Default: run specs.'
task :default => :spec
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
namespace :spec do
desc 'Run the specs with Rcov output'
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_files = FileList['spec/**/*.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec/*,gems/*']
end
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "permissive"
gemspec.summary = "Permissive gives your ActiveRecord models granular permission support"
gemspec.description = %{Permissive combines a model-based permissions system with bitmasking to
create a flexible approach to maintaining permissions on your ActiveRecord
models. It supports an easy-to-use set of methods for accessing and
determining permissions, including some fun metaprogramming.}
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/flipsasser/permissive"
gemspec.authors = ["Flip Sasser", "Simon Parsons"]
end
rescue LoadError
end