From 37d12cfa333cb1cfc4edc6fcf47619fe74e46c37 Mon Sep 17 00:00:00 2001 From: Vasu1105 Date: Thu, 8 Sep 2022 13:40:48 +0530 Subject: [PATCH] It resolves the cannot load such file -- ./lib/recursive_open_struct/version issue Signed-off-by: Vasu1105 --- yajl-ruby.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yajl-ruby.gemspec b/yajl-ruby.gemspec index a349c80..619dd4c 100644 --- a/yajl-ruby.gemspec +++ b/yajl-ruby.gemspec @@ -1,4 +1,6 @@ -require './lib/yajl/version' +lib = File.expand_path('lib', __dir__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'yajl/version' Gem::Specification.new do |s| s.name = %q{yajl-ruby}