-
Notifications
You must be signed in to change notification settings - Fork 152
/
Rakefile
38 lines (33 loc) · 1.08 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
require 'rubygems'
require 'bundler/setup'
task :all do
sh "AR='~>3.0.0' bundle update activerecord && bundle exec rake"
sh "AR='~>3.1.0.rc4' bundle update activerecord && bundle exec rake"
end
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
# no rspec available
end
# rake install -> install gem locally (for tests)
# rake release -> push to github and release to gemcutter
# rake version:bump:patch -> increase version and add a git-tag
begin
require 'jeweler'
rescue LoadError => e
$stderr.puts "Jeweler, or one of its dependencies, is not available:"
$stderr.puts "#{e.class}: #{e.message}"
$stderr.puts "Install it with: sudo gem install jeweler"
else
Jeweler::Tasks.new do |gem|
gem.name = 'standalone_migrations'
gem.summary = "A thin wrapper to use Rails Migrations in non Rails projects"
gem.email = "[email protected]"
gem.homepage = "http://github.com/thuss/standalone-migrations"
gem.authors = ["Todd Huss", "Michael Grosser"]
gem.license = "MIT"
end
Jeweler::GemcutterTasks.new
end
task default: "spec"