Skip to content
Newer
Older
100644 43 lines (37 sloc) 1.01 KB
e3662aa @binarylogic Release v2.1.0 and switch to using jeweler instead of Hoe
binarylogic authored
1 require 'rubygems'
2 require 'rake'
ac32c48 @binarylogic Rails 3 fixes
binarylogic authored
3 require 'bundler'
4
5 Bundler.setup
605162d @binarylogic Release v2.0 RC1
binarylogic authored
6
e3662aa @binarylogic Release v2.1.0 and switch to using jeweler instead of Hoe
binarylogic authored
7 begin
8 require 'jeweler'
9 Jeweler::Tasks.new do |gem|
10 gem.name = "authlogic"
11 gem.summary = "A clean, simple, and unobtrusive ruby authentication solution."
12 gem.email = "bjohnson@binarylogic.com"
13 gem.homepage = "http://github.com/binarylogic/authlogic"
14 gem.authors = ["Ben Johnson of Binary Logic"]
ac32c48 @binarylogic Rails 3 fixes
binarylogic authored
15 gem.add_bundler_dependencies
e3662aa @binarylogic Release v2.1.0 and switch to using jeweler instead of Hoe
binarylogic authored
16 end
8fc0870 @binarylogic fix deprecation notices
binarylogic authored
17 Jeweler::GemcutterTasks.new
e3662aa @binarylogic Release v2.1.0 and switch to using jeweler instead of Hoe
binarylogic authored
18 rescue LoadError
19 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
20 end
605162d @binarylogic Release v2.0 RC1
binarylogic authored
21
e3662aa @binarylogic Release v2.1.0 and switch to using jeweler instead of Hoe
binarylogic authored
22 require 'rake/testtask'
23 Rake::TestTask.new(:test) do |test|
f8cd29c @m4n Change gemspec dependency from activesupport to activerecord (which d…
m4n authored
24 test.libs << 'test'
e3662aa @binarylogic Release v2.1.0 and switch to using jeweler instead of Hoe
binarylogic authored
25 test.pattern = 'test/**/*_test.rb'
26 test.verbose = true
27 end
28
29 begin
30 require 'rcov/rcovtask'
31 Rcov::RcovTask.new do |test|
32 test.libs << 'test'
33 test.pattern = 'test/**/*_test.rb'
34 test.verbose = true
35 end
36 rescue LoadError
37 task :rcov do
38 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
39 end
40 end
41
faa063f @binarylogic Fix compatibility issue with rails >3.0 wanting the model_name class …
binarylogic authored
42 task :default => :test
Something went wrong with that request. Please try again.