Sha256: 69b6ab7ce1a718438a460134c9c583eb956cd7b78120c5e37b11f6d822387484
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
require 'rubygems' require 'bundler/setup' task :default do sh "rspec spec" end 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 task :specs => ["specs:nodb"] namespace :specs do require 'rspec/core/rake_task' desc "only specs that don't use database connection" RSpec::Core::RakeTask.new "nodb" do |t| t.pattern = "spec/standalone_migrations_new/**/*_spec.rb" end desc "run all specs for travis" RSpec::Core::RakeTask.new "travis" do |t| t.pattern = "spec/**/*_spec.rb" t.rspec_opts = "--tag ~@travis_error" end desc "run all specs including those which uses database" task :all => [:default, :nodb] 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_new' gem.summary = "A thin wrapper to use Rails Migrations in non Rails projects" gem.email = "enotikalt@gmail.com" gem.homepage = "https://github.com/enotikalt/standalone-migrations" gem.authors = ["Serhii Hiba"] gem.license = "MIT" end Jeweler::GemcutterTasks.new end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
standalone_migrations_new-7.1.2 | Rakefile |
standalone_migrations_new-7.1.1 | Rakefile |
standalone_migrations_new-7.1.0 | Rakefile |