diff options
author | Tim Smith <tsmith@chef.io> | 2020-08-17 10:51:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 10:51:14 -0700 |
commit | 160f13b5bcc7d83b0894fdbd1a72930d2a0c984b (patch) | |
tree | 37bd9071a5e3e05aae8e2eb9922e0d1eea1b3a7f /lib/ffi_yajl/ext.rb | |
parent | a2d57217674d80308a4efb934e08762c4c253ad9 (diff) | |
parent | 9c20d1aaa25fc4058c337f5e8ceb3755839f49b2 (diff) | |
download | ffi-yajl-160f13b5bcc7d83b0894fdbd1a72930d2a0c984b.tar.gz |
Merge pull request #109 from chef/requires
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/ffi_yajl/ext.rb')
-rw-r--r-- | lib/ffi_yajl/ext.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ffi_yajl/ext.rb b/lib/ffi_yajl/ext.rb index e6a7e6d..93d784a 100644 --- a/lib/ffi_yajl/ext.rb +++ b/lib/ffi_yajl/ext.rb @@ -20,7 +20,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -require "rubygems" +require "rubygems" unless defined?(Gem) require_relative "encoder" require_relative "parser" @@ -28,7 +28,7 @@ require "ffi_yajl/ext/dlopen" require_relative "map_library_name" # needed so the encoder c-code can find these symbols -require "stringio" +require "stringio" unless defined?(StringIO) require "date" module FFI_Yajl |