Sha256: de65dd1f208b2a03329f015c9339364d7bc475015fdba0ad9f66d007ad36ad91

Contents?: true

Size: 559 Bytes

Versions: 11

Compression:

Stored size: 559 Bytes

Contents

# encoding: utf-8
#
# This file is part of the bovem gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

require "pathname"

if ENV["BOVEM_COVERAGE"] == "TRUE" && RUBY_VERSION >= "1.9" then
  require "simplecov"

  root = Pathname.new(File.dirname(__FILE__)) + ".."

  SimpleCov.start do
    add_filter do |src_file|
      path = Pathname.new(src_file.filename).relative_path_from(root).to_s
      path !~ /^(bin|lib)/
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bovem-1.2.6 spec/coverage_helper.rb
bovem-1.2.5 spec/coverage_helper.rb
bovem-1.2.4 spec/coverage_helper.rb
bovem-1.2.3 spec/coverage_helper.rb
bovem-1.2.2 spec/coverage_helper.rb
bovem-1.2.1 spec/coverage_helper.rb
bovem-1.2.0 spec/coverage_helper.rb
bovem-1.1.1 spec/coverage_helper.rb
bovem-1.1.0 spec/coverage_helper.rb
bovem-1.0.1 spec/coverage_helper.rb
bovem-1.0.0 spec/coverage_helper.rb