Sha256: b6cf783a79fc14f4a0699a4a935887ac05f8cd43f75fbe5feb04764c8735ea16

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

require "bundler/gem_tasks"

task :default => 'specs'

task :specs do
  if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && RUBY_VERSION >= "1.9"
    module Kernel
      alias :__at_exit :at_exit

      def at_exit(&block)
        __at_exit do
          exit_status = $!.status if $!.is_a?(SystemExit)
          block.call
          exit exit_status if exit_status
        end
      end
    end
  end
  sh "bundle exec rspec"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_record_schema_scrapper-0.1.2 Rakefile
active_record_schema_scrapper-0.1.1 Rakefile
active_record_schema_scrapper-0.1.0 Rakefile