mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[ruby/syntax_suggest] A gem executable should not use require_relative
Otherwise it makes incorrect assumption about RubyGems layout.
04585d820d
This commit is contained in:
parent
cb39283cbf
commit
e67137fe28
1 changed files with 1 additions and 6 deletions
|
@ -1,11 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
begin
|
||||
require_relative "../lib/syntax_suggest/api"
|
||||
rescue LoadError
|
||||
# for default gems
|
||||
require "syntax_suggest/api"
|
||||
end
|
||||
|
||||
SyntaxSuggest::Cli.new(
|
||||
argv: ARGV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue