From 86a9bbb107ef5f4c8c9f460d41fb1b8962720503 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 15 Jul 2015 10:55:17 -0700 Subject: fix uninitialized constant errors c extension needs stringio and date required first in order to find those constants. --- lib/ffi_yajl/ext.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ffi_yajl/ext.rb b/lib/ffi_yajl/ext.rb index 5cd087d..ed17e59 100644 --- a/lib/ffi_yajl/ext.rb +++ b/lib/ffi_yajl/ext.rb @@ -27,6 +27,10 @@ require 'ffi_yajl/parser' require 'ffi_yajl/ext/dlopen' require 'ffi_yajl/map_library_name' +# needed so the encoder c-code can find these symbols +require 'stringio' +require 'date' + module FFI_Yajl extend FFI_Yajl::MapLibraryName extend FFI_Yajl::Ext::Dlopen -- cgit v1.2.1