From c6a729ea72fa7e526e12cc238b9f2d5c18e7e052 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 7 Nov 2023 09:42:13 +0100 Subject: [PATCH] DEV: PrettyText ctx load breaking change --- .rubocop.yml | 3 +++ lib/custom_wizard/validators/update.rb | 2 +- plugin.rb | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 69fcfc56..74c8c853 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,3 +6,6 @@ RSpec/ContextWording: RSpec/DescribeClass: Enabled: false + +Discourse/TimeEqMatcher: + Enabled: false diff --git a/lib/custom_wizard/validators/update.rb b/lib/custom_wizard/validators/update.rb index d71bded1..869f7dca 100644 --- a/lib/custom_wizard/validators/update.rb +++ b/lib/custom_wizard/validators/update.rb @@ -128,7 +128,7 @@ class ::CustomWizard::UpdateValidator return @ctx if @ctx @ctx = PrettyText.v8 - PrettyText.ctx_load(@ctx, "#{Rails.root}/vendor/assets/javascripts/moment.js") + @ctx.load("#{Rails.root}/vendor/assets/javascripts/moment.js") @ctx end end diff --git a/plugin.rb b/plugin.rb index ab979af8..d013e49b 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.29 +# version: 2.4.30 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech