forked from HornsAndHooves/pg_saurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
executable file
·60 lines (52 loc) · 1.92 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
#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
begin
require 'rdoc/task'
rescue LoadError
require 'rdoc/rdoc'
require 'rake/rdoctask'
RDoc::Task = Rake::RDocTask
end
require './lib/pg_saurus/version'
begin
require "jeweler"
Jeweler::Tasks.new do |gem|
gem.name = "pg_saurus"
gem.summary = "ActiveRecord extensions for PostgreSQL."
gem.description =
"ActiveRecord extensions for PostgreSQL. Provides useful tools for schema, foreign_key, " \
"index, function, trigger, comment and extension manipulations in migrations."
gem.authors = ["Potapov Sergey", "Arthur Shagall", "Artem Ignatyev",
"Matt Dressel", "Bruce Burdick", "HornsAndHooves"]
gem.files = Dir["{app,config,db,lib}/**/*"] + Dir['Rakefie', 'README.markdown']
gem.executables = []
# Need to explicitly specify version here so gemspec:validate task doesn't whine.
gem.version = PgSaurus::VERSION
gem.homepage = "https://github.com/HornsAndHooves/pg_saurus"
gem.license = 'MIT'
end
rescue
puts "Jeweler or one of its dependencies is not installed."
end
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'PgSaurus'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end
task default: :spec
task 'spec' => ['db:drop', 'db:create', 'db:migrate', 'app:db:test:load']