yajl-ruby
yajl-ruby copied to clipboard
It resolves the cannot load such file -- ./lib/yajl-ruby/version issue
I am getting this error while adding gem to vendor set when it tries to load the gem specifications.
Invalid gemspec in [/Users/vjagdale/.inspec/gems/3.0.0/gems/yajl-ruby-1.4.3/yajl-ruby.gemspec]: cannot load such file -- ./lib/yajl/version
Adding the below lines to gemspec file resolves the issue.
ib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'yajl/version'
Any updates on this?
@brianmario Any updates on this?