Sha256: ec153da5c843d4ee6bbe57d96058b7a0cdd4df8dfaef124106269c5234cf3d2c

Contents?: true

Size: 558 Bytes

Versions: 16

Compression:

Stored size: 558 Bytes

Contents

# encoding: utf-8
#
# This file is part of the lazier 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["LAZIER_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 !~ /^lib/
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lazier-2.6.3 spec/coverage_helper.rb
lazier-2.6.2 spec/coverage_helper.rb
lazier-2.6.1 spec/coverage_helper.rb
lazier-2.6.0 spec/coverage_helper.rb
lazier-2.5.3 spec/coverage_helper.rb
lazier-2.5.2 spec/coverage_helper.rb
lazier-2.5.1 spec/coverage_helper.rb
lazier-2.5.0 spec/coverage_helper.rb
lazier-2.4.0 spec/coverage_helper.rb
lazier-2.3.1 spec/coverage_helper.rb
lazier-2.3.0 spec/coverage_helper.rb
lazier-2.2.0 spec/coverage_helper.rb
lazier-2.1.1 spec/coverage_helper.rb
lazier-2.1.0 spec/coverage_helper.rb
lazier-2.0.0 spec/coverage_helper.rb
lazier-1.0.7 spec/coverage_helper.rb