mobility-actiontext 0.2.0 → 0.3.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: f786847759d002097d838b957e806ed4d53c4c06ba43d9cea1dd0e4dcd882d12
4
- data.tar.gz: ecf702b9980c900e66f9700dff94169033a0358fa9ab7b6ebbbf8e57b23ee13a
3
+ metadata.gz: e74323391e6747767158f628cd62cae42f9f7fe2ac56d8722c66e5090c1a7474
4
+ data.tar.gz: 3be42ee2b4a5fd804cd1f6331657166b497be0a050c8080835e54cf487cb2980
5
5
  SHA512:
6
- metadata.gz: bd005a3d0c2a59706e5a5d7644d5e9245e8b21168d24894d990fdc0382263446ed13d1354c2df7f936fb8f840e65af2c22cabdef1a049833a19c018024c4359b
7
- data.tar.gz: ec860b5f3d4f35e1218ae8f66fda41736f78d5663990b5a207250a2c0ce673887deff8dba2f4638df40a8e63d591108aac8e6db57349b92e97e42c26f7b105c1
6
+ metadata.gz: a19bbed71a38f112aeb3cfafaf0b78164536a7f2af0f1c0fc82d9eff96aa011fc529edcd5e3c98c691349ab3db6ab8d9116db040c6f4c58784414075a150417a
7
+ data.tar.gz: df4a240edf509bce6f574d6a01af1eaad16b25e32d90b967d1ebe3daa740aaa6e00e263c044dcae68111be01feaa7a19291093c58af382fd45f7f859795e2e7e
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.0.0
1
+ ruby-3.0.2
data/CHANGELOG.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # Mobility Action Text Changelog
2
2
 
3
- ### 0.1.0
3
+ ### 0.3.0 (2021-10-07)
4
+ - Fix destroying records (#12).
5
+
6
+ ### 0.2.0 (2021-04-03)
4
7
  - Widen Ruby compatibility to >= 2.5.
5
8
 
6
- ### 0.1.0
9
+ ### 0.1.0 (2021-02-26)
7
10
  - Initial release.
data/Gemfile.lock CHANGED
@@ -1,126 +1,128 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility-actiontext (0.2.0)
5
- mobility (~> 1.1)
4
+ mobility-actiontext (0.3.0)
5
+ mobility (~> 1.2)
6
6
  rails (~> 6.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (6.1.3.1)
12
- actionpack (= 6.1.3.1)
13
- activesupport (= 6.1.3.1)
11
+ actioncable (6.1.4.1)
12
+ actionpack (= 6.1.4.1)
13
+ activesupport (= 6.1.4.1)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailbox (6.1.3.1)
17
- actionpack (= 6.1.3.1)
18
- activejob (= 6.1.3.1)
19
- activerecord (= 6.1.3.1)
20
- activestorage (= 6.1.3.1)
21
- activesupport (= 6.1.3.1)
16
+ actionmailbox (6.1.4.1)
17
+ actionpack (= 6.1.4.1)
18
+ activejob (= 6.1.4.1)
19
+ activerecord (= 6.1.4.1)
20
+ activestorage (= 6.1.4.1)
21
+ activesupport (= 6.1.4.1)
22
22
  mail (>= 2.7.1)
23
- actionmailer (6.1.3.1)
24
- actionpack (= 6.1.3.1)
25
- actionview (= 6.1.3.1)
26
- activejob (= 6.1.3.1)
27
- activesupport (= 6.1.3.1)
23
+ actionmailer (6.1.4.1)
24
+ actionpack (= 6.1.4.1)
25
+ actionview (= 6.1.4.1)
26
+ activejob (= 6.1.4.1)
27
+ activesupport (= 6.1.4.1)
28
28
  mail (~> 2.5, >= 2.5.4)
29
29
  rails-dom-testing (~> 2.0)
30
- actionpack (6.1.3.1)
31
- actionview (= 6.1.3.1)
32
- activesupport (= 6.1.3.1)
30
+ actionpack (6.1.4.1)
31
+ actionview (= 6.1.4.1)
32
+ activesupport (= 6.1.4.1)
33
33
  rack (~> 2.0, >= 2.0.9)
34
34
  rack-test (>= 0.6.3)
35
35
  rails-dom-testing (~> 2.0)
36
36
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
- actiontext (6.1.3.1)
38
- actionpack (= 6.1.3.1)
39
- activerecord (= 6.1.3.1)
40
- activestorage (= 6.1.3.1)
41
- activesupport (= 6.1.3.1)
37
+ actiontext (6.1.4.1)
38
+ actionpack (= 6.1.4.1)
39
+ activerecord (= 6.1.4.1)
40
+ activestorage (= 6.1.4.1)
41
+ activesupport (= 6.1.4.1)
42
42
  nokogiri (>= 1.8.5)
43
- actionview (6.1.3.1)
44
- activesupport (= 6.1.3.1)
43
+ actionview (6.1.4.1)
44
+ activesupport (= 6.1.4.1)
45
45
  builder (~> 3.1)
46
46
  erubi (~> 1.4)
47
47
  rails-dom-testing (~> 2.0)
48
48
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.1.3.1)
50
- activesupport (= 6.1.3.1)
49
+ activejob (6.1.4.1)
50
+ activesupport (= 6.1.4.1)
51
51
  globalid (>= 0.3.6)
52
- activemodel (6.1.3.1)
53
- activesupport (= 6.1.3.1)
54
- activerecord (6.1.3.1)
55
- activemodel (= 6.1.3.1)
56
- activesupport (= 6.1.3.1)
57
- activestorage (6.1.3.1)
58
- actionpack (= 6.1.3.1)
59
- activejob (= 6.1.3.1)
60
- activerecord (= 6.1.3.1)
61
- activesupport (= 6.1.3.1)
52
+ activemodel (6.1.4.1)
53
+ activesupport (= 6.1.4.1)
54
+ activerecord (6.1.4.1)
55
+ activemodel (= 6.1.4.1)
56
+ activesupport (= 6.1.4.1)
57
+ activestorage (6.1.4.1)
58
+ actionpack (= 6.1.4.1)
59
+ activejob (= 6.1.4.1)
60
+ activerecord (= 6.1.4.1)
61
+ activesupport (= 6.1.4.1)
62
62
  marcel (~> 1.0.0)
63
- mini_mime (~> 1.0.2)
64
- activesupport (6.1.3.1)
63
+ mini_mime (>= 1.1.0)
64
+ activesupport (6.1.4.1)
65
65
  concurrent-ruby (~> 1.0, >= 1.0.2)
66
66
  i18n (>= 1.6, < 2)
67
67
  minitest (>= 5.1)
68
68
  tzinfo (~> 2.0)
69
69
  zeitwerk (~> 2.3)
70
70
  builder (3.2.4)
71
- concurrent-ruby (1.1.8)
71
+ concurrent-ruby (1.1.9)
72
72
  crass (1.0.6)
73
73
  erubi (1.10.0)
74
- globalid (0.4.2)
75
- activesupport (>= 4.2.0)
74
+ globalid (0.5.2)
75
+ activesupport (>= 5.0)
76
76
  i18n (1.8.10)
77
77
  concurrent-ruby (~> 1.0)
78
- loofah (2.9.0)
78
+ loofah (2.12.0)
79
79
  crass (~> 1.0.2)
80
80
  nokogiri (>= 1.5.9)
81
81
  mail (2.7.1)
82
82
  mini_mime (>= 0.1.1)
83
- marcel (1.0.1)
83
+ marcel (1.0.2)
84
84
  method_source (1.0.0)
85
- mini_mime (1.0.3)
85
+ mini_mime (1.1.1)
86
86
  minitest (5.14.4)
87
- mobility (1.1.1)
87
+ mobility (1.2.2)
88
88
  i18n (>= 0.6.10, < 2)
89
89
  request_store (~> 1.0)
90
- nio4r (2.5.7)
91
- nokogiri (1.11.2-x86_64-darwin)
90
+ nio4r (2.5.8)
91
+ nokogiri (1.12.5-x86_64-darwin)
92
+ racc (~> 1.4)
93
+ nokogiri (1.12.5-x86_64-linux)
92
94
  racc (~> 1.4)
93
95
  racc (1.5.2)
94
96
  rack (2.2.3)
95
97
  rack-test (1.1.0)
96
98
  rack (>= 1.0, < 3)
97
- rails (6.1.3.1)
98
- actioncable (= 6.1.3.1)
99
- actionmailbox (= 6.1.3.1)
100
- actionmailer (= 6.1.3.1)
101
- actionpack (= 6.1.3.1)
102
- actiontext (= 6.1.3.1)
103
- actionview (= 6.1.3.1)
104
- activejob (= 6.1.3.1)
105
- activemodel (= 6.1.3.1)
106
- activerecord (= 6.1.3.1)
107
- activestorage (= 6.1.3.1)
108
- activesupport (= 6.1.3.1)
99
+ rails (6.1.4.1)
100
+ actioncable (= 6.1.4.1)
101
+ actionmailbox (= 6.1.4.1)
102
+ actionmailer (= 6.1.4.1)
103
+ actionpack (= 6.1.4.1)
104
+ actiontext (= 6.1.4.1)
105
+ actionview (= 6.1.4.1)
106
+ activejob (= 6.1.4.1)
107
+ activemodel (= 6.1.4.1)
108
+ activerecord (= 6.1.4.1)
109
+ activestorage (= 6.1.4.1)
110
+ activesupport (= 6.1.4.1)
109
111
  bundler (>= 1.15.0)
110
- railties (= 6.1.3.1)
112
+ railties (= 6.1.4.1)
111
113
  sprockets-rails (>= 2.0.0)
112
114
  rails-dom-testing (2.0.3)
113
115
  activesupport (>= 4.2.0)
114
116
  nokogiri (>= 1.6)
115
- rails-html-sanitizer (1.3.0)
117
+ rails-html-sanitizer (1.4.2)
116
118
  loofah (~> 2.3)
117
- railties (6.1.3.1)
118
- actionpack (= 6.1.3.1)
119
- activesupport (= 6.1.3.1)
119
+ railties (6.1.4.1)
120
+ actionpack (= 6.1.4.1)
121
+ activesupport (= 6.1.4.1)
120
122
  method_source
121
- rake (>= 0.8.7)
123
+ rake (>= 0.13)
122
124
  thor (~> 1.0)
123
- rake (13.0.3)
125
+ rake (13.0.6)
124
126
  request_store (1.5.0)
125
127
  rack (>= 1.4)
126
128
  sprockets (4.0.2)
@@ -134,17 +136,18 @@ GEM
134
136
  thor (1.1.0)
135
137
  tzinfo (2.0.4)
136
138
  concurrent-ruby (~> 1.0)
137
- websocket-driver (0.7.3)
139
+ websocket-driver (0.7.5)
138
140
  websocket-extensions (>= 0.1.0)
139
141
  websocket-extensions (0.1.5)
140
142
  zeitwerk (2.4.2)
141
143
 
142
144
  PLATFORMS
143
145
  x86_64-darwin-20
146
+ x86_64-linux
144
147
 
145
148
  DEPENDENCIES
146
149
  mobility-actiontext!
147
150
  sqlite3 (~> 1.4)
148
151
 
149
152
  BUNDLED WITH
150
- 2.2.5
153
+ 2.2.23
data/README.md CHANGED
@@ -79,7 +79,7 @@ This is done through the `Mobility::Backends::ActionText::Translation` model ext
79
79
 
80
80
  After checking out the repo, run `bundle install` to install dependencies. Then, run `cd test_app && bundle exec rails test` to run the tests.
81
81
 
82
- To release a new version, update `lib/mobility/action_text/version.rb` and CHANGELOG.md, commit, then run `bundle exec rake release`. This will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
82
+ To release a new version, update `lib/mobility/action_text/version.rb` and `CHANGELOG.md`, commit, then run `bundle exec rake release`. This will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
83
83
 
84
84
  ## Contributing
85
85
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mobility
4
4
  module ActionText
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
@@ -53,6 +53,21 @@ module Mobility
53
53
  super
54
54
  end
55
55
  # @!endgroup
56
+
57
+ # override destroy logic because we are not using the db tables from
58
+ # the subclassed KeyValue implementation
59
+ def define_after_destroy_callback(klass)
60
+ # Ensure we only call after destroy hook once per translations class
61
+ b = self
62
+ translation_classes = [class_name, RichTextTranslation, PlainTextTranslation].uniq
63
+ klass.after_destroy do
64
+ @mobility_after_destroy_translation_classes = [] unless defined?(@mobility_after_destroy_translation_classes)
65
+ (translation_classes - @mobility_after_destroy_translation_classes).each do |translation_class|
66
+ translation_class.where(b.belongs_to => self).destroy_all
67
+ end
68
+ @mobility_after_destroy_translation_classes += translation_classes
69
+ end
70
+ end
56
71
  end
57
72
 
58
73
  setup do |attributes, _options|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.add_dependency 'mobility', '~> 1.1'
29
+ spec.add_dependency 'mobility', '~> 1.2'
30
30
  spec.add_dependency 'rails', '~> 6.0'
31
31
 
32
32
  spec.add_development_dependency 'sqlite3', '~> 1.4'
data/test_app/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
- ruby '3.0.0'
4
+ ruby '3.0.2'
5
5
 
6
6
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7
7
  gem 'rails', '~> 6.1.1'
@@ -38,5 +38,5 @@ end
38
38
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
39
39
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
40
40
 
41
- gem "mobility", '~> 1.1'
41
+ gem "mobility", '~> 1.2'
42
42
  gem "mobility-actiontext", path: '..'
@@ -1,67 +1,67 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- mobility-actiontext (0.2.0)
5
- mobility (~> 1.1)
4
+ mobility-actiontext (0.3.0)
5
+ mobility (~> 1.2)
6
6
  rails (~> 6.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (6.1.3.1)
12
- actionpack (= 6.1.3.1)
13
- activesupport (= 6.1.3.1)
11
+ actioncable (6.1.4.1)
12
+ actionpack (= 6.1.4.1)
13
+ activesupport (= 6.1.4.1)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailbox (6.1.3.1)
17
- actionpack (= 6.1.3.1)
18
- activejob (= 6.1.3.1)
19
- activerecord (= 6.1.3.1)
20
- activestorage (= 6.1.3.1)
21
- activesupport (= 6.1.3.1)
16
+ actionmailbox (6.1.4.1)
17
+ actionpack (= 6.1.4.1)
18
+ activejob (= 6.1.4.1)
19
+ activerecord (= 6.1.4.1)
20
+ activestorage (= 6.1.4.1)
21
+ activesupport (= 6.1.4.1)
22
22
  mail (>= 2.7.1)
23
- actionmailer (6.1.3.1)
24
- actionpack (= 6.1.3.1)
25
- actionview (= 6.1.3.1)
26
- activejob (= 6.1.3.1)
27
- activesupport (= 6.1.3.1)
23
+ actionmailer (6.1.4.1)
24
+ actionpack (= 6.1.4.1)
25
+ actionview (= 6.1.4.1)
26
+ activejob (= 6.1.4.1)
27
+ activesupport (= 6.1.4.1)
28
28
  mail (~> 2.5, >= 2.5.4)
29
29
  rails-dom-testing (~> 2.0)
30
- actionpack (6.1.3.1)
31
- actionview (= 6.1.3.1)
32
- activesupport (= 6.1.3.1)
30
+ actionpack (6.1.4.1)
31
+ actionview (= 6.1.4.1)
32
+ activesupport (= 6.1.4.1)
33
33
  rack (~> 2.0, >= 2.0.9)
34
34
  rack-test (>= 0.6.3)
35
35
  rails-dom-testing (~> 2.0)
36
36
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
- actiontext (6.1.3.1)
38
- actionpack (= 6.1.3.1)
39
- activerecord (= 6.1.3.1)
40
- activestorage (= 6.1.3.1)
41
- activesupport (= 6.1.3.1)
37
+ actiontext (6.1.4.1)
38
+ actionpack (= 6.1.4.1)
39
+ activerecord (= 6.1.4.1)
40
+ activestorage (= 6.1.4.1)
41
+ activesupport (= 6.1.4.1)
42
42
  nokogiri (>= 1.8.5)
43
- actionview (6.1.3.1)
44
- activesupport (= 6.1.3.1)
43
+ actionview (6.1.4.1)
44
+ activesupport (= 6.1.4.1)
45
45
  builder (~> 3.1)
46
46
  erubi (~> 1.4)
47
47
  rails-dom-testing (~> 2.0)
48
48
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.1.3.1)
50
- activesupport (= 6.1.3.1)
49
+ activejob (6.1.4.1)
50
+ activesupport (= 6.1.4.1)
51
51
  globalid (>= 0.3.6)
52
- activemodel (6.1.3.1)
53
- activesupport (= 6.1.3.1)
54
- activerecord (6.1.3.1)
55
- activemodel (= 6.1.3.1)
56
- activesupport (= 6.1.3.1)
57
- activestorage (6.1.3.1)
58
- actionpack (= 6.1.3.1)
59
- activejob (= 6.1.3.1)
60
- activerecord (= 6.1.3.1)
61
- activesupport (= 6.1.3.1)
52
+ activemodel (6.1.4.1)
53
+ activesupport (= 6.1.4.1)
54
+ activerecord (6.1.4.1)
55
+ activemodel (= 6.1.4.1)
56
+ activesupport (= 6.1.4.1)
57
+ activestorage (6.1.4.1)
58
+ actionpack (= 6.1.4.1)
59
+ activejob (= 6.1.4.1)
60
+ activerecord (= 6.1.4.1)
61
+ activesupport (= 6.1.4.1)
62
62
  marcel (~> 1.0.0)
63
- mini_mime (~> 1.0.2)
64
- activesupport (6.1.3.1)
63
+ mini_mime (>= 1.1.0)
64
+ activesupport (6.1.4.1)
65
65
  concurrent-ruby (~> 1.0, >= 1.0.2)
66
66
  i18n (>= 1.6, < 2)
67
67
  minitest (>= 5.1)
@@ -70,70 +70,72 @@ GEM
70
70
  bindex (0.8.1)
71
71
  builder (3.2.4)
72
72
  byebug (11.1.3)
73
- concurrent-ruby (1.1.8)
73
+ concurrent-ruby (1.1.9)
74
74
  crass (1.0.6)
75
75
  erubi (1.10.0)
76
- ffi (1.15.0)
77
- globalid (0.4.2)
78
- activesupport (>= 4.2.0)
76
+ ffi (1.15.4)
77
+ globalid (0.5.2)
78
+ activesupport (>= 5.0)
79
79
  i18n (1.8.10)
80
80
  concurrent-ruby (~> 1.0)
81
81
  jbuilder (2.11.2)
82
82
  activesupport (>= 5.0.0)
83
- listen (3.5.1)
83
+ listen (3.7.0)
84
84
  rb-fsevent (~> 0.10, >= 0.10.3)
85
85
  rb-inotify (~> 0.9, >= 0.9.10)
86
- loofah (2.9.0)
86
+ loofah (2.12.0)
87
87
  crass (~> 1.0.2)
88
88
  nokogiri (>= 1.5.9)
89
89
  mail (2.7.1)
90
90
  mini_mime (>= 0.1.1)
91
- marcel (1.0.1)
91
+ marcel (1.0.2)
92
92
  method_source (1.0.0)
93
- mini_mime (1.0.3)
93
+ mini_mime (1.1.1)
94
94
  minitest (5.14.4)
95
- mobility (1.1.1)
95
+ mobility (1.2.2)
96
96
  i18n (>= 0.6.10, < 2)
97
97
  request_store (~> 1.0)
98
- nio4r (2.5.7)
99
- nokogiri (1.11.2-x86_64-darwin)
98
+ nio4r (2.5.8)
99
+ nokogiri (1.12.5-x86_64-darwin)
100
+ racc (~> 1.4)
101
+ nokogiri (1.12.5-x86_64-linux)
100
102
  racc (~> 1.4)
101
- puma (5.2.2)
103
+ puma (5.5.0)
102
104
  nio4r (~> 2.0)
103
105
  racc (1.5.2)
104
106
  rack (2.2.3)
105
- rack-mini-profiler (2.3.1)
107
+ rack-mini-profiler (2.3.3)
106
108
  rack (>= 1.2.0)
107
109
  rack-test (1.1.0)
108
110
  rack (>= 1.0, < 3)
109
- rails (6.1.3.1)
110
- actioncable (= 6.1.3.1)
111
- actionmailbox (= 6.1.3.1)
112
- actionmailer (= 6.1.3.1)
113
- actionpack (= 6.1.3.1)
114
- actiontext (= 6.1.3.1)
115
- actionview (= 6.1.3.1)
116
- activejob (= 6.1.3.1)
117
- activemodel (= 6.1.3.1)
118
- activerecord (= 6.1.3.1)
119
- activestorage (= 6.1.3.1)
120
- activesupport (= 6.1.3.1)
111
+ rails (6.1.4.1)
112
+ actioncable (= 6.1.4.1)
113
+ actionmailbox (= 6.1.4.1)
114
+ actionmailer (= 6.1.4.1)
115
+ actionpack (= 6.1.4.1)
116
+ actiontext (= 6.1.4.1)
117
+ actionview (= 6.1.4.1)
118
+ activejob (= 6.1.4.1)
119
+ activemodel (= 6.1.4.1)
120
+ activerecord (= 6.1.4.1)
121
+ activestorage (= 6.1.4.1)
122
+ activesupport (= 6.1.4.1)
121
123
  bundler (>= 1.15.0)
122
- railties (= 6.1.3.1)
124
+ railties (= 6.1.4.1)
123
125
  sprockets-rails (>= 2.0.0)
124
126
  rails-dom-testing (2.0.3)
125
127
  activesupport (>= 4.2.0)
126
128
  nokogiri (>= 1.6)
127
- rails-html-sanitizer (1.3.0)
129
+ rails-html-sanitizer (1.4.2)
128
130
  loofah (~> 2.3)
129
- railties (6.1.3.1)
130
- actionpack (= 6.1.3.1)
131
- activesupport (= 6.1.3.1)
131
+ railties (6.1.4.1)
132
+ actionpack (= 6.1.4.1)
133
+ activesupport (= 6.1.4.1)
132
134
  method_source
133
- rake (>= 0.8.7)
135
+ rake (>= 0.13)
134
136
  thor (~> 1.0)
135
- rake (13.0.3)
136
- rb-fsevent (0.10.4)
137
+ rake (13.0.6)
138
+ rb-fsevent (0.11.0)
137
139
  rb-inotify (0.10.1)
138
140
  ffi (~> 1.0)
139
141
  request_store (1.5.0)
@@ -168,19 +170,20 @@ GEM
168
170
  activemodel (>= 6.0.0)
169
171
  bindex (>= 0.4.0)
170
172
  railties (>= 6.0.0)
171
- websocket-driver (0.7.3)
173
+ websocket-driver (0.7.5)
172
174
  websocket-extensions (>= 0.1.0)
173
175
  websocket-extensions (0.1.5)
174
176
  zeitwerk (2.4.2)
175
177
 
176
178
  PLATFORMS
177
179
  x86_64-darwin-20
180
+ x86_64-linux
178
181
 
179
182
  DEPENDENCIES
180
183
  byebug
181
184
  jbuilder (~> 2.7)
182
185
  listen (~> 3.3)
183
- mobility (~> 1.1)
186
+ mobility (~> 1.2)
184
187
  mobility-actiontext!
185
188
  puma (~> 5.0)
186
189
  rack-mini-profiler (~> 2.0)
@@ -192,7 +195,7 @@ DEPENDENCIES
192
195
  web-console (>= 4.1.0)
193
196
 
194
197
  RUBY VERSION
195
- ruby 3.0.0p0
198
+ ruby 3.0.2p107
196
199
 
197
200
  BUNDLED WITH
198
- 2.2.5
201
+ 2.2.23
@@ -104,5 +104,11 @@ module Mobility
104
104
  skip('FIXME: this should execute no queries')
105
105
  end
106
106
  end
107
+
108
+ test 'post is being destroyed' do
109
+ assert_difference ->{Mobility::Backends::ActionText::RichTextTranslation.count}, -4 do
110
+ assert posts(:one).destroy
111
+ end
112
+ end
107
113
  end
108
114
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobility-actiontext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Dubois
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-03 00:00:00.000000000 Z
11
+ date: 2021-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mobility
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubygems_version: 3.2.3
157
+ rubygems_version: 3.2.23
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Translate Rails Action Text rich text with Mobility.