Sha256: bc926df3f49d25b1a58d6994da02e180bbcab1a012faa53b2e4e122e7eb8aada

Contents?: true

Size: 569 Bytes

Versions: 4

Compression:

Stored size: 569 Bytes

Contents

# encoding: utf-8
#
# This file is part of the clavem 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["CLAVEM_COVERAGE"] 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
      
      # TODO: Add exclusions here
      path !~ /^(bin|lib)/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clavem-1.0.3 spec/coverage_helper.rb
clavem-1.0.2 spec/coverage_helper.rb
clavem-1.0.1 spec/coverage_helper.rb
clavem-1.0.0 spec/coverage_helper.rb