Sha256: e40791e8d30cc670f1eea35925c4cc5a3d8811efae25cdcdf2eed600b354ef2a

Contents?: true

Size: 524 Bytes

Versions: 25

Compression:

Stored size: 524 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 --seed #{random_seed}"
end

def random_seed
  seed = rand(99999)
  puts "Seed: #{seed}"
  seed
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
dissociated_introspection-0.13.0 Rakefile
dissociated_introspection-0.12.0 Rakefile
dissociated_introspection-0.11.0 Rakefile
dissociated_introspection-0.9.1 Rakefile
dissociated_introspection-0.9.0 Rakefile
dissociated_introspection-0.8.4 Rakefile
dissociated_introspection-0.8.3 Rakefile
dissociated_introspection-0.8.2 Rakefile
dissociated_introspection-0.8.1 Rakefile
dissociated_introspection-0.8.0 Rakefile
dissociated_introspection-0.7.1 Rakefile
dissociated_introspection-0.7.0 Rakefile
dissociated_introspection-0.6.0 Rakefile
dissociated_introspection-0.5.0 Rakefile
dissociated_introspection-0.4.1 Rakefile
dissociated_introspection-0.4.0 Rakefile
dissociated_introspection-0.3.1 Rakefile
dissociated_introspection-0.2.0 Rakefile
dissociated_introspection-0.1.6 Rakefile
dissociated_introspection-0.1.5 Rakefile