richer_text 0.17.0 → 0.18.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e980db9b17d908bf7d262b4c161eb9f1157fc42ee8fb8c77f48ea5badd79d0e
|
|
4
|
+
data.tar.gz: 39cb48282c6a278bd0e007669e7dcb55202a116e791e67679d222f0e5296d451
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59a47127efcfec99b846b47ad40bf78b72b5a4149fc29b55085ddfcbad99543ef6d1b566fb5db0941e74081bf403b0f3a8d5c205f7def5888145570aa01d9a26
|
|
7
|
+
data.tar.gz: 761aa4710136531f6e05f63c7214f753a710375c790e0b4e715d3c6f54dbbb521f2082dcf730008d44fce29e3b75f61fe9e8662f101b0dff0b3fe97400a5a779
|
|
@@ -33,6 +33,14 @@ module RicherText
|
|
|
33
33
|
run "pnpm add highlight.js @afomera/richer-text" if destination.join("pnpm-lock.yaml").exist?
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
if (importmap_path = destination.join("config/importmap.rb")).exist?
|
|
37
|
+
run "curl -Lo ./vendor/javascript/richer-text.js https://unpkg.com/@afomera/richer-text@latest/dist/bundle/index.module.js"
|
|
38
|
+
run "curl -Lo ./app/assets/stylesheets/richer-text.css https://unpkg.com/@afomera/richer-text@2.0.0/dist/css/richer-text.css"
|
|
39
|
+
|
|
40
|
+
say "Adding import to importmap.rb", :green
|
|
41
|
+
append_to_file importmap_path.to_s, %(pin "@afomera/richer-text", to: "richer-text.js"\n)
|
|
42
|
+
end
|
|
43
|
+
|
|
36
44
|
say "Adding import to application.js", :green
|
|
37
45
|
append_to_file "app/javascript/application.js", %(import "@afomera/richer-text"\n)
|
|
38
46
|
end
|
data/lib/richer_text/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: richer_text
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrea Fomera
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
127
|
- !ruby/object:Gem::Version
|
|
128
128
|
version: '0'
|
|
129
129
|
requirements: []
|
|
130
|
-
rubygems_version: 3.5.
|
|
130
|
+
rubygems_version: 3.5.16
|
|
131
131
|
signing_key:
|
|
132
132
|
specification_version: 4
|
|
133
133
|
summary: A richer text editor for Rails
|