#!/usr/bin/env ruby
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
opts = %w[ --simple-prompt -rirb/completion ]
if ARGV.include? '-seq'
  opts << '-rwill_paginate/sequel' << '-rfinders/sequel_test_connector'
else
  opts << '-rconsole_fixtures'
end

exec 'bundle', 'exec', irb, '-Ilib:spec', *opts
