summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rest_base.rb
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-09-26 16:18:48 -0700
committertyler-ball <tyleraball@gmail.com>2014-09-26 16:18:48 -0700
commite3f2e8471cd97340c28b7541ffb0fa7143a33ca4 (patch)
tree0b6451871dc704ab7988c19ed5f53e5318a7bd5f /lib/chef_zero/rest_base.rb
parent15f4a3e533eefa59412e81c0252af3166541ede0 (diff)
downloadchef-zero-e3f2e8471cd97340c28b7541ffb0fa7143a33ca4.tar.gz
Removing 'json' gem dependency, replacing with 'ffi-yajl'tball/chef-zero-yajl-replace-json
Diffstat (limited to 'lib/chef_zero/rest_base.rb')
-rw-r--r--lib/chef_zero/rest_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/rest_base.rb b/lib/chef_zero/rest_base.rb
index d85f489..3fa017a 100644
--- a/lib/chef_zero/rest_base.rb
+++ b/lib/chef_zero/rest_base.rb
@@ -178,7 +178,7 @@ module ChefZero
end
def json_response(response_code, json)
- already_json_response(response_code, JSON.pretty_generate(json))
+ already_json_response(response_code, FFI_Yajl::Encoder.encode(json, :pretty => true))
end
def already_json_response(response_code, json_text)