Skip to content

Commit

Permalink
@fixup Fix syntax_suggest cli command and add to the default gems lis…
Browse files Browse the repository at this point in the history
…t in the launcher specs
  • Loading branch information
andrykonchin committed Oct 17, 2024
1 parent 4396f4b commit 6552878
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/gems/gems/syntax_suggest-2.0.0/exe/syntax_suggest
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/usr/bin/env ruby

if defined?(::TruffleRuby)
require "syntax_suggest/api"
else
# it's already fixed in
# https://github.com/ruby/syntax_suggest/commit/88d3522da066f0b7e7eec9ea3cffafb0050b370a
begin
require_relative "../lib/syntax_suggest/api"
rescue LoadError
# for default gems
require "syntax_suggest/api"
end

SyntaxSuggest::Cli.new(
Expand Down

0 comments on commit 6552878

Please sign in to comment.