Sha256: 12d5a0dd001cf8da221deebaca03c9443f9b68ca1734551304be6d30a0df50db

Contents?: true

Size: 982 Bytes

Versions: 50

Compression:

Stored size: 982 Bytes

Contents

require File.expand_path('on_what', File.dirname(File.dirname(__FILE__)))

begin
  require 'simplecov'
  require 'coveralls'

  # On Ruby 1.9+ use SimpleCov and publish to Coveralls.io
  if !on_1_8?
    SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
      SimpleCov::Formatter::HTMLFormatter,
      Coveralls::SimpleCov::Formatter
    ]
    SimpleCov.start do
      add_filter '/spec/'    # exclude test code
      add_filter '/vendor/'  # exclude gems which are vendored on Travis CI
    end

    # Remove Docile, which was required by SimpleCov, to require again later
    Object.send(:remove_const, :Docile)
    $LOADED_FEATURES.reject! { |f| f =~ /\/docile\// }
  end
rescue LoadError
  warn 'warning: simplecov/coveralls gems not found; skipping coverage'
end

lib_dir = File.join(File.dirname(File.dirname(__FILE__)), 'lib')
$LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include? lib_dir

# Require Docile again, now with coverage enabled on 1.9+
require 'docile'

Version data entries

50 entries across 47 versions & 14 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/spec/spec_helper.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/spec/spec_helper.rb
tdiary-5.0.9 vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb
tdiary-5.0.7 vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/spec/spec_helper.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/spec/spec_helper.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/spec/spec_helper.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/spec/spec_helper.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/spec/spec_helper.rb
tdiary-5.0.6 vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/docile-1.1.5/spec/spec_helper.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/spec/spec_helper.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/spec/spec_helper.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/spec/spec_helper.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb
tdiary-5.0.5 vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/docile-1.1.5/spec/spec_helper.rb
tdiary-5.0.4 vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb
abaci-0.3.0 vendor/bundle/gems/docile-1.1.5/spec/spec_helper.rb