Skip to content

Commit 89ca162

Browse files
committed
Set website so it appears in ruby --help
* Update launcher specs to handle the new output. * Prefer --help:ruby to --help:languages.
1 parent 2a84e02 commit 89ca162

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
@@ -135,6 +135,7 @@
135135

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

0 commit comments

Comments
 (0)