diff --git a/lib/raven/client.rb b/lib/raven/client.rb index 9ca40125b..f5eaedda4 100644 --- a/lib/raven/client.rb +++ b/lib/raven/client.rb @@ -1,6 +1,6 @@ -require 'multi_json' -require 'zlib' require 'base64' +require 'json' +require 'zlib' require 'raven/version' require 'raven/transports/http' @@ -53,13 +53,7 @@ def encode(event) processor.process(memo) end - new_adapter = configuration.json_adapter - begin - old_adapter, MultiJson.adapter = MultiJson.adapter, new_adapter if new_adapter - encoded = MultiJson.encode(hash) - ensure - MultiJson.adapter = old_adapter if new_adapter - end + encoded = JSON.dump(hash) case self.configuration.encoding when 'gzip' diff --git a/sentry-raven.gemspec b/sentry-raven.gemspec index 4c56746e0..f40654aab 100644 --- a/sentry-raven.gemspec +++ b/sentry-raven.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |gem| gem.add_dependency "faraday", ">= 0.7.6" gem.add_dependency "uuidtools" - gem.add_dependency "multi_json", "~> 1.0" + gem.add_dependency "json", ">= 1.6.2" gem.add_dependency "hashie", ">= 1.1.0" gem.add_development_dependency "rake"