forked from albertosaurus/tmx_data_update
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
31 lines (25 loc) · 869 Bytes
/
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
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'tmx_data_update'
gem.summary = 'Handle post-release data updates through migrations'
gem.description = "Provides a clean way to handle updates to seed data post-launch."
gem.homepage = 'http://www.tmxcredit.com'
gem.authors = ['TMX Credit', 'Arthur Shagall', 'Zach Belzer']
gem.files = Dir["{lib}/**/*"]
end
# Jeweler functions
def read_gem_version
open('VERSION', 'r'){ |f| f.read }.strip
end
def gem_version
@gem_version ||= read_gem_version
end
def gem_file_name
"tmx_data_update-#{gem_version}.gem"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |task|
task.rspec_opts = ['--color', '--backtrace', '--format nested']
end
task :default => :spec