Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (46 sloc) 1.633 kb
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
1 # encoding: UTF-8
2
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
3 require 'rake'
4 require 'rake/testtask'
5 require 'rake/rdoctask'
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
6 require File.join(File.dirname(__FILE__), 'lib', 'devise', 'version')
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
7
35a8d13 @josevalim Tests passing for ActiveRecord and MongoMapper.
josevalim authored
8 desc 'Default: run tests for all ORMs.'
9 task :default => :pre_commit
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
10
35a8d13 @josevalim Tests passing for ActiveRecord and MongoMapper.
josevalim authored
11 desc 'Run Devise tests for all ORMs.'
12 task :pre_commit do
13 Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
14 orm = File.basename(file).split(".").first
15 system "rake test DEVISE_ORM=#{orm}"
16 end
17 end
18
19 desc 'Run Devise unit tests.'
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
20 Rake::TestTask.new(:test) do |t|
21 t.libs << 'lib'
22 t.libs << 'test'
23 t.pattern = 'test/**/*_test.rb'
24 t.verbose = true
25 end
26
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
27 desc 'Generate documentation for Devise.'
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
28 Rake::RDocTask.new(:rdoc) do |rdoc|
29 rdoc.rdoc_dir = 'rdoc'
30 rdoc.title = 'Devise'
31 rdoc.options << '--line-numbers' << '--inline-source'
4fd5d09 @carlosantoniodasilva Adding README to rdoc and rdoc dir to gitignore
carlosantoniodasilva authored
32 rdoc.rdoc_files.include('README.rdoc')
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
33 rdoc.rdoc_files.include('lib/**/*.rb')
34 end
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
35
36 begin
37 require 'jeweler'
38 Jeweler::Tasks.new do |s|
39 s.name = "devise"
2250ea5 @josevalim Release Devise 0.1.1.
josevalim authored
40 s.version = Devise::VERSION
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
41 s.summary = "Flexible authentication solution for Rails with Warden"
42 s.email = "contact@plataformatec.com.br"
43 s.homepage = "http://github.com/plataformatec/devise"
44 s.description = "Flexible authentication solution for Rails with Warden"
45 s.authors = ['José Valim', 'Carlos Antônio']
a2717bd @carlosantoniodasilva Adding missing generators to devise gem
carlosantoniodasilva authored
46 s.files = FileList["[A-Z]*", "{app,config,generators,lib}/**/*", "init.rb"]
153cc75 @josevalim Update Warden dependency.
josevalim authored
47 s.add_dependency("warden", "~> 0.6.4")
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
48 end
49
50 Jeweler::GemcutterTasks.new
51 rescue LoadError
52 puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
53 end
Something went wrong with that request. Please try again.