forked from diogob/activerecord-postgres-earthdistance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (22 loc) · 681 Bytes
/
Rakefile
File metadata and controls
26 lines (22 loc) · 681 Bytes
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
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "bundler/gem_tasks"
require "rubygems"
require "rspec/core/rake_task"
require "rdoc/task"
task default: :spec
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
RSpec::Core::RakeTask.new(:spec)
RDoc::Task.new do |rdoc|
version = File.exist?("VERSION") ? File.read("VERSION") : ""
rdoc.rdoc_dir = "rdoc"
rdoc.title = "activerecord-postgres-hstore #{version}"
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("lib/**/*.rb")
end