Sha256: dfccfde690ba601008e55ccba0e398528c46f2481e8a5141b4b972c57b5fa840
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 Bytes
Contents
require 'rubygems' require 'ffi_yajl/encoder' require 'ffi_yajl/parser' require 'dl' require 'ffi' require 'libyajl2' module FFI_Yajl class Parser # FIXME: DRY with ffi_yajl/ffi.rb libname = ::FFI.map_library_name("yajl") libpath = File.expand_path(File.join(Libyajl2.opt_path, libname)) ::DL.dlopen(libpath) require 'ffi_yajl/ext/parser' include FFI_Yajl::Ext::Parser end class Encoder # FIXME: DRY with ffi_yajl/ffi.rb libname = ::FFI.map_library_name("yajl") libpath = File.expand_path(File.join(Libyajl2.opt_path, libname)) ::DL.dlopen(libpath) require 'ffi_yajl/ext/encoder' include FFI_Yajl::Ext::Encoder end end
Version data entries
6 entries across 6 versions & 1 rubygems