/
Rakefile
38 lines (32 loc) · 1.1 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
37
38
#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
$:.unshift File.expand_path('lib', File.dirname(__FILE__))
require 'simple_roles'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "simple_roles"
gem.homepage = "http://github.com/stanislaw/simple_roles"
gem.license = "MIT"
gem.summary = %Q{Rails Engine providing Role System for Rails apps}
gem.description = %Q{Simple Role System for Rails Apps}
gem.email = "s.pankevich@gmail.com"
gem.authors = ["stanislaw"]
gem.version = SimpleRoles::VERSION
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
if File.exists?(APP_RAKEFILE) && defined?(Rails)
load 'rails/tasks/engine.rake'
end
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end
task :default => :spec