summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2016-06-03 19:49:35 +0200
committerFlorian Frank <flori@ping.de>2016-06-03 20:07:58 +0200
commitfe01c3602a011525de627aaf880ea380bb7e6e7d (patch)
tree1e9f763640b70a4a1c2ae01ff6565f2b60f69eb0
parentcf466b8d4e4afe9af313e5c8bea4e97ef3170637 (diff)
downloadjson-fe01c3602a011525de627aaf880ea380bb7e6e7d.tar.gz
Move simplecov to test_helper.rb
-rw-r--r--lib/json/ext.rb6
-rw-r--r--lib/json/pure.rb10
2 files changed, 2 insertions, 14 deletions
diff --git a/lib/json/ext.rb b/lib/json/ext.rb
index c5f8131..7264a85 100644
--- a/lib/json/ext.rb
+++ b/lib/json/ext.rb
@@ -1,9 +1,3 @@
-if ENV['SIMPLECOV_COVERAGE'].to_i == 1
- require 'simplecov'
- SimpleCov.start do
- add_filter "/tests/"
- end
-end
require 'json/common'
module JSON
diff --git a/lib/json/pure.rb b/lib/json/pure.rb
index b68668b..53178b3 100644
--- a/lib/json/pure.rb
+++ b/lib/json/pure.rb
@@ -1,17 +1,11 @@
-if ENV['SIMPLECOV_COVERAGE'].to_i == 1
- require 'simplecov'
- SimpleCov.start do
- add_filter "/tests/"
- end
-end
require 'json/common'
-require 'json/pure/parser'
-require 'json/pure/generator'
module JSON
# This module holds all the modules/classes that implement JSON's
# functionality in pure ruby.
module Pure
+ require 'json/pure/parser'
+ require 'json/pure/generator'
$DEBUG and warn "Using Pure library for JSON."
JSON.parser = Parser
JSON.generator = Generator