-
Notifications
You must be signed in to change notification settings - Fork 8
/
Rakefile
56 lines (46 loc) · 1.77 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
require 'rake'
require 'date'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
task :default => :test
require 'yard'
YARD::Rake::YardocTask.new do |yard|
yard.files = Dir["lib/**/*.rb"].reject{|file| %r{eventmachine|synchrony}.match(file)}
end
require_relative 'lib/swift/version'
$gemspec = Gem::Specification.new do |s|
s.name = 'swift'
s.version = Swift::VERSION
s.authors = ['Shane Hanna', %q{Bharanee 'Barney' Rathna}]
s.date = Date.today
s.description = 'A rational rudimentary database abstraction.'
s.summary = 'A rational rudimentary database abstraction.'
s.email = ['[email protected]', '[email protected]']
s.licenses = %w{MIT}
s.homepage = 'http://github.com/shanna/swift'
s.require_paths = %w{lib}
s.required_ruby_version = '>= 1.9.2'
s.files = `git ls-files`.split("\n").reject{|f| f =~ %r{\.gitignore|examples|benchmarks|memory|gems/.*|Gemfile}}
s.test_files = `git ls-files -- test/*`.split("\n")
s.extra_rdoc_files = %w{LICENSE README.md}
# testing
s.add_development_dependency 'minitest', '>= 1.7.0'
# swift drivers
s.add_development_dependency 'swift-db-sqlite3'
s.add_development_dependency 'swift-db-postgres'
s.add_development_dependency 'swift-db-mysql'
# async
s.add_development_dependency 'eventmachine'
s.add_development_dependency 'em-synchrony'
# rake
s.add_development_dependency 'rake'
s.add_development_dependency 'yard'
end
desc 'Generate gemspec'
task :gemspec do
File.open('%s.gemspec' % $gemspec.name, 'w') {|fh| fh.write($gemspec.to_ruby)}
end