forked from cschiewek/devise_ldap_authenticatable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
52 lines (42 loc) · 1.45 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the devise_imapable plugin.'
Rake::TestTask.new(:test) do |t|
# t.libs << 'lib'
# t.libs << 'test'
# t.pattern = 'test/**/*_test.rb'
# t.verbose = true
puts <<-eof
*** NOTICE ***
All tests are done in the sample Rails app.
Please go to test/rails_app and run the tests there.
Make sure to bundle install and rake db:migrate
eof
end
desc 'Generate documentation for the devise_ldap_authenticatable plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'DeviseLDAPAuthenticatable'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "devise_ldap_authenticatable"
gemspec.summary = "LDAP authentication module for Devise"
gemspec.description = "LDAP authentication module for Devise"
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/cschiewek/devise_ldap_authenticatable"
gemspec.authors = ["Curtis Schiewek", "Daniel McNevin"]
gemspec.add_runtime_dependency "devise", "> 1.0.4"
gemspec.add_runtime_dependency "net-ldap", ">= 0.1.1"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end