public
Description: Ambition adapter for ActiveLdap
Clone URL: git://github.com/automatthew/ambitious_activeldap.git
100644 32 lines (25 sloc) 0.828 kb
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
require 'rake'
 
Version = '0.1.1'
 
begin
  require 'rubygems'
  gem 'echoe', '>=2.7'
  ENV['RUBY_FLAGS'] = ""
  require 'echoe'
 
  Echoe.new('ambitious-activeldap') do |p|
    p.dependencies << 'activeldap >=0.9'
    p.summary = "An ambitious adapter for ActiveLDAP"
    p.author = 'Matthew King'
    p.email = "automatthew@gmail.com"
 
    p.project = 'ambition'
    p.url = "http://ambition.rubyforge.org/"
    p.test_pattern = 'test/*_test.rb'
    p.version = Version
    p.dependencies << 'ambition >=0.5.0'
  end
 
rescue LoadError
  puts "Not doing any of the Echoe gemmy stuff, because you don't have the specified gem versions"
end
 
desc 'Install as a gem'
task :install_gem do
  puts `rake manifest package && gem install pkg/ambitious-activeldap-#{Version}.gem`
end