quilljs2-rails 2.0.3 → 2.1.1

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: 2a54de5bb24085eb8551f26086db187f2a2c804610093f665c9e9fac8328ac78
4
- data.tar.gz: '0952372ce58a132e8e04f83ef66febc35e0a45a9b08f8d6147b992ad608daf44'
3
+ metadata.gz: e70149a7a8197ccf82672ab0d7b9c1b3e3a271d9d66d9599d1b6be53b572defb
4
+ data.tar.gz: d272aaf8ed9ba10a16333c759a9a947a5c6883bd6a42acf74beb5167bed98f2c
5
5
  SHA512:
6
- metadata.gz: b37c8c53f2c85cf4cde3dc7f7adfdd6881b053ebbb0e55fab5b9e16209e0d88605f841b4171a90f87ca98069086bba05182bca3b2a8933ee8a3d4f0fa0b404cf
7
- data.tar.gz: 4eccd77868ddb9abe3e344777a6925dbe109f9e9d003f05ef0eff48c5729077442d97e7a9844ffe418a7b92c8b281babac63b4de3d67c6b270bc44910d8573e5
6
+ metadata.gz: dc39aabb0877fc55a5e7f0e186b2b2059ceb43ef5f6dec142b487b17293d0b5723d8d89d16281b22410c9f181750474b65e28fd46bbac688ba285010fa49b8f8
7
+ data.tar.gz: 8aa35d367bec11633c33559c19933fbe0949a0f55eaed6d902254dfb1b2fb3fb73f7b36a3a00576f1f46c714a0d1ff74741f53348398611465724720c989b94a
data/.idea/workspace.xml CHANGED
@@ -4,9 +4,7 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="f9fcd731-5b64-4fed-8dd4-b5dc13a62758" name="Default" comment="Updated quilljs to latest version.">
8
- <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
- </list>
7
+ <list default="true" id="f9fcd731-5b64-4fed-8dd4-b5dc13a62758" name="Default" comment="Fixed theme related issue." />
10
8
  <option name="SHOW_DIALOG" value="false" />
11
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -71,18 +69,18 @@
71
69
  <component name="Git.Settings">
72
70
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73
71
  </component>
74
- <component name="GitHubPullRequestSearchHistory"><![CDATA[{
75
- "lastFilter": {
76
- "state": "OPEN",
77
- "assignee": "SUMAR7"
72
+ <component name="GitHubPullRequestSearchHistory">{
73
+ &quot;lastFilter&quot;: {
74
+ &quot;state&quot;: &quot;OPEN&quot;,
75
+ &quot;assignee&quot;: &quot;SUMAR7&quot;
78
76
  }
79
- }]]></component>
80
- <component name="GithubPullRequestsUISettings"><![CDATA[{
81
- "selectedUrlAndAccountId": {
82
- "url": "git@github.com:SUMAR7/quilljs-rails.git",
83
- "accountId": "5b56cc62-4a97-468b-937e-174f265d7353"
77
+ }</component>
78
+ <component name="GithubPullRequestsUISettings">{
79
+ &quot;selectedUrlAndAccountId&quot;: {
80
+ &quot;url&quot;: &quot;git@github.com:SUMAR7/quilljs-rails.git&quot;,
81
+ &quot;accountId&quot;: &quot;5b56cc62-4a97-468b-937e-174f265d7353&quot;
84
82
  }
85
- }]]></component>
83
+ }</component>
86
84
  <component name="IdeDocumentHistory">
87
85
  <option name="CHANGED_PATHS">
88
86
  <list>
@@ -105,9 +103,9 @@
105
103
  <detection-done>true</detection-done>
106
104
  <sorting>DEFINITION_ORDER</sorting>
107
105
  </component>
108
- <component name="ProjectColorInfo"><![CDATA[{
109
- "associatedIndex": 8
110
- }]]></component>
106
+ <component name="ProjectColorInfo">{
107
+ &quot;associatedIndex&quot;: 8
108
+ }</component>
111
109
  <component name="ProjectFrameBounds">
112
110
  <option name="x" value="65" />
113
111
  <option name="y" value="-4" />
@@ -238,7 +236,7 @@
238
236
  "RunOnceActivity.ShowReadmeOnStart": "true",
239
237
  "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
240
238
  "RunOnceActivity.git.unshallow": "true",
241
- "com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "1755780314489",
239
+ "com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "1755784176743",
242
240
  "git-widget-placeholder": "master",
243
241
  "junie.onboarding.icon.badge.shown": "true",
244
242
  "last_opened_file_path": "/Users/sumar/projects/sumartech/quilljs-rails",
@@ -262,7 +260,11 @@
262
260
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
263
261
  <EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="DISABLE" bundleExecEnabled="false" />
264
262
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
265
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" runner="rcov" />
263
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" runner="rcov">
264
+ <COVERAGE_PATTERN ENABLED="true">
265
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
266
+ </COVERAGE_PATTERN>
267
+ </EXTENSION>
266
268
  <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
267
269
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
268
270
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
@@ -376,7 +378,8 @@
376
378
  <workItem from="1487304532974" duration="4677000" />
377
379
  <workItem from="1487345374387" duration="523000" />
378
380
  <workItem from="1491105689125" duration="177000" />
379
- <workItem from="1755780255521" duration="2223000" />
381
+ <workItem from="1755780255521" duration="2641000" />
382
+ <workItem from="1755784117848" duration="1522000" />
380
383
  </task>
381
384
  <task id="LOCAL-00001" summary="Updated quilljs to latest version.">
382
385
  <option name="closed" value="true" />
@@ -386,7 +389,31 @@
386
389
  <option name="project" value="LOCAL" />
387
390
  <updated>1755781685903</updated>
388
391
  </task>
389
- <option name="localTasksCounter" value="2" />
392
+ <task id="LOCAL-00002" summary="Updated quilljs to latest version.">
393
+ <option name="closed" value="true" />
394
+ <created>1755782565827</created>
395
+ <option name="number" value="00002" />
396
+ <option name="presentableId" value="LOCAL-00002" />
397
+ <option name="project" value="LOCAL" />
398
+ <updated>1755782565827</updated>
399
+ </task>
400
+ <task id="LOCAL-00003" summary="Fixed theme related issue.">
401
+ <option name="closed" value="true" />
402
+ <created>1755784353513</created>
403
+ <option name="number" value="00003" />
404
+ <option name="presentableId" value="LOCAL-00003" />
405
+ <option name="project" value="LOCAL" />
406
+ <updated>1755784353513</updated>
407
+ </task>
408
+ <task id="LOCAL-00004" summary="Fixed theme related issue.">
409
+ <option name="closed" value="true" />
410
+ <created>1755784935703</created>
411
+ <option name="number" value="00004" />
412
+ <option name="presentableId" value="LOCAL-00004" />
413
+ <option name="project" value="LOCAL" />
414
+ <updated>1755784935703</updated>
415
+ </task>
416
+ <option name="localTasksCounter" value="5" />
390
417
  <servers />
391
418
  </component>
392
419
  <component name="TimeTrackingManager">
@@ -418,12 +445,10 @@
418
445
  <component name="TypeScriptGeneratedFilesManager">
419
446
  <option name="version" value="3" />
420
447
  </component>
421
- <component name="VcsContentAnnotationSettings">
422
- <option name="myLimit" value="2678400000" />
423
- </component>
424
448
  <component name="VcsManagerConfiguration">
425
449
  <MESSAGE value="Updated quilljs to latest version." />
426
- <option name="LAST_COMMIT_MESSAGE" value="Updated quilljs to latest version." />
450
+ <MESSAGE value="Fixed theme related issue." />
451
+ <option name="LAST_COMMIT_MESSAGE" value="Fixed theme related issue." />
427
452
  </component>
428
453
  <component name="editorHistoryManager">
429
454
  <entry file="file://$PROJECT_DIR$/quilljs-rails.gemspec">
@@ -1,6 +1,6 @@
1
1
  module Quilljs
2
2
  module Rails
3
3
  # Gem version follows the bundled/editor major version for clarity
4
- VERSION = "2.0.3"
4
+ VERSION = "2.1.1"
5
5
  end
6
6
  end
data/lib/quilljs/rails.rb CHANGED
@@ -4,6 +4,18 @@ module Quilljs
4
4
  module Rails
5
5
  if defined?(::Rails)
6
6
  class Engine < ::Rails::Engine
7
+ initializer 'quilljs.assets.precompile' do |app|
8
+ if app.config.respond_to?(:assets) && app.config.assets.respond_to?(:precompile)
9
+ app.config.assets.precompile += %w[
10
+ quill.core.css
11
+ quill.snow.css
12
+ quill.bubble.css
13
+ quill.min.js
14
+ quill.core.js
15
+ quill.global.js
16
+ ]
17
+ end
18
+ end
7
19
  end
8
20
  end
9
21
  end
@@ -0,0 +1,2 @@
1
+ # Compatibility require path in case code tries to require 'quilljs2/rails'
2
+ require "quilljs/rails"
@@ -0,0 +1,3 @@
1
+ # This file provides the default require entrypoint for the gem name "quilljs2-rails".
2
+ # It simply loads the actual implementation under lib/quilljs/rails.
3
+ require "quilljs/rails"
@@ -18,7 +18,12 @@ class Quilljs::RailsFunctionalityTest < Minitest::Test
18
18
  created_rails = true
19
19
  end
20
20
  # Ensure Rails::Engine exists so the engine class can inherit from it
21
- ::Rails.const_set(:Engine, Class.new) unless defined?(::Rails::Engine)
21
+ unless defined?(::Rails::Engine)
22
+ engine_stub = Class.new do
23
+ def self.initializer(*); end
24
+ end
25
+ ::Rails.const_set(:Engine, engine_stub)
26
+ end
22
27
 
23
28
  load File.expand_path('../../lib/quilljs/rails.rb', __dir__)
24
29
 
@@ -65,4 +70,13 @@ class Quilljs::RailsFunctionalityTest < Minitest::Test
65
70
  assert_includes content, marker, "#{rel} should indicate updated Quill #{marker}"
66
71
  end
67
72
  end
73
+
74
+ def test_engine_adds_assets_to_precompile
75
+ path = File.expand_path('../../lib/quilljs/rails.rb', __dir__)
76
+ content = File.read(path)
77
+ assert_includes content, 'assets.precompile', 'Engine should append assets to precompile list'
78
+ %w[quill.core.css quill.snow.css quill.bubble.css quill.min.js quill.core.js quill.global.js].each do |asset|
79
+ assert_includes content, asset, "Engine precompile list should include #{asset}"
80
+ end
81
+ end
68
82
  end
@@ -13,4 +13,10 @@ class Quilljs::RailsTest < Minitest::Test
13
13
  assert_includes readme, 'maintained fork of the original quilljs-rails', 'README should mention this is a fork of the original'
14
14
  assert_includes readme, "gem 'quilljs2-rails'", 'README installation should use the new gem name'
15
15
  end
16
+
17
+ def test_default_require_file_exists
18
+ # Ensure requiring by gem name works in host apps
19
+ assert require('quilljs2-rails'), 'Requiring quilljs2-rails should succeed'
20
+ assert defined?(::Quilljs::Rails), 'Quilljs::Rails should be defined after requiring the gem entrypoint'
21
+ end
16
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quilljs2-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sajjad Umar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-21 00:00:00.000000000 Z
11
+ date: 2025-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,6 +83,8 @@ files:
83
83
  - bin/setup
84
84
  - lib/quilljs/rails.rb
85
85
  - lib/quilljs/rails/version.rb
86
+ - lib/quilljs2-rails.rb
87
+ - lib/quilljs2/rails.rb
86
88
  - quilljs-rails.gemspec
87
89
  - test/quilljs/functionality_test.rb
88
90
  - test/quilljs/rails_test.rb