From 55f3cb72c7378336451b27ff97541c1f67f03d43 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 24 Mar 2015 12:17:56 -0700 Subject: Remove ffi gem as a hard dependency Copies the algorithm out of FFI.map_library_name into the FFI_Yajl#map_library_name function so that when we're loading up the C extension we don't need to also slurp in the ffi gem just to run that. The ffi gem is moved to a hard dependency of only the jruby version of the gem, and its a development dependency for the other ruby VMs (so rake spec will work against the ffi library), but its an optional library to install to make the ffi library work on VMs that support C extensions (MRI, RBX). --- ffi-yajl-universal-java.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ffi-yajl-universal-java.gemspec') diff --git a/ffi-yajl-universal-java.gemspec b/ffi-yajl-universal-java.gemspec index 35a1ebb..e712372 100644 --- a/ffi-yajl-universal-java.gemspec +++ b/ffi-yajl-universal-java.gemspec @@ -6,5 +6,6 @@ gemspec.platform = "universal-java" # extensions so can we simplify the gemspecs now? #gemspec.extensions = %w{ ext/libyajl2/extconf.rb } -gemspec +gemspec.add_dependency "ffi", "~> 1.5" +gemspec -- cgit v1.2.1