-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathRakefile
44 lines (36 loc) · 1.61 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
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
require 'metric_fu'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "squealer"
gemspec.summary = "Export document-oriented database to RDBMS"
gemspec.description = "A Ruby DSL for exporting MongoDB to MySQL or PostgreSQL. You don't need to install both, just one. Use EXPORT_DBMS=[mysql|postgres] environment variable to specify the appropriate adapter."
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/delitescere/squealer/"
gemspec.authors = ["Josh Graham", "Durran Jordan", "Matt Yoho", "Bernerd Schaefer"]
gemspec.default_executable = "skewer"
gemspec.executables = ["skewer"]
# import DBMS
gemspec.add_dependency('mongo', '>= 0.18.3')
gemspec.add_dependency('bson_ext', '>= 1.0.1')
# export DBMS
gemspec.add_dependency('data_objects', '>= 0.10.2')
gemspec.add_dependency('do_mysql', '>= 0.10.2')
gemspec.add_dependency('do_postgres', '>= 0.10.2')
gemspec.add_development_dependency('rspec', '>= 1.3.0')
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
desc "Run all specs in spec directory (excluding plugin specs)"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
t.spec_files = FileList['spec/**/*/*_spec.rb']
end
task :default => [:spec]