summaryrefslogtreecommitdiff
path: root/lib/chef/encrypted_data_bag_item/encryptor.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-13 00:59:34 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-06-23 16:41:05 -0700
commit6a9ed8cc9a4df568ee0df35964f87007bfc730df (patch)
tree798f48e43d2ddbf9975eb4e60ce972b8e39dc71d /lib/chef/encrypted_data_bag_item/encryptor.rb
parentd111e820f1f3dba3e759f6f06bbeac30f8aa1389 (diff)
downloadchef-6a9ed8cc9a4df568ee0df35964f87007bfc730df.tar.gz
replace yajl and json gem with ffi-yajl
Diffstat (limited to 'lib/chef/encrypted_data_bag_item/encryptor.rb')
-rw-r--r--lib/chef/encrypted_data_bag_item/encryptor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/encrypted_data_bag_item/encryptor.rb b/lib/chef/encrypted_data_bag_item/encryptor.rb
index f99c913c62..9686e84b34 100644
--- a/lib/chef/encrypted_data_bag_item/encryptor.rb
+++ b/lib/chef/encrypted_data_bag_item/encryptor.rb
@@ -19,7 +19,7 @@
require 'base64'
require 'digest/sha2'
require 'openssl'
-require 'yajl'
+require 'ffi_yajl'
require 'chef/encrypted_data_bag_item'
require 'chef/encrypted_data_bag_item/unsupported_encrypted_data_bag_item_format'
@@ -111,7 +111,7 @@ class Chef::EncryptedDataBagItem
# Strings) that do not produce valid JSON when serialized without the
# wrapper.
def serialized_data
- Yajl::Encoder.encode(:json_wrapper => plaintext_data)
+ FFI_Yajl::Encoder.encode(:json_wrapper => plaintext_data)
end
end