Skip to content

Commit 128badb

Browse files
committed
[GR-19691] Set website so it appears in ruby --help
PullRequest: truffleruby/3178
2 parents cde4cfa + 89ca162 commit 128badb

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

spec/tags/truffle/launcher_tags.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ slow:The launcher supports running typeprof symlinked
8686
fails(https://github.com/ruby/typeprof/issues/64):The launcher runs typeprof as an -S command
8787
fails(https://github.com/ruby/typeprof/issues/64):The launcher supports running typeprof in any of the bin/ directories
8888
fails(https://github.com/ruby/typeprof/issues/64):The launcher supports running typeprof symlinked
89+
slow:The launcher prints help:ruby containing ruby language options

spec/truffle/launcher_spec.rb

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -344,22 +344,13 @@ def should_print_full_java_command(options, env: {})
344344
end
345345
end
346346

347-
it "prints help:languages containing ruby language options" do
348-
out = ruby_exe(nil, options: "--help:languages", args: @redirect)
347+
it "prints help:ruby containing ruby language options" do
348+
out = ruby_exe(nil, options: "--help:ruby", args: @redirect)
349349
check_status_and_empty_stderr
350-
out.should =~ /language options/i
351-
out.should include("Ruby:")
352-
out.should include("--ruby.load-paths=")
353-
end
354-
355-
guard -> { defined?(::TruffleRuby) &&TruffleRuby.cexts? } do
356-
it "prints help:languages containing llvm language options" do
357-
out = ruby_exe(nil, options: "--help:languages", args: @redirect)
358-
check_status_and_empty_stderr
359-
out.should =~ /language options/i
360-
out.should include("LLVM:")
361-
out.should include("--llvm.libraryPath=")
362-
end
350+
out.should =~ /Language options/i
351+
out.should =~ /\bRuby\b/
352+
out.should.include?('https://www.graalvm.org/ruby/')
353+
out.should.include?("--ruby.load-paths=")
363354
end
364355

365356
it "prints the version with --version" do

src/main/java/org/truffleruby/RubyLanguage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136

137137
@TruffleLanguage.Registration(
138138
name = "Ruby",
139+
website = "https://www.graalvm.org/ruby/",
139140
contextPolicy = ContextPolicy.SHARED,
140141
id = TruffleRuby.LANGUAGE_ID,
141142
implementationName = TruffleRuby.FORMAL_NAME,

0 commit comments

Comments
 (0)