From aaaf9b61dc8779eadcca005b5f2bbd8af3971b60 Mon Sep 17 00:00:00 2001 From: Robin Newman Date: Mon, 17 Feb 2025 12:23:43 +0000 Subject: [PATCH] Correct core.rb bug titleize method generates an error working on a symbol for the example_name. Checked on both Mac and Linux build. Solution insert .to_s --- app/server/ruby/lib/sonicpi/lang/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/ruby/lib/sonicpi/lang/core.rb b/app/server/ruby/lib/sonicpi/lang/core.rb index af76979636..56e44d2b21 100644 --- a/app/server/ruby/lib/sonicpi/lang/core.rb +++ b/app/server/ruby/lib/sonicpi/lang/core.rb @@ -5115,7 +5115,7 @@ def load_example(example_name) raise IOError, "Error - no example found with name: #{example_name.inspect}" unless path buf = __current_job_info[:workspace] __info "loading #{buf} with #{path}" - title = example_name.titleize + title = example_name.to_s.titleize __replace_buffer(buf, "# #{title}\n" + File.read(path)) end doc name: :load_example,