Skip to content

Commit

Permalink
Add vendor/bundle folders manually to LOAD_PATH in exe (#3)
Browse files Browse the repository at this point in the history
* trying to fix require issues on joern side

* Update gemfile

* Reverted cahnges on gemspec file, added vendor/bundler folders to LOAD_PATH in exe script

* Added wildcard for ruby version folder to libs
  • Loading branch information
AndreiDreyer authored Oct 8, 2024
1 parent ed01d44 commit 18a6b8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ruby_ast_gen (0.6.0)
ruby_ast_gen (0.8.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -44,4 +44,4 @@ DEPENDENCIES
slop (~> 4.10)

BUNDLED WITH
2.5.18
2.5.21
5 changes: 4 additions & 1 deletion exe/ruby_ast_gen
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env ruby

require "slop"
libs = File.expand_path("../../vendor/bundle/ruby/*/gems/**/lib", __FILE__)
$LOAD_PATH.unshift *Dir.glob(libs)

require "bundler/setup"
require "slop"

require_relative "../lib/ruby_ast_gen"

Expand Down

0 comments on commit 18a6b8f

Please sign in to comment.