forked from lukefx/rack-ntlm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
49 lines (40 loc) · 1.59 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rack-ntlm"
gem.summary = %Q{Rack middleware for transparent authentication with NTLM}
gem.description = %Q{Rack middleware for transparent authentication with NTLM. This is a fork from lukefx/rack-ntlm on Github. This makes the Rack middleware a gem and uses net/ldap to search the user against an ActiveDirectory server. This is work in progress, so contributions are welcome.}
gem.email = "[email protected]"
gem.homepage = "http://github.com/dtsato/rack-ntlm"
gem.authors = ["Danilo Sato"]
gem.has_rdoc = true
gem.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"]
gem.extra_rdoc_files = ["README.rdoc"]
gem.test_files = Dir['test/**/*'] + Dir['test/*']
gem.add_dependency('rubyntlm', '>= 0.1.1')
gem.add_dependency('net-ldap', '>= 0.0.5')
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the rack_ntlm plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the rack_ntlm plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Rack-ntlm'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end