mobility-actiontext 0.1.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +50 -104
- data/README.md +2 -2
- data/dependabot.yml +6 -0
- data/lib/mobility/action_text/version.rb +1 -1
- data/lib/mobility/backends/action_text.rb +15 -0
- data/mobility-actiontext.gemspec +3 -3
- data/test_app/Gemfile +3 -11
- data/test_app/Gemfile.lock +124 -118
- data/test_app/test/mobility_action_text_test.rb +6 -0
- metadata +15 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ca31827abf078eae807f5aafef4588dad78859d1fe3fea3c753dc311726c533
|
4
|
+
data.tar.gz: 723483c8e2091d470dbb0ae86f33bc945a7e4eeac87770ecf22c1f2e447f0f0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d58add532f751dade73185768f816a2b1ad16b1ac794b74b78997ed62c20d05b0e4a816515bf71c949fe3782bb78ffa8e9a6f4ac1fea3f47659263d8f894685
|
7
|
+
data.tar.gz: 9cf9d1bf167b0da2feb2513588818789bf998a16291d919f58fc39794172e05fda3853cf35085ffb811fef918d2ccf8d7aed4dc12f1fa3a230a3f3b095c7bf36
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/pkg
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.1.0
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
# Mobility Action Text Changelog
|
2
2
|
|
3
|
-
### 0.
|
3
|
+
### 0.5.0 (2022-02-13)
|
4
|
+
- Require only actiontext in gemspec dependencies ([#20](https://github.com/sedubois/mobility-actiontext/pull/20)).
|
5
|
+
|
6
|
+
### 0.4.0 (2021-12-20)
|
7
|
+
- Add Rails 7 compatibility.
|
8
|
+
|
9
|
+
### 0.3.0 (2021-10-07)
|
10
|
+
- Fix destroying records ([#12](https://github.com/sedubois/mobility-actiontext/pull/12)).
|
11
|
+
|
12
|
+
### 0.2.0 (2021-04-03)
|
13
|
+
- Widen Ruby compatibility to >= 2.5 ([#6](https://github.com/sedubois/mobility-actiontext/pull/6)).
|
14
|
+
|
15
|
+
### 0.1.0 (2021-02-26)
|
4
16
|
- Initial release.
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,152 +1,98 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mobility-actiontext (0.
|
5
|
-
|
6
|
-
|
4
|
+
mobility-actiontext (0.5.0)
|
5
|
+
actiontext (>= 6.0)
|
6
|
+
mobility (~> 1.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
12
|
-
|
13
|
-
activesupport (=
|
14
|
-
|
15
|
-
websocket-driver (>= 0.6.1)
|
16
|
-
actionmailbox (6.1.3)
|
17
|
-
actionpack (= 6.1.3)
|
18
|
-
activejob (= 6.1.3)
|
19
|
-
activerecord (= 6.1.3)
|
20
|
-
activestorage (= 6.1.3)
|
21
|
-
activesupport (= 6.1.3)
|
22
|
-
mail (>= 2.7.1)
|
23
|
-
actionmailer (6.1.3)
|
24
|
-
actionpack (= 6.1.3)
|
25
|
-
actionview (= 6.1.3)
|
26
|
-
activejob (= 6.1.3)
|
27
|
-
activesupport (= 6.1.3)
|
28
|
-
mail (~> 2.5, >= 2.5.4)
|
29
|
-
rails-dom-testing (~> 2.0)
|
30
|
-
actionpack (6.1.3)
|
31
|
-
actionview (= 6.1.3)
|
32
|
-
activesupport (= 6.1.3)
|
33
|
-
rack (~> 2.0, >= 2.0.9)
|
11
|
+
actionpack (7.0.2.2)
|
12
|
+
actionview (= 7.0.2.2)
|
13
|
+
activesupport (= 7.0.2.2)
|
14
|
+
rack (~> 2.0, >= 2.2.0)
|
34
15
|
rack-test (>= 0.6.3)
|
35
16
|
rails-dom-testing (~> 2.0)
|
36
17
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
37
|
-
actiontext (
|
38
|
-
actionpack (=
|
39
|
-
activerecord (=
|
40
|
-
activestorage (=
|
41
|
-
activesupport (=
|
18
|
+
actiontext (7.0.2.2)
|
19
|
+
actionpack (= 7.0.2.2)
|
20
|
+
activerecord (= 7.0.2.2)
|
21
|
+
activestorage (= 7.0.2.2)
|
22
|
+
activesupport (= 7.0.2.2)
|
23
|
+
globalid (>= 0.6.0)
|
42
24
|
nokogiri (>= 1.8.5)
|
43
|
-
actionview (
|
44
|
-
activesupport (=
|
25
|
+
actionview (7.0.2.2)
|
26
|
+
activesupport (= 7.0.2.2)
|
45
27
|
builder (~> 3.1)
|
46
28
|
erubi (~> 1.4)
|
47
29
|
rails-dom-testing (~> 2.0)
|
48
30
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
-
activejob (
|
50
|
-
activesupport (=
|
31
|
+
activejob (7.0.2.2)
|
32
|
+
activesupport (= 7.0.2.2)
|
51
33
|
globalid (>= 0.3.6)
|
52
|
-
activemodel (
|
53
|
-
activesupport (=
|
54
|
-
activerecord (
|
55
|
-
activemodel (=
|
56
|
-
activesupport (=
|
57
|
-
activestorage (
|
58
|
-
actionpack (=
|
59
|
-
activejob (=
|
60
|
-
activerecord (=
|
61
|
-
activesupport (=
|
62
|
-
marcel (~> 0
|
63
|
-
|
64
|
-
activesupport (
|
34
|
+
activemodel (7.0.2.2)
|
35
|
+
activesupport (= 7.0.2.2)
|
36
|
+
activerecord (7.0.2.2)
|
37
|
+
activemodel (= 7.0.2.2)
|
38
|
+
activesupport (= 7.0.2.2)
|
39
|
+
activestorage (7.0.2.2)
|
40
|
+
actionpack (= 7.0.2.2)
|
41
|
+
activejob (= 7.0.2.2)
|
42
|
+
activerecord (= 7.0.2.2)
|
43
|
+
activesupport (= 7.0.2.2)
|
44
|
+
marcel (~> 1.0)
|
45
|
+
mini_mime (>= 1.1.0)
|
46
|
+
activesupport (7.0.2.2)
|
65
47
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
66
48
|
i18n (>= 1.6, < 2)
|
67
49
|
minitest (>= 5.1)
|
68
50
|
tzinfo (~> 2.0)
|
69
|
-
zeitwerk (~> 2.3)
|
70
51
|
builder (3.2.4)
|
71
|
-
concurrent-ruby (1.1.
|
52
|
+
concurrent-ruby (1.1.9)
|
72
53
|
crass (1.0.6)
|
73
54
|
erubi (1.10.0)
|
74
|
-
globalid (0.
|
75
|
-
activesupport (>=
|
76
|
-
i18n (1.
|
55
|
+
globalid (1.0.0)
|
56
|
+
activesupport (>= 5.0)
|
57
|
+
i18n (1.9.1)
|
77
58
|
concurrent-ruby (~> 1.0)
|
78
|
-
loofah (2.
|
59
|
+
loofah (2.14.0)
|
79
60
|
crass (~> 1.0.2)
|
80
61
|
nokogiri (>= 1.5.9)
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
method_source (1.0.0)
|
86
|
-
mimemagic (0.3.5)
|
87
|
-
mini_mime (1.0.2)
|
88
|
-
minitest (5.14.3)
|
89
|
-
mobility (1.1.1)
|
62
|
+
marcel (1.0.2)
|
63
|
+
mini_mime (1.1.2)
|
64
|
+
minitest (5.15.0)
|
65
|
+
mobility (1.2.5)
|
90
66
|
i18n (>= 0.6.10, < 2)
|
91
67
|
request_store (~> 1.0)
|
92
|
-
|
93
|
-
nokogiri (1.11.1-x86_64-darwin)
|
68
|
+
nokogiri (1.13.1-x86_64-darwin)
|
94
69
|
racc (~> 1.4)
|
95
|
-
|
70
|
+
nokogiri (1.13.1-x86_64-linux)
|
71
|
+
racc (~> 1.4)
|
72
|
+
racc (1.6.0)
|
96
73
|
rack (2.2.3)
|
97
74
|
rack-test (1.1.0)
|
98
75
|
rack (>= 1.0, < 3)
|
99
|
-
rails (6.1.3)
|
100
|
-
actioncable (= 6.1.3)
|
101
|
-
actionmailbox (= 6.1.3)
|
102
|
-
actionmailer (= 6.1.3)
|
103
|
-
actionpack (= 6.1.3)
|
104
|
-
actiontext (= 6.1.3)
|
105
|
-
actionview (= 6.1.3)
|
106
|
-
activejob (= 6.1.3)
|
107
|
-
activemodel (= 6.1.3)
|
108
|
-
activerecord (= 6.1.3)
|
109
|
-
activestorage (= 6.1.3)
|
110
|
-
activesupport (= 6.1.3)
|
111
|
-
bundler (>= 1.15.0)
|
112
|
-
railties (= 6.1.3)
|
113
|
-
sprockets-rails (>= 2.0.0)
|
114
76
|
rails-dom-testing (2.0.3)
|
115
77
|
activesupport (>= 4.2.0)
|
116
78
|
nokogiri (>= 1.6)
|
117
|
-
rails-html-sanitizer (1.
|
79
|
+
rails-html-sanitizer (1.4.2)
|
118
80
|
loofah (~> 2.3)
|
119
|
-
|
120
|
-
|
121
|
-
activesupport (= 6.1.3)
|
122
|
-
method_source
|
123
|
-
rake (>= 0.8.7)
|
124
|
-
thor (~> 1.0)
|
125
|
-
rake (13.0.3)
|
126
|
-
request_store (1.5.0)
|
81
|
+
rake (13.0.6)
|
82
|
+
request_store (1.5.1)
|
127
83
|
rack (>= 1.4)
|
128
|
-
sprockets (4.0.2)
|
129
|
-
concurrent-ruby (~> 1.0)
|
130
|
-
rack (> 1, < 3)
|
131
|
-
sprockets-rails (3.2.2)
|
132
|
-
actionpack (>= 4.0)
|
133
|
-
activesupport (>= 4.0)
|
134
|
-
sprockets (>= 3.0.0)
|
135
84
|
sqlite3 (1.4.2)
|
136
|
-
thor (1.1.0)
|
137
85
|
tzinfo (2.0.4)
|
138
86
|
concurrent-ruby (~> 1.0)
|
139
|
-
websocket-driver (0.7.3)
|
140
|
-
websocket-extensions (>= 0.1.0)
|
141
|
-
websocket-extensions (0.1.5)
|
142
|
-
zeitwerk (2.4.2)
|
143
87
|
|
144
88
|
PLATFORMS
|
145
|
-
x86_64-darwin
|
89
|
+
x86_64-darwin
|
90
|
+
x86_64-linux
|
146
91
|
|
147
92
|
DEPENDENCIES
|
148
93
|
mobility-actiontext!
|
94
|
+
rake (~> 13.0)
|
149
95
|
sqlite3 (~> 1.4)
|
150
96
|
|
151
97
|
BUNDLED WITH
|
152
|
-
2.
|
98
|
+
2.3.7
|
data/README.md
CHANGED
@@ -77,9 +77,9 @@ This is done through the `Mobility::Backends::ActionText::Translation` model ext
|
|
77
77
|
|
78
78
|
## Development
|
79
79
|
|
80
|
-
After checking out the repo, run `bundle install` to install dependencies. Then, run `
|
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
|
82
|
+
To release a new version, update `lib/mobility/action_text/version.rb` and `CHANGELOG.md`, run `bundle`, 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
|
|
data/dependabot.yml
ADDED
@@ -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|
|
data/mobility-actiontext.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'Translate Rails Action Text rich text with Mobility.'
|
12
12
|
spec.homepage = 'https://github.com/sedubois/mobility-actiontext'
|
13
13
|
spec.license = 'MIT'
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
17
|
spec.metadata['source_code_uri'] = 'https://github.com/sedubois/mobility-actiontext'
|
@@ -26,8 +26,8 @@ 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 '
|
30
|
-
spec.add_dependency '
|
29
|
+
spec.add_dependency 'actiontext', '>= 6.0'
|
30
|
+
spec.add_dependency 'mobility', '~> 1.2'
|
31
31
|
|
32
32
|
spec.add_development_dependency 'sqlite3', '~> 1.4'
|
33
33
|
end
|
data/test_app/Gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
3
|
|
4
|
-
ruby '3.
|
4
|
+
ruby '3.1.0'
|
5
5
|
|
6
6
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
7
|
-
gem 'rails', '~>
|
7
|
+
gem 'rails', '~> 7.0.0'
|
8
8
|
# Use sqlite3 as the database for Active Record
|
9
9
|
gem 'sqlite3', '~> 1.4'
|
10
10
|
# Use Puma as the app server
|
@@ -35,16 +35,8 @@ group :development do
|
|
35
35
|
gem 'listen', '~> 3.3'
|
36
36
|
end
|
37
37
|
|
38
|
-
group :test do
|
39
|
-
# Adds support for Capybara system testing and selenium driver
|
40
|
-
gem 'capybara', '>= 3.26'
|
41
|
-
gem 'selenium-webdriver'
|
42
|
-
# Easy installation and use of web drivers to run system tests with browsers
|
43
|
-
# gem 'webdrivers' # yields 'cannot load such file -- rexml/document'
|
44
|
-
end
|
45
|
-
|
46
38
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
47
39
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
48
40
|
|
49
|
-
gem "mobility", '~> 1.
|
41
|
+
gem "mobility", '~> 1.2'
|
50
42
|
gem "mobility-actiontext", path: '..'
|
data/test_app/Gemfile.lock
CHANGED
@@ -1,159 +1,169 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
mobility-actiontext (0.
|
5
|
-
|
6
|
-
|
4
|
+
mobility-actiontext (0.5.0)
|
5
|
+
actiontext (>= 6.0)
|
6
|
+
mobility (~> 1.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (
|
12
|
-
actionpack (=
|
13
|
-
activesupport (=
|
11
|
+
actioncable (7.0.2.2)
|
12
|
+
actionpack (= 7.0.2.2)
|
13
|
+
activesupport (= 7.0.2.2)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
|
-
actionmailbox (
|
17
|
-
actionpack (=
|
18
|
-
activejob (=
|
19
|
-
activerecord (=
|
20
|
-
activestorage (=
|
21
|
-
activesupport (=
|
16
|
+
actionmailbox (7.0.2.2)
|
17
|
+
actionpack (= 7.0.2.2)
|
18
|
+
activejob (= 7.0.2.2)
|
19
|
+
activerecord (= 7.0.2.2)
|
20
|
+
activestorage (= 7.0.2.2)
|
21
|
+
activesupport (= 7.0.2.2)
|
22
22
|
mail (>= 2.7.1)
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
net-imap
|
24
|
+
net-pop
|
25
|
+
net-smtp
|
26
|
+
actionmailer (7.0.2.2)
|
27
|
+
actionpack (= 7.0.2.2)
|
28
|
+
actionview (= 7.0.2.2)
|
29
|
+
activejob (= 7.0.2.2)
|
30
|
+
activesupport (= 7.0.2.2)
|
28
31
|
mail (~> 2.5, >= 2.5.4)
|
32
|
+
net-imap
|
33
|
+
net-pop
|
34
|
+
net-smtp
|
29
35
|
rails-dom-testing (~> 2.0)
|
30
|
-
actionpack (
|
31
|
-
actionview (=
|
32
|
-
activesupport (=
|
33
|
-
rack (~> 2.0, >= 2.0
|
36
|
+
actionpack (7.0.2.2)
|
37
|
+
actionview (= 7.0.2.2)
|
38
|
+
activesupport (= 7.0.2.2)
|
39
|
+
rack (~> 2.0, >= 2.2.0)
|
34
40
|
rack-test (>= 0.6.3)
|
35
41
|
rails-dom-testing (~> 2.0)
|
36
42
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
37
|
-
actiontext (
|
38
|
-
actionpack (=
|
39
|
-
activerecord (=
|
40
|
-
activestorage (=
|
41
|
-
activesupport (=
|
43
|
+
actiontext (7.0.2.2)
|
44
|
+
actionpack (= 7.0.2.2)
|
45
|
+
activerecord (= 7.0.2.2)
|
46
|
+
activestorage (= 7.0.2.2)
|
47
|
+
activesupport (= 7.0.2.2)
|
48
|
+
globalid (>= 0.6.0)
|
42
49
|
nokogiri (>= 1.8.5)
|
43
|
-
actionview (
|
44
|
-
activesupport (=
|
50
|
+
actionview (7.0.2.2)
|
51
|
+
activesupport (= 7.0.2.2)
|
45
52
|
builder (~> 3.1)
|
46
53
|
erubi (~> 1.4)
|
47
54
|
rails-dom-testing (~> 2.0)
|
48
55
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
-
activejob (
|
50
|
-
activesupport (=
|
56
|
+
activejob (7.0.2.2)
|
57
|
+
activesupport (= 7.0.2.2)
|
51
58
|
globalid (>= 0.3.6)
|
52
|
-
activemodel (
|
53
|
-
activesupport (=
|
54
|
-
activerecord (
|
55
|
-
activemodel (=
|
56
|
-
activesupport (=
|
57
|
-
activestorage (
|
58
|
-
actionpack (=
|
59
|
-
activejob (=
|
60
|
-
activerecord (=
|
61
|
-
activesupport (=
|
62
|
-
marcel (~> 0
|
63
|
-
|
64
|
-
activesupport (
|
59
|
+
activemodel (7.0.2.2)
|
60
|
+
activesupport (= 7.0.2.2)
|
61
|
+
activerecord (7.0.2.2)
|
62
|
+
activemodel (= 7.0.2.2)
|
63
|
+
activesupport (= 7.0.2.2)
|
64
|
+
activestorage (7.0.2.2)
|
65
|
+
actionpack (= 7.0.2.2)
|
66
|
+
activejob (= 7.0.2.2)
|
67
|
+
activerecord (= 7.0.2.2)
|
68
|
+
activesupport (= 7.0.2.2)
|
69
|
+
marcel (~> 1.0)
|
70
|
+
mini_mime (>= 1.1.0)
|
71
|
+
activesupport (7.0.2.2)
|
65
72
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
66
73
|
i18n (>= 1.6, < 2)
|
67
74
|
minitest (>= 5.1)
|
68
75
|
tzinfo (~> 2.0)
|
69
|
-
zeitwerk (~> 2.3)
|
70
|
-
addressable (2.7.0)
|
71
|
-
public_suffix (>= 2.0.2, < 5.0)
|
72
76
|
bindex (0.8.1)
|
73
77
|
builder (3.2.4)
|
74
78
|
byebug (11.1.3)
|
75
|
-
|
76
|
-
addressable
|
77
|
-
mini_mime (>= 0.1.3)
|
78
|
-
nokogiri (~> 1.8)
|
79
|
-
rack (>= 1.6.0)
|
80
|
-
rack-test (>= 0.6.3)
|
81
|
-
regexp_parser (>= 1.5, < 3.0)
|
82
|
-
xpath (~> 3.2)
|
83
|
-
childprocess (3.0.0)
|
84
|
-
concurrent-ruby (1.1.8)
|
79
|
+
concurrent-ruby (1.1.9)
|
85
80
|
crass (1.0.6)
|
81
|
+
digest (3.1.0)
|
86
82
|
erubi (1.10.0)
|
87
|
-
ffi (1.
|
88
|
-
globalid (0.
|
89
|
-
activesupport (>=
|
90
|
-
i18n (1.
|
83
|
+
ffi (1.15.5)
|
84
|
+
globalid (1.0.0)
|
85
|
+
activesupport (>= 5.0)
|
86
|
+
i18n (1.9.1)
|
91
87
|
concurrent-ruby (~> 1.0)
|
92
|
-
|
88
|
+
io-wait (0.2.1)
|
89
|
+
jbuilder (2.11.5)
|
90
|
+
actionview (>= 5.0.0)
|
93
91
|
activesupport (>= 5.0.0)
|
94
|
-
listen (3.
|
92
|
+
listen (3.7.1)
|
95
93
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
96
94
|
rb-inotify (~> 0.9, >= 0.9.10)
|
97
|
-
loofah (2.
|
95
|
+
loofah (2.14.0)
|
98
96
|
crass (~> 1.0.2)
|
99
97
|
nokogiri (>= 1.5.9)
|
100
98
|
mail (2.7.1)
|
101
99
|
mini_mime (>= 0.1.1)
|
102
|
-
marcel (0.
|
103
|
-
mimemagic (~> 0.3.2)
|
100
|
+
marcel (1.0.2)
|
104
101
|
method_source (1.0.0)
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
mobility (1.1.1)
|
102
|
+
mini_mime (1.1.2)
|
103
|
+
minitest (5.15.0)
|
104
|
+
mobility (1.2.5)
|
109
105
|
i18n (>= 0.6.10, < 2)
|
110
106
|
request_store (~> 1.0)
|
111
|
-
|
112
|
-
|
107
|
+
net-imap (0.2.3)
|
108
|
+
digest
|
109
|
+
net-protocol
|
110
|
+
strscan
|
111
|
+
net-pop (0.1.1)
|
112
|
+
digest
|
113
|
+
net-protocol
|
114
|
+
timeout
|
115
|
+
net-protocol (0.1.2)
|
116
|
+
io-wait
|
117
|
+
timeout
|
118
|
+
net-smtp (0.3.1)
|
119
|
+
digest
|
120
|
+
net-protocol
|
121
|
+
timeout
|
122
|
+
nio4r (2.5.8)
|
123
|
+
nokogiri (1.13.1-x86_64-darwin)
|
124
|
+
racc (~> 1.4)
|
125
|
+
nokogiri (1.13.1-x86_64-linux)
|
113
126
|
racc (~> 1.4)
|
114
|
-
|
115
|
-
puma (5.2.1)
|
127
|
+
puma (5.6.2)
|
116
128
|
nio4r (~> 2.0)
|
117
|
-
racc (1.
|
129
|
+
racc (1.6.0)
|
118
130
|
rack (2.2.3)
|
119
|
-
rack-mini-profiler (2.3.
|
131
|
+
rack-mini-profiler (2.3.3)
|
120
132
|
rack (>= 1.2.0)
|
121
133
|
rack-test (1.1.0)
|
122
134
|
rack (>= 1.0, < 3)
|
123
|
-
rails (
|
124
|
-
actioncable (=
|
125
|
-
actionmailbox (=
|
126
|
-
actionmailer (=
|
127
|
-
actionpack (=
|
128
|
-
actiontext (=
|
129
|
-
actionview (=
|
130
|
-
activejob (=
|
131
|
-
activemodel (=
|
132
|
-
activerecord (=
|
133
|
-
activestorage (=
|
134
|
-
activesupport (=
|
135
|
+
rails (7.0.2.2)
|
136
|
+
actioncable (= 7.0.2.2)
|
137
|
+
actionmailbox (= 7.0.2.2)
|
138
|
+
actionmailer (= 7.0.2.2)
|
139
|
+
actionpack (= 7.0.2.2)
|
140
|
+
actiontext (= 7.0.2.2)
|
141
|
+
actionview (= 7.0.2.2)
|
142
|
+
activejob (= 7.0.2.2)
|
143
|
+
activemodel (= 7.0.2.2)
|
144
|
+
activerecord (= 7.0.2.2)
|
145
|
+
activestorage (= 7.0.2.2)
|
146
|
+
activesupport (= 7.0.2.2)
|
135
147
|
bundler (>= 1.15.0)
|
136
|
-
railties (=
|
137
|
-
sprockets-rails (>= 2.0.0)
|
148
|
+
railties (= 7.0.2.2)
|
138
149
|
rails-dom-testing (2.0.3)
|
139
150
|
activesupport (>= 4.2.0)
|
140
151
|
nokogiri (>= 1.6)
|
141
|
-
rails-html-sanitizer (1.
|
152
|
+
rails-html-sanitizer (1.4.2)
|
142
153
|
loofah (~> 2.3)
|
143
|
-
railties (
|
144
|
-
actionpack (=
|
145
|
-
activesupport (=
|
154
|
+
railties (7.0.2.2)
|
155
|
+
actionpack (= 7.0.2.2)
|
156
|
+
activesupport (= 7.0.2.2)
|
146
157
|
method_source
|
147
|
-
rake (>=
|
158
|
+
rake (>= 12.2)
|
148
159
|
thor (~> 1.0)
|
149
|
-
|
150
|
-
|
160
|
+
zeitwerk (~> 2.5)
|
161
|
+
rake (13.0.6)
|
162
|
+
rb-fsevent (0.11.1)
|
151
163
|
rb-inotify (0.10.1)
|
152
164
|
ffi (~> 1.0)
|
153
|
-
|
154
|
-
request_store (1.5.0)
|
165
|
+
request_store (1.5.1)
|
155
166
|
rack (>= 1.4)
|
156
|
-
rubyzip (2.3.0)
|
157
167
|
sass-rails (6.0.0)
|
158
168
|
sassc-rails (~> 2.1, >= 2.1.1)
|
159
169
|
sassc (2.4.0)
|
@@ -164,58 +174,54 @@ GEM
|
|
164
174
|
sprockets (> 3.0)
|
165
175
|
sprockets-rails
|
166
176
|
tilt
|
167
|
-
selenium-webdriver (3.142.7)
|
168
|
-
childprocess (>= 0.5, < 4.0)
|
169
|
-
rubyzip (>= 1.2.2)
|
170
177
|
sprockets (4.0.2)
|
171
178
|
concurrent-ruby (~> 1.0)
|
172
179
|
rack (> 1, < 3)
|
173
|
-
sprockets-rails (3.
|
174
|
-
actionpack (>=
|
175
|
-
activesupport (>=
|
180
|
+
sprockets-rails (3.4.2)
|
181
|
+
actionpack (>= 5.2)
|
182
|
+
activesupport (>= 5.2)
|
176
183
|
sprockets (>= 3.0.0)
|
177
184
|
sqlite3 (1.4.2)
|
178
|
-
|
185
|
+
strscan (3.0.1)
|
186
|
+
thor (1.2.1)
|
179
187
|
tilt (2.0.10)
|
188
|
+
timeout (0.2.0)
|
180
189
|
turbolinks (5.2.1)
|
181
190
|
turbolinks-source (~> 5.2)
|
182
191
|
turbolinks-source (5.2.0)
|
183
192
|
tzinfo (2.0.4)
|
184
193
|
concurrent-ruby (~> 1.0)
|
185
|
-
web-console (4.
|
194
|
+
web-console (4.2.0)
|
186
195
|
actionview (>= 6.0.0)
|
187
196
|
activemodel (>= 6.0.0)
|
188
197
|
bindex (>= 0.4.0)
|
189
198
|
railties (>= 6.0.0)
|
190
|
-
websocket-driver (0.7.
|
199
|
+
websocket-driver (0.7.5)
|
191
200
|
websocket-extensions (>= 0.1.0)
|
192
201
|
websocket-extensions (0.1.5)
|
193
|
-
|
194
|
-
nokogiri (~> 1.8)
|
195
|
-
zeitwerk (2.4.2)
|
202
|
+
zeitwerk (2.5.4)
|
196
203
|
|
197
204
|
PLATFORMS
|
198
|
-
x86_64-darwin
|
205
|
+
x86_64-darwin
|
206
|
+
x86_64-linux
|
199
207
|
|
200
208
|
DEPENDENCIES
|
201
209
|
byebug
|
202
|
-
capybara (>= 3.26)
|
203
210
|
jbuilder (~> 2.7)
|
204
211
|
listen (~> 3.3)
|
205
|
-
mobility (~> 1.
|
212
|
+
mobility (~> 1.2)
|
206
213
|
mobility-actiontext!
|
207
214
|
puma (~> 5.0)
|
208
215
|
rack-mini-profiler (~> 2.0)
|
209
|
-
rails (~>
|
216
|
+
rails (~> 7.0.0)
|
210
217
|
sass-rails (>= 6)
|
211
|
-
selenium-webdriver
|
212
218
|
sqlite3 (~> 1.4)
|
213
219
|
turbolinks (~> 5)
|
214
220
|
tzinfo-data
|
215
221
|
web-console (>= 4.1.0)
|
216
222
|
|
217
223
|
RUBY VERSION
|
218
|
-
ruby 3.
|
224
|
+
ruby 3.1.0p0
|
219
225
|
|
220
226
|
BUNDLED WITH
|
221
|
-
2.
|
227
|
+
2.3.7
|
@@ -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,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobility-actiontext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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:
|
11
|
+
date: 2022-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: actiontext
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
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: '
|
26
|
+
version: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: mobility
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,9 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".github/dependabot.yml"
|
62
63
|
- ".github/workflows/main.yml"
|
64
|
+
- ".gitignore"
|
63
65
|
- ".ruby-version"
|
64
66
|
- CHANGELOG.md
|
65
67
|
- Gemfile
|
@@ -67,6 +69,7 @@ files:
|
|
67
69
|
- LICENSE.txt
|
68
70
|
- README.md
|
69
71
|
- Rakefile
|
72
|
+
- dependabot.yml
|
70
73
|
- lib/mobility/action_text.rb
|
71
74
|
- lib/mobility/action_text/version.rb
|
72
75
|
- lib/mobility/backends/action_text.rb
|
@@ -144,14 +147,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
147
|
requirements:
|
145
148
|
- - ">="
|
146
149
|
- !ruby/object:Gem::Version
|
147
|
-
version: 2.
|
150
|
+
version: 2.5.0
|
148
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
152
|
requirements:
|
150
153
|
- - ">="
|
151
154
|
- !ruby/object:Gem::Version
|
152
155
|
version: '0'
|
153
156
|
requirements: []
|
154
|
-
rubygems_version: 3.
|
157
|
+
rubygems_version: 3.3.3
|
155
158
|
signing_key:
|
156
159
|
specification_version: 4
|
157
160
|
summary: Translate Rails Action Text rich text with Mobility.
|