summaryrefslogtreecommitdiff
path: root/lib/json/pure.rb
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-11-21 19:45:11 +0100
committerFlorian Frank <flori@ping.de>2011-11-21 19:45:11 +0100
commit1f2e458686fec42a4ee3cf3b7d5ab1b6d9ee4b93 (patch)
tree61870ec7c48cdbbcca94b226c150deb83cf627cb /lib/json/pure.rb
parent4ee26ac90981bbe5d7b5114ddd5036a5cea24251 (diff)
downloadjson-1f2e458686fec42a4ee3cf3b7d5ab1b6d9ee4b93.tar.gz
Add support for OpenStruct
Diffstat (limited to 'lib/json/pure.rb')
-rw-r--r--lib/json/pure.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/json/pure.rb b/lib/json/pure.rb
index dbac93c..b68668b 100644
--- a/lib/json/pure.rb
+++ b/lib/json/pure.rb
@@ -1,3 +1,9 @@
+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'