From 8804ddb8cf8cb0176adf5657084f3bf66fb80db9 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Wed, 24 Nov 2021 15:38:40 -0800 Subject: [PATCH] Updated boot file lists for the Ruby gem and Python egg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This prevents consumers that rely on those lists (especially the Jasmine gem and egg) from getting a deprecation warning about boot.js. --- lib/jasmine-core.rb | 2 +- lib/jasmine-core/core.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/jasmine-core.rb b/lib/jasmine-core.rb index 6ba57dd8..55a03fba 100644 --- a/lib/jasmine-core.rb +++ b/lib/jasmine-core.rb @@ -49,7 +49,7 @@ module Jasmine end def boot_files - ["boot.js"] + ["boot0.js", "boot1.js"] end def node_boot_files diff --git a/lib/jasmine-core/core.py b/lib/jasmine-core/core.py index 936e9b0f..51ef0b30 100644 --- a/lib/jasmine-core/core.py +++ b/lib/jasmine-core/core.py @@ -54,14 +54,14 @@ class Core(object): # jasmine.js needs to be first js_files.insert(0, 'jasmine.js') - # boot needs to be last + # Remove the legacy boot file js_files.remove('boot.js') - js_files.append('boot.js') - # Remove the new boot files. jasmine-py will continue to use the legacy - # boot.js. + # boot files need to be last js_files.remove('boot0.js') js_files.remove('boot1.js') + js_files.append('boot0.js') + js_files.append('boot1.js') return cls._uniq(js_files)