panda-cms 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a439141e4b2fd9c4167ea0bd872096a648fe1a9fcfc237e6a1c20e16d2a2562
4
- data.tar.gz: fa28c3d1d698b9725140618603505a0120c0e58430ff4c923ccd986f3e27daa5
3
+ metadata.gz: 573c4b81cbf46f968761a96360d04aecfeb110eae011e5cd5a4f901d89bf380b
4
+ data.tar.gz: cddd1b2705dfa48942f13605102cc8c80940ad959589c46c86f08f609398ca24
5
5
  SHA512:
6
- metadata.gz: 1923aea63bd5a266487a4a25e852df4cc96e0cba408fd9cb9351a5a302a20ad7e07ef22254dbe01ef7751ca3b35d0a9cdfb941a821e56730455fc73f0223083b
7
- data.tar.gz: 54291d3de7b95047412a2c6c9e50b94f187457803bfd1609f0f9a947348de612c2ca6480f33e8e5df5f0305c131d638e025f1d6e04cc30c2997ce4ccb2a9c56e
6
+ metadata.gz: 42ce696d0d74e33e93cd07fab7a0f697a4257da945613995f4d2aa01aa75f78d2c05ffd18667887705db5fd3aafcefbaec5a8741be6f18b16f757e8f0c4957e7
7
+ data.tar.gz: 15ccdd29c804e25189aff2656bdb37c6e52ca6d642892eeed336b7685319465193436f340c61c19b14c1ba670bf51aa85c0198334d9b4231080136a212cf413c
@@ -2,8 +2,15 @@
2
2
 
3
3
  class ConvertHtmlContentToEditorJs < ActiveRecord::Migration[7.1]
4
4
  def up
5
- # First, let's ensure we have the converter available in the migration
6
- require Panda::CMS::Engine.root.join("app/services/panda/cms/html_to_editor_js_converter")
5
+ # First, let's check if the converter service exists
6
+ converter_path = Panda::CMS::Engine.root.join("app/services/panda/cms/html_to_editor_js_converter.rb")
7
+
8
+ unless File.exist?(converter_path)
9
+ Rails.logger.info "HtmlToEditorJsConverter service not found. Skipping HTML to EditorJS conversion."
10
+ return
11
+ end
12
+
13
+ require converter_path
7
14
 
8
15
  # Check if we have any existing valid EditorJS content
9
16
  existing_editor_js = Panda::CMS::BlockContent.find_each.any? do |block_content|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Panda
4
4
  module CMS
5
- VERSION = "0.8.0"
5
+ VERSION = "0.8.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Otaina Limited t/a Tasty Bamboo