config.ru in opal-0.3.37 vs config.ru in opal-0.3.38

- old
+ new

@@ -1,26 +1,13 @@ require 'bundler' Bundler.require -html = <<HTML - <!DOCTYPE html> - <html> - <head> - <title>Opal corelib and runtime specs</title> - </head> - <body> - <script type="text/javascript" src="/assets/autorun.js"></script> - </body> - </html> -HTML +require 'opal/spec/server' -map '/assets' do - env = Opal::Environment.new - env.append_path 'spec' - run env -end +# method_missing can be turned off if required (on by default) +# Opal::Processor.method_missing_enabled = false -map '/' do - run lambda { |env| - [200, {'Content-Type' => 'text/html'}, [html]] - } -end +# Run in non-debug mode (faster, all files concatenated into 1 file) +run Opal::Spec::Server.new(false) + +# Run in debug mode - all files loaded seperately, but slower +# run Opal::Spec::Server.new