Sha256: a6641e3cd0319ff4e1ad8c4a2dbddb5f6507030ad843a1482a8e71294d6c670c

Contents?: true

Size: 561 Bytes

Versions: 9

Compression:

Stored size: 561 Bytes

Contents

# encoding: utf-8
#
# This file is part of the akaer 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["AKAER_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

9 entries across 9 versions & 1 rubygems

Version Path
akaer-1.5.8 spec/coverage_helper.rb
akaer-1.5.7 spec/coverage_helper.rb
akaer-1.5.6 spec/coverage_helper.rb
akaer-1.5.5 spec/coverage_helper.rb
akaer-1.5.4 spec/coverage_helper.rb
akaer-1.5.3 spec/coverage_helper.rb
akaer-1.5.2 spec/coverage_helper.rb
akaer-1.5.1 spec/coverage_helper.rb
akaer-1.5.0 spec/coverage_helper.rb