Skip to content

Conversation

Vasu1105
Copy link

@Vasu1105 Vasu1105 commented Sep 8, 2022

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'

@Vasu1105 Vasu1105 changed the title It resolves the cannot load such file -- ./lib/recursive_open_struct/version issue It resolves the cannot load such file -- ./lib/yajl-ruby/version issue Sep 8, 2022
@Vasu1105
Copy link
Author

Any updates on this?

@Vasu1105
Copy link
Author

@brianmario Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant