Sha256: 364d90c2d3435e69b4f34af49e75436063205359569300a406d6a7c45cf189a7

Contents?: true

Size: 559 Bytes

Versions: 5

Compression:

Stored size: 559 Bytes

Contents

# encoding: utf-8
#
# This file is part of the bovem gem. Copyright (C) 2013 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

5 entries across 5 versions & 1 rubygems

Version Path
bovem-2.1.0 spec/coverage_helper.rb
bovem-2.0.3 spec/coverage_helper.rb
bovem-2.0.2 spec/coverage_helper.rb
bovem-2.0.1 spec/coverage_helper.rb
bovem-2.0.0 spec/coverage_helper.rb