From 245e4b218a1713e528657576d24218d65ab9f25d Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Fri, 24 Jan 2025 01:11:22 +0900 Subject: [PATCH] Sort CRuby engines by version in the Playground. This was noticed during #191. It would be preferable for newer CRuby engines, which allow the use of new features, to appear more prominently at the top of the dropdown in the Playground. https://try.ruby-lang.org/playground/ This PR rearranges the list to prioritize and highlight the newer CRuby engine. --- app/ruby_engine.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/ruby_engine.rb b/app/ruby_engine.rb index a13ec929..e75d41f5 100644 --- a/app/ruby_engine.rb +++ b/app/ruby_engine.rb @@ -39,16 +39,16 @@ def loading(part = nil) # When you update the engines, ensure that they are tested correctly. # Update the engine list also in spec/playground_spec. ENGINES = [ - # https://www.jsdelivr.com/package/npm/@ruby/3.2-wasm-wasi?tab=files&path=dist&version=2.4.1 - CRubyWASI.new( - "https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@2.4.1/dist/ruby.wasm", - "3.2.2" - ), # https://www.jsdelivr.com/package/npm/@ruby/3.3-wasm-wasi?tab=files&path=dist&version=2.4.1 CRubyWASI.new( "https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.4.1/dist/ruby.wasm", "3.3.0" ), + # https://www.jsdelivr.com/package/npm/@ruby/3.2-wasm-wasi?tab=files&path=dist&version=2.4.1 + CRubyWASI.new( + "https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@2.4.1/dist/ruby.wasm", + "3.2.2" + ), # Opal.new, OpalWebWorker.new("1.7.1"), ].each_with_object({}) do |engine, hash|