Sha256: 9d4f63de07d428d64e70111a633288e2056df2c10eb31d0f45935cedfee7f805

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

# encoding: utf-8
#
# This file is part of the devdnsd 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["DEVDNSD_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\/devdnsd\/patches/ || path !~ /^(bin|lib)/
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devdnsd-1.7.0 spec/coverage_helper.rb
devdnsd-1.6.0 spec/coverage_helper.rb
devdnsd-1.5.2 spec/coverage_helper.rb
devdnsd-1.5.1 spec/coverage_helper.rb
devdnsd-1.5.0 spec/coverage_helper.rb