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: 8a947d5f1461be04bb30aeee9b343ec6e033d7ff3e88b508c1462bf6d52aba31
4
- data.tar.gz: 2a9147231b5d14578330bdec5c4dd44abb5dd47f04e1af29980e996b2ba2430b
3
+ metadata.gz: 5e980db9b17d908bf7d262b4c161eb9f1157fc42ee8fb8c77f48ea5badd79d0e
4
+ data.tar.gz: 39cb48282c6a278bd0e007669e7dcb55202a116e791e67679d222f0e5296d451
5
5
  SHA512:
6
- metadata.gz: 49f192fc0f347e0e378f1763af8524acdd9cd6cd225a96aa8eed8343ee13c165d7e87f98c4c8b3c6dc650d4eee683e6f9fb8e482d416176bbb8c45f1b85d5710
7
- data.tar.gz: 526353531c7358164814011501f473622102e75f168150edf0f6cdf223256632a6335148231bcc3ce442fe0651fe13658b33c095797a5a0abee72501c9340d78
6
+ metadata.gz: 59a47127efcfec99b846b47ad40bf78b72b5a4149fc29b55085ddfcbad99543ef6d1b566fb5db0941e74081bf403b0f3a8d5c205f7def5888145570aa01d9a26
7
+ data.tar.gz: 761aa4710136531f6e05f63c7214f753a710375c790e0b4e715d3c6f54dbbb521f2082dcf730008d44fce29e3b75f61fe9e8662f101b0dff0b3fe97400a5a779
@@ -1,7 +1,7 @@
1
1
  class CreateRicherTextOEmbeds < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :richer_text_o_embeds do |t|
4
- t.jsonb :fields
4
+ t.json :fields
5
5
  t.string :url
6
6
 
7
7
  t.timestamps
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RicherText
2
- VERSION = "0.17.0"
2
+ VERSION = "0.18.0"
3
3
  end
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.17.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-08-17 00:00:00.000000000 Z
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.3
130
+ rubygems_version: 3.5.16
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: A richer text editor for Rails