$: << File.expand_path("../../lib", __FILE__)

ENV["EDITOR"] = nil

require 'coveralls'
Coveralls.wear! do
  add_filter 'spec/'
end

require 'bundler/setup'
Bundler.require(:default)

$: << File.expand_path("../../lib", __FILE__)

ENV["EDITOR"] = nil

# Ruby 2.4.0 and 2.4.1 has a bug with its Coverage module that causes segfaults.
# https://bugs.ruby-lang.org/issues/13305
# 2.4.2 should include this patch.
unless RUBY_VERSION == '2.4.0' || RUBY_VERSION == '2.4.1'
  require 'coveralls'
  Coveralls.wear! do
    add_filter 'spec/'
  end
end

require 'bundler/setup'
Bundler.require(:default)

Disable coverage reporting with ruby 2.4.0/2.4.1
Disable coverage reporting with ruby 2.4.0/2.4.1
