forked from mkristian/dm-ldap-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (30 loc) · 970 Bytes
/
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
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require './lib/ldap/version.rb'
require 'spec'
require 'spec/rake/spectask'
require 'pathname'
Hoe.spec('dm-ldap-adapter') do |p|
p.version = "0.4.2"
p.description = "ldap adapter for datamapper which uses either net-ldap or ruby-ldap"
p.developer('mkristian', 'm.kristian@web.de')
p.url = "http://dm-ldap-adapter.rubyforge.org"
p.extra_deps = [['ruby-net-ldap', '=0.0.4'],['slf4r', '>=0'], ['dm-core', '~>1.0.0']]
p.remote_rdoc_dir = '' # Release to root
end
desc 'Install the package as a gem.'
task :install => [:clean, :package] do
gem = Dir['pkg/*.gem'].first
sh "gem install --local #{gem} --no-ri --no-rdoc"
end
desc 'Run specifications'
Spec::Rake::SpecTask.new(:spec) do |t|
if File.exists?('spec/spec.opts')
t.spec_opts << '--options' << 'spec/spec.opts'
end
t.spec_files = Pathname.glob('./spec/**/*_spec.rb')
end
#require 'yard'
#YARD::Rake::YardocTask.new
# vim: syntax=Ruby