quilljs2-rails 2.0.3 → 2.1.0
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 +42 -22
- data/lib/quilljs/rails/version.rb +1 -1
- data/lib/quilljs/rails.rb +12 -0
- data/test/quilljs/functionality_test.rb +15 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd1c4a973f04f04830771534c8719f6d65c7a0e97063efc8e1de73aadaf46384
|
4
|
+
data.tar.gz: 3438e47ec3270605d30fafe999ecf0520cb8c326bf3a5f89c6b226650e108040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67fffaeac3718d9c4b2897ce13bde0378eb2f7cbe8249b753112705aadd2180f206b2615d3a337b4f75aa57d03fd388528935e9a75db2036d9453f54bb3187c2
|
7
|
+
data.tar.gz: 4cf290aef85b3255137bff79e8e2bb375fe00cbd5ae985846b66ab5c6ebcd1df6f49796a5a7d2c15b087c6d4c7007929c8b532b47acc3414d7693d51ae2f51cb
|
data/.idea/workspace.xml
CHANGED
@@ -4,8 +4,9 @@
|
|
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="
|
7
|
+
<list default="true" id="f9fcd731-5b64-4fed-8dd4-b5dc13a62758" name="Default" comment="Fixed theme related issue.">
|
8
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
9
|
+
<change beforePath="$PROJECT_DIR$/lib/quilljs/rails/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/quilljs/rails/version.rb" afterDir="false" />
|
9
10
|
</list>
|
10
11
|
<option name="SHOW_DIALOG" value="false" />
|
11
12
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -71,18 +72,18 @@
|
|
71
72
|
<component name="Git.Settings">
|
72
73
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
73
74
|
</component>
|
74
|
-
<component name="GitHubPullRequestSearchHistory"
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
<component name="GitHubPullRequestSearchHistory">{
|
76
|
+
"lastFilter": {
|
77
|
+
"state": "OPEN",
|
78
|
+
"assignee": "SUMAR7"
|
78
79
|
}
|
79
|
-
}
|
80
|
-
<component name="GithubPullRequestsUISettings"
|
81
|
-
|
82
|
-
|
83
|
-
|
80
|
+
}</component>
|
81
|
+
<component name="GithubPullRequestsUISettings">{
|
82
|
+
"selectedUrlAndAccountId": {
|
83
|
+
"url": "git@github.com:SUMAR7/quilljs-rails.git",
|
84
|
+
"accountId": "5b56cc62-4a97-468b-937e-174f265d7353"
|
84
85
|
}
|
85
|
-
}
|
86
|
+
}</component>
|
86
87
|
<component name="IdeDocumentHistory">
|
87
88
|
<option name="CHANGED_PATHS">
|
88
89
|
<list>
|
@@ -105,9 +106,9 @@
|
|
105
106
|
<detection-done>true</detection-done>
|
106
107
|
<sorting>DEFINITION_ORDER</sorting>
|
107
108
|
</component>
|
108
|
-
<component name="ProjectColorInfo"
|
109
|
-
|
110
|
-
}
|
109
|
+
<component name="ProjectColorInfo">{
|
110
|
+
"associatedIndex": 8
|
111
|
+
}</component>
|
111
112
|
<component name="ProjectFrameBounds">
|
112
113
|
<option name="x" value="65" />
|
113
114
|
<option name="y" value="-4" />
|
@@ -238,7 +239,7 @@
|
|
238
239
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
239
240
|
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
240
241
|
"RunOnceActivity.git.unshallow": "true",
|
241
|
-
"com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "
|
242
|
+
"com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "1755784176743",
|
242
243
|
"git-widget-placeholder": "master",
|
243
244
|
"junie.onboarding.icon.badge.shown": "true",
|
244
245
|
"last_opened_file_path": "/Users/sumar/projects/sumartech/quilljs-rails",
|
@@ -262,7 +263,11 @@
|
|
262
263
|
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
263
264
|
<EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="DISABLE" bundleExecEnabled="false" />
|
264
265
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
265
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" runner="rcov"
|
266
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" runner="rcov">
|
267
|
+
<COVERAGE_PATTERN ENABLED="true">
|
268
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
269
|
+
</COVERAGE_PATTERN>
|
270
|
+
</EXTENSION>
|
266
271
|
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
267
272
|
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
268
273
|
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
@@ -376,7 +381,8 @@
|
|
376
381
|
<workItem from="1487304532974" duration="4677000" />
|
377
382
|
<workItem from="1487345374387" duration="523000" />
|
378
383
|
<workItem from="1491105689125" duration="177000" />
|
379
|
-
<workItem from="1755780255521" duration="
|
384
|
+
<workItem from="1755780255521" duration="2641000" />
|
385
|
+
<workItem from="1755784117848" duration="796000" />
|
380
386
|
</task>
|
381
387
|
<task id="LOCAL-00001" summary="Updated quilljs to latest version.">
|
382
388
|
<option name="closed" value="true" />
|
@@ -386,7 +392,23 @@
|
|
386
392
|
<option name="project" value="LOCAL" />
|
387
393
|
<updated>1755781685903</updated>
|
388
394
|
</task>
|
389
|
-
<
|
395
|
+
<task id="LOCAL-00002" summary="Updated quilljs to latest version.">
|
396
|
+
<option name="closed" value="true" />
|
397
|
+
<created>1755782565827</created>
|
398
|
+
<option name="number" value="00002" />
|
399
|
+
<option name="presentableId" value="LOCAL-00002" />
|
400
|
+
<option name="project" value="LOCAL" />
|
401
|
+
<updated>1755782565827</updated>
|
402
|
+
</task>
|
403
|
+
<task id="LOCAL-00003" summary="Fixed theme related issue.">
|
404
|
+
<option name="closed" value="true" />
|
405
|
+
<created>1755784353513</created>
|
406
|
+
<option name="number" value="00003" />
|
407
|
+
<option name="presentableId" value="LOCAL-00003" />
|
408
|
+
<option name="project" value="LOCAL" />
|
409
|
+
<updated>1755784353513</updated>
|
410
|
+
</task>
|
411
|
+
<option name="localTasksCounter" value="4" />
|
390
412
|
<servers />
|
391
413
|
</component>
|
392
414
|
<component name="TimeTrackingManager">
|
@@ -418,12 +440,10 @@
|
|
418
440
|
<component name="TypeScriptGeneratedFilesManager">
|
419
441
|
<option name="version" value="3" />
|
420
442
|
</component>
|
421
|
-
<component name="VcsContentAnnotationSettings">
|
422
|
-
<option name="myLimit" value="2678400000" />
|
423
|
-
</component>
|
424
443
|
<component name="VcsManagerConfiguration">
|
425
444
|
<MESSAGE value="Updated quilljs to latest version." />
|
426
|
-
<
|
445
|
+
<MESSAGE value="Fixed theme related issue." />
|
446
|
+
<option name="LAST_COMMIT_MESSAGE" value="Fixed theme related issue." />
|
427
447
|
</component>
|
428
448
|
<component name="editorHistoryManager">
|
429
449
|
<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
|