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 +4 -4
- data/.idea/workspace.xml +49 -24
- data/lib/quilljs/rails/version.rb +1 -1
- data/lib/quilljs/rails.rb +12 -0
- data/lib/quilljs2/rails.rb +2 -0
- data/lib/quilljs2-rails.rb +3 -0
- data/test/quilljs/functionality_test.rb +15 -1
- data/test/quilljs/rails_test.rb +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e70149a7a8197ccf82672ab0d7b9c1b3e3a271d9d66d9599d1b6be53b572defb
|
4
|
+
data.tar.gz: d272aaf8ed9ba10a16333c759a9a947a5c6883bd6a42acf74beb5167bed98f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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="
|
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"
|
75
|
-
|
76
|
-
|
77
|
-
|
72
|
+
<component name="GitHubPullRequestSearchHistory">{
|
73
|
+
"lastFilter": {
|
74
|
+
"state": "OPEN",
|
75
|
+
"assignee": "SUMAR7"
|
78
76
|
}
|
79
|
-
}
|
80
|
-
<component name="GithubPullRequestsUISettings"
|
81
|
-
|
82
|
-
|
83
|
-
|
77
|
+
}</component>
|
78
|
+
<component name="GithubPullRequestsUISettings">{
|
79
|
+
"selectedUrlAndAccountId": {
|
80
|
+
"url": "git@github.com:SUMAR7/quilljs-rails.git",
|
81
|
+
"accountId": "5b56cc62-4a97-468b-937e-174f265d7353"
|
84
82
|
}
|
85
|
-
}
|
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"
|
109
|
-
|
110
|
-
}
|
106
|
+
<component name="ProjectColorInfo">{
|
107
|
+
"associatedIndex": 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": "
|
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="
|
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
|
-
<
|
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
|
-
<
|
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">
|
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
|
@@ -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
|
-
|
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
|
data/test/quilljs/rails_test.rb
CHANGED
@@ -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.
|
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-
|
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
|