forked from ritchiey/rubysync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
executable file
·83 lines (75 loc) · 3 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env ruby
#
# Copyright (c) 2007 Ritchie Young. All rights reserved.
# Copyright (c) 2011 Nowhere Man.
#
# This file is part of RubySync.
#
# RubySync is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
#
# RubySync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with RubySync; if not, write to the
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/testtask'
require 'spec/rake/spectask'
require 'lib/ruby_sync.rb'
spec = Gem::Specification.new do |s|
s.name = 'rubysync'
s.version = RubySync::VERSION
s.has_rdoc = true
s.extra_rdoc_files = ['README.md', 'LICENSE.txt', 'MIT-LICENSE.txt', 'GPL-LICENSE.txt']
s.summary = 'Event driven identity synchronization engine'
s.description = "RubySync is a tool for synchronizing part or all of your directory,
database or application data with anything else. It's event driven
so it will happily sit there monitoring changes and passing them on.
Alternatively, you can run it in one-shot mode and simply sync A with B."
s.homepage = 'https://github.com/nowhereman/rubysync'
s.rubyforge_project = 'rubysync'
s.authors = [ 'Ritchie Young', 'Nowhere Man' ]
s.email = '[email protected]'
s.default_executable = %q{rubysync}
s.executables = ["rubysync"]
s.files = %w(LICENSE.txt MIT-LICENSE.txt GPL-LICENSE.txt README.md Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
s.require_path = "lib"
s.bindir = "bin"
# if RUBY_VERSION <= "1.8.6"
# s.add_dependency('my-ruby-net-ldap', '>=0.5.0') # https://github.com/nowhereman/ruby-net-ldap
# else
# s.add_dependency('net-ldap', '>=0.2') # https://github.com/halostatue/ruby-net-ldap
# end
s.add_dependency('activesupport', '~>2.3.0')
s.add_dependency('activerecord', '~>2.3.0')
s.add_dependency('simpleconsole', '>=0.1.1')
s.add_dependency('contacts', '>=1.0.7')
end
Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
end
Rake::RDocTask.new do |rdoc|
files =['README.md', 'LICENSE.txt', 'MIT-LICENSE.txt', 'GPL-LICENSE.txt', 'lib/**/*.rb']
rdoc.rdoc_files.add(files)
rdoc.main = "README.md" # page to start on
rdoc.title = "RubySync Docs"
rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
rdoc.options << '--line-numbers'
end
Rake::TestTask.new do |t|
t.test_files = FileList['test/**/*.rb']
end
Rake::TestTask.new do |t|
t.name ='test:units'
t.test_files = FileList['test/ts_rubysync.rb']
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*.rb']
end