simple_discussion 0.9.4 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +5 -5
  2. data/.github/FUNDING.yml +12 -0
  3. data/.github/workflows/ci.yml +44 -0
  4. data/Appraisals +16 -0
  5. data/CHANGELOG.md +13 -0
  6. data/Gemfile +8 -1
  7. data/README.md +5 -3
  8. data/Rakefile +25 -3
  9. data/app/assets/stylesheets/simple_discussion.scss +40 -2
  10. data/app/controllers/simple_discussion/application_controller.rb +15 -3
  11. data/app/controllers/simple_discussion/forum_categories_controller.rb +5 -5
  12. data/app/controllers/simple_discussion/forum_posts_controller.rb +20 -14
  13. data/app/controllers/simple_discussion/forum_threads_controller.rb +10 -10
  14. data/app/controllers/simple_discussion/notifications_controller.rb +3 -3
  15. data/app/helpers/simple_discussion/forum_posts_helper.rb +7 -1
  16. data/app/helpers/simple_discussion/forum_threads_helper.rb +4 -4
  17. data/app/jobs/simple_discussion/forum_post_notification_job.rb +3 -3
  18. data/app/jobs/simple_discussion/forum_thread_notification_job.rb +2 -2
  19. data/app/mailers/simple_discussion/user_mailer.rb +4 -4
  20. data/app/models/forum_category.rb +1 -1
  21. data/app/models/forum_post.rb +1 -2
  22. data/app/models/forum_subscription.rb +4 -4
  23. data/app/models/forum_thread.rb +12 -12
  24. data/app/views/layouts/simple_discussion.html.erb +61 -18
  25. data/app/views/simple_discussion/forum_posts/_form.html.erb +2 -2
  26. data/app/views/simple_discussion/forum_posts/_forum_post.html.erb +16 -9
  27. data/app/views/simple_discussion/forum_posts/edit.html.erb +7 -3
  28. data/app/views/simple_discussion/forum_threads/_form.html.erb +8 -8
  29. data/app/views/simple_discussion/forum_threads/_forum_thread.html.erb +5 -5
  30. data/app/views/simple_discussion/forum_threads/edit.html.erb +1 -1
  31. data/app/views/simple_discussion/forum_threads/index.html.erb +11 -9
  32. data/app/views/simple_discussion/forum_threads/new.html.erb +1 -1
  33. data/app/views/simple_discussion/forum_threads/show.html.erb +15 -10
  34. data/bin/rails +14 -0
  35. data/config/locales/en.yml +46 -0
  36. data/config/locales/es.yml +41 -0
  37. data/config/locales/fr.yml +47 -0
  38. data/db/migrate/20170417012930_create_forum_categories.rb +6 -6
  39. data/db/migrate/20170417012931_create_forum_threads.rb +1 -1
  40. data/db/migrate/20170417012932_create_forum_posts.rb +3 -3
  41. data/db/migrate/20170417012933_create_forum_subscriptions.rb +2 -2
  42. data/gemfiles/.bundle/config +2 -0
  43. data/gemfiles/rails_5_2.gemfile +12 -0
  44. data/gemfiles/rails_5_2.gemfile.lock +191 -0
  45. data/gemfiles/rails_6.gemfile +12 -0
  46. data/gemfiles/rails_6.gemfile.lock +207 -0
  47. data/gemfiles/rails_6_1.gemfile +12 -0
  48. data/gemfiles/rails_6_1.gemfile.lock +210 -0
  49. data/gemfiles/rails_master.gemfile +12 -0
  50. data/gemfiles/rails_master.gemfile.lock +222 -0
  51. data/lib/generators/simple_discussion/controllers_generator.rb +2 -2
  52. data/lib/generators/simple_discussion/helpers_generator.rb +2 -2
  53. data/lib/generators/simple_discussion/views_generator.rb +2 -2
  54. data/lib/simple_discussion.rb +8 -9
  55. data/lib/simple_discussion/engine.rb +1 -1
  56. data/lib/simple_discussion/slack.rb +6 -6
  57. data/lib/simple_discussion/version.rb +1 -1
  58. data/lib/simple_discussion/will_paginate.rb +12 -12
  59. data/simple_discussion.gemspec +15 -17
  60. metadata +27 -25
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "standardrb"
7
+ gem "devise"
8
+ gem "puma"
9
+ gem "sqlite3"
10
+ gem "rails", "~> 6.0.0"
11
+
12
+ gemspec path: "../"
@@ -0,0 +1,207 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ simple_discussion (1.3.0)
5
+ font-awesome-sass (>= 5.13.0)
6
+ friendly_id (>= 5.2.0)
7
+ rails (>= 4.2)
8
+ will_paginate (>= 3.1.0)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actioncable (6.0.3.6)
14
+ actionpack (= 6.0.3.6)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailbox (6.0.3.6)
18
+ actionpack (= 6.0.3.6)
19
+ activejob (= 6.0.3.6)
20
+ activerecord (= 6.0.3.6)
21
+ activestorage (= 6.0.3.6)
22
+ activesupport (= 6.0.3.6)
23
+ mail (>= 2.7.1)
24
+ actionmailer (6.0.3.6)
25
+ actionpack (= 6.0.3.6)
26
+ actionview (= 6.0.3.6)
27
+ activejob (= 6.0.3.6)
28
+ mail (~> 2.5, >= 2.5.4)
29
+ rails-dom-testing (~> 2.0)
30
+ actionpack (6.0.3.6)
31
+ actionview (= 6.0.3.6)
32
+ activesupport (= 6.0.3.6)
33
+ rack (~> 2.0, >= 2.0.8)
34
+ rack-test (>= 0.6.3)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
+ actiontext (6.0.3.6)
38
+ actionpack (= 6.0.3.6)
39
+ activerecord (= 6.0.3.6)
40
+ activestorage (= 6.0.3.6)
41
+ activesupport (= 6.0.3.6)
42
+ nokogiri (>= 1.8.5)
43
+ actionview (6.0.3.6)
44
+ activesupport (= 6.0.3.6)
45
+ builder (~> 3.1)
46
+ erubi (~> 1.4)
47
+ rails-dom-testing (~> 2.0)
48
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
+ activejob (6.0.3.6)
50
+ activesupport (= 6.0.3.6)
51
+ globalid (>= 0.3.6)
52
+ activemodel (6.0.3.6)
53
+ activesupport (= 6.0.3.6)
54
+ activerecord (6.0.3.6)
55
+ activemodel (= 6.0.3.6)
56
+ activesupport (= 6.0.3.6)
57
+ activestorage (6.0.3.6)
58
+ actionpack (= 6.0.3.6)
59
+ activejob (= 6.0.3.6)
60
+ activerecord (= 6.0.3.6)
61
+ marcel (~> 1.0.0)
62
+ activesupport (6.0.3.6)
63
+ concurrent-ruby (~> 1.0, >= 1.0.2)
64
+ i18n (>= 0.7, < 2)
65
+ minitest (~> 5.1)
66
+ tzinfo (~> 1.1)
67
+ zeitwerk (~> 2.2, >= 2.2.2)
68
+ appraisal (2.4.0)
69
+ bundler
70
+ rake
71
+ thor (>= 0.14.0)
72
+ ast (2.4.2)
73
+ bcrypt (3.1.16)
74
+ builder (3.2.4)
75
+ concurrent-ruby (1.1.8)
76
+ crass (1.0.6)
77
+ devise (4.7.3)
78
+ bcrypt (~> 3.0)
79
+ orm_adapter (~> 0.1)
80
+ railties (>= 4.1.0)
81
+ responders
82
+ warden (~> 1.2.3)
83
+ erubi (1.10.0)
84
+ ffi (1.15.0)
85
+ font-awesome-sass (5.15.1)
86
+ sassc (>= 1.11)
87
+ friendly_id (5.4.2)
88
+ activerecord (>= 4.0.0)
89
+ globalid (0.4.2)
90
+ activesupport (>= 4.2.0)
91
+ i18n (1.8.10)
92
+ concurrent-ruby (~> 1.0)
93
+ loofah (2.9.0)
94
+ crass (~> 1.0.2)
95
+ nokogiri (>= 1.5.9)
96
+ mail (2.7.1)
97
+ mini_mime (>= 0.1.1)
98
+ marcel (1.0.0)
99
+ method_source (1.0.0)
100
+ mini_mime (1.0.3)
101
+ minitest (5.14.4)
102
+ nio4r (2.5.7)
103
+ nokogiri (1.11.2-x86_64-darwin)
104
+ racc (~> 1.4)
105
+ nokogiri (1.11.2-x86_64-linux)
106
+ racc (~> 1.4)
107
+ orm_adapter (0.5.0)
108
+ parallel (1.20.1)
109
+ parser (3.0.0.0)
110
+ ast (~> 2.4.1)
111
+ puma (5.2.2)
112
+ nio4r (~> 2.0)
113
+ racc (1.5.2)
114
+ rack (2.2.3)
115
+ rack-test (1.1.0)
116
+ rack (>= 1.0, < 3)
117
+ rails (6.0.3.6)
118
+ actioncable (= 6.0.3.6)
119
+ actionmailbox (= 6.0.3.6)
120
+ actionmailer (= 6.0.3.6)
121
+ actionpack (= 6.0.3.6)
122
+ actiontext (= 6.0.3.6)
123
+ actionview (= 6.0.3.6)
124
+ activejob (= 6.0.3.6)
125
+ activemodel (= 6.0.3.6)
126
+ activerecord (= 6.0.3.6)
127
+ activestorage (= 6.0.3.6)
128
+ activesupport (= 6.0.3.6)
129
+ bundler (>= 1.3.0)
130
+ railties (= 6.0.3.6)
131
+ sprockets-rails (>= 2.0.0)
132
+ rails-dom-testing (2.0.3)
133
+ activesupport (>= 4.2.0)
134
+ nokogiri (>= 1.6)
135
+ rails-html-sanitizer (1.3.0)
136
+ loofah (~> 2.3)
137
+ railties (6.0.3.6)
138
+ actionpack (= 6.0.3.6)
139
+ activesupport (= 6.0.3.6)
140
+ method_source
141
+ rake (>= 0.8.7)
142
+ thor (>= 0.20.3, < 2.0)
143
+ rainbow (3.0.0)
144
+ rake (13.0.3)
145
+ regexp_parser (2.1.1)
146
+ responders (3.0.1)
147
+ actionpack (>= 5.0)
148
+ railties (>= 5.0)
149
+ rexml (3.2.4)
150
+ rubocop (1.11.0)
151
+ parallel (~> 1.10)
152
+ parser (>= 3.0.0.0)
153
+ rainbow (>= 2.2.2, < 4.0)
154
+ regexp_parser (>= 1.8, < 3.0)
155
+ rexml
156
+ rubocop-ast (>= 1.2.0, < 2.0)
157
+ ruby-progressbar (~> 1.7)
158
+ unicode-display_width (>= 1.4.0, < 3.0)
159
+ rubocop-ast (1.4.1)
160
+ parser (>= 2.7.1.5)
161
+ rubocop-performance (1.10.1)
162
+ rubocop (>= 0.90.0, < 2.0)
163
+ rubocop-ast (>= 0.4.0)
164
+ ruby-progressbar (1.11.0)
165
+ sassc (2.4.0)
166
+ ffi (~> 1.9)
167
+ sprockets (4.0.2)
168
+ concurrent-ruby (~> 1.0)
169
+ rack (> 1, < 3)
170
+ sprockets-rails (3.2.2)
171
+ actionpack (>= 4.0)
172
+ activesupport (>= 4.0)
173
+ sprockets (>= 3.0.0)
174
+ sqlite3 (1.4.2)
175
+ standard (1.0.4)
176
+ rubocop (= 1.11.0)
177
+ rubocop-performance (= 1.10.1)
178
+ standardrb (1.0.0)
179
+ standard
180
+ thor (1.1.0)
181
+ thread_safe (0.3.6)
182
+ tzinfo (1.2.9)
183
+ thread_safe (~> 0.1)
184
+ unicode-display_width (2.0.0)
185
+ warden (1.2.9)
186
+ rack (>= 2.0.9)
187
+ websocket-driver (0.7.3)
188
+ websocket-extensions (>= 0.1.0)
189
+ websocket-extensions (0.1.5)
190
+ will_paginate (3.3.0)
191
+ zeitwerk (2.4.2)
192
+
193
+ PLATFORMS
194
+ x86_64-darwin-20
195
+ x86_64-linux
196
+
197
+ DEPENDENCIES
198
+ appraisal
199
+ devise
200
+ puma
201
+ rails (~> 6.0.0)
202
+ simple_discussion!
203
+ sqlite3
204
+ standardrb
205
+
206
+ BUNDLED WITH
207
+ 2.2.15
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "standardrb"
7
+ gem "devise"
8
+ gem "puma"
9
+ gem "sqlite3"
10
+ gem "rails", "~> 6.1.0"
11
+
12
+ gemspec path: "../"
@@ -0,0 +1,210 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ simple_discussion (1.3.0)
5
+ font-awesome-sass (>= 5.13.0)
6
+ friendly_id (>= 5.2.0)
7
+ rails (>= 4.2)
8
+ will_paginate (>= 3.1.0)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actioncable (6.1.3.1)
14
+ actionpack (= 6.1.3.1)
15
+ activesupport (= 6.1.3.1)
16
+ nio4r (~> 2.0)
17
+ websocket-driver (>= 0.6.1)
18
+ actionmailbox (6.1.3.1)
19
+ actionpack (= 6.1.3.1)
20
+ activejob (= 6.1.3.1)
21
+ activerecord (= 6.1.3.1)
22
+ activestorage (= 6.1.3.1)
23
+ activesupport (= 6.1.3.1)
24
+ mail (>= 2.7.1)
25
+ actionmailer (6.1.3.1)
26
+ actionpack (= 6.1.3.1)
27
+ actionview (= 6.1.3.1)
28
+ activejob (= 6.1.3.1)
29
+ activesupport (= 6.1.3.1)
30
+ mail (~> 2.5, >= 2.5.4)
31
+ rails-dom-testing (~> 2.0)
32
+ actionpack (6.1.3.1)
33
+ actionview (= 6.1.3.1)
34
+ activesupport (= 6.1.3.1)
35
+ rack (~> 2.0, >= 2.0.9)
36
+ rack-test (>= 0.6.3)
37
+ rails-dom-testing (~> 2.0)
38
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
+ actiontext (6.1.3.1)
40
+ actionpack (= 6.1.3.1)
41
+ activerecord (= 6.1.3.1)
42
+ activestorage (= 6.1.3.1)
43
+ activesupport (= 6.1.3.1)
44
+ nokogiri (>= 1.8.5)
45
+ actionview (6.1.3.1)
46
+ activesupport (= 6.1.3.1)
47
+ builder (~> 3.1)
48
+ erubi (~> 1.4)
49
+ rails-dom-testing (~> 2.0)
50
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
+ activejob (6.1.3.1)
52
+ activesupport (= 6.1.3.1)
53
+ globalid (>= 0.3.6)
54
+ activemodel (6.1.3.1)
55
+ activesupport (= 6.1.3.1)
56
+ activerecord (6.1.3.1)
57
+ activemodel (= 6.1.3.1)
58
+ activesupport (= 6.1.3.1)
59
+ activestorage (6.1.3.1)
60
+ actionpack (= 6.1.3.1)
61
+ activejob (= 6.1.3.1)
62
+ activerecord (= 6.1.3.1)
63
+ activesupport (= 6.1.3.1)
64
+ marcel (~> 1.0.0)
65
+ mini_mime (~> 1.0.2)
66
+ activesupport (6.1.3.1)
67
+ concurrent-ruby (~> 1.0, >= 1.0.2)
68
+ i18n (>= 1.6, < 2)
69
+ minitest (>= 5.1)
70
+ tzinfo (~> 2.0)
71
+ zeitwerk (~> 2.3)
72
+ appraisal (2.4.0)
73
+ bundler
74
+ rake
75
+ thor (>= 0.14.0)
76
+ ast (2.4.2)
77
+ bcrypt (3.1.16)
78
+ builder (3.2.4)
79
+ concurrent-ruby (1.1.8)
80
+ crass (1.0.6)
81
+ devise (4.7.3)
82
+ bcrypt (~> 3.0)
83
+ orm_adapter (~> 0.1)
84
+ railties (>= 4.1.0)
85
+ responders
86
+ warden (~> 1.2.3)
87
+ erubi (1.10.0)
88
+ ffi (1.15.0)
89
+ font-awesome-sass (5.15.1)
90
+ sassc (>= 1.11)
91
+ friendly_id (5.4.2)
92
+ activerecord (>= 4.0.0)
93
+ globalid (0.4.2)
94
+ activesupport (>= 4.2.0)
95
+ i18n (1.8.10)
96
+ concurrent-ruby (~> 1.0)
97
+ loofah (2.9.0)
98
+ crass (~> 1.0.2)
99
+ nokogiri (>= 1.5.9)
100
+ mail (2.7.1)
101
+ mini_mime (>= 0.1.1)
102
+ marcel (1.0.0)
103
+ method_source (1.0.0)
104
+ mini_mime (1.0.3)
105
+ minitest (5.14.4)
106
+ nio4r (2.5.7)
107
+ nokogiri (1.11.2-x86_64-darwin)
108
+ racc (~> 1.4)
109
+ nokogiri (1.11.2-x86_64-linux)
110
+ racc (~> 1.4)
111
+ orm_adapter (0.5.0)
112
+ parallel (1.20.1)
113
+ parser (3.0.0.0)
114
+ ast (~> 2.4.1)
115
+ puma (5.2.2)
116
+ nio4r (~> 2.0)
117
+ racc (1.5.2)
118
+ rack (2.2.3)
119
+ rack-test (1.1.0)
120
+ rack (>= 1.0, < 3)
121
+ rails (6.1.3.1)
122
+ actioncable (= 6.1.3.1)
123
+ actionmailbox (= 6.1.3.1)
124
+ actionmailer (= 6.1.3.1)
125
+ actionpack (= 6.1.3.1)
126
+ actiontext (= 6.1.3.1)
127
+ actionview (= 6.1.3.1)
128
+ activejob (= 6.1.3.1)
129
+ activemodel (= 6.1.3.1)
130
+ activerecord (= 6.1.3.1)
131
+ activestorage (= 6.1.3.1)
132
+ activesupport (= 6.1.3.1)
133
+ bundler (>= 1.15.0)
134
+ railties (= 6.1.3.1)
135
+ sprockets-rails (>= 2.0.0)
136
+ rails-dom-testing (2.0.3)
137
+ activesupport (>= 4.2.0)
138
+ nokogiri (>= 1.6)
139
+ rails-html-sanitizer (1.3.0)
140
+ loofah (~> 2.3)
141
+ railties (6.1.3.1)
142
+ actionpack (= 6.1.3.1)
143
+ activesupport (= 6.1.3.1)
144
+ method_source
145
+ rake (>= 0.8.7)
146
+ thor (~> 1.0)
147
+ rainbow (3.0.0)
148
+ rake (13.0.3)
149
+ regexp_parser (2.1.1)
150
+ responders (3.0.1)
151
+ actionpack (>= 5.0)
152
+ railties (>= 5.0)
153
+ rexml (3.2.4)
154
+ rubocop (1.11.0)
155
+ parallel (~> 1.10)
156
+ parser (>= 3.0.0.0)
157
+ rainbow (>= 2.2.2, < 4.0)
158
+ regexp_parser (>= 1.8, < 3.0)
159
+ rexml
160
+ rubocop-ast (>= 1.2.0, < 2.0)
161
+ ruby-progressbar (~> 1.7)
162
+ unicode-display_width (>= 1.4.0, < 3.0)
163
+ rubocop-ast (1.4.1)
164
+ parser (>= 2.7.1.5)
165
+ rubocop-performance (1.10.1)
166
+ rubocop (>= 0.90.0, < 2.0)
167
+ rubocop-ast (>= 0.4.0)
168
+ ruby-progressbar (1.11.0)
169
+ sassc (2.4.0)
170
+ ffi (~> 1.9)
171
+ sprockets (4.0.2)
172
+ concurrent-ruby (~> 1.0)
173
+ rack (> 1, < 3)
174
+ sprockets-rails (3.2.2)
175
+ actionpack (>= 4.0)
176
+ activesupport (>= 4.0)
177
+ sprockets (>= 3.0.0)
178
+ sqlite3 (1.4.2)
179
+ standard (1.0.4)
180
+ rubocop (= 1.11.0)
181
+ rubocop-performance (= 1.10.1)
182
+ standardrb (1.0.0)
183
+ standard
184
+ thor (1.1.0)
185
+ tzinfo (2.0.4)
186
+ concurrent-ruby (~> 1.0)
187
+ unicode-display_width (2.0.0)
188
+ warden (1.2.9)
189
+ rack (>= 2.0.9)
190
+ websocket-driver (0.7.3)
191
+ websocket-extensions (>= 0.1.0)
192
+ websocket-extensions (0.1.5)
193
+ will_paginate (3.3.0)
194
+ zeitwerk (2.4.2)
195
+
196
+ PLATFORMS
197
+ x86_64-darwin-20
198
+ x86_64-linux
199
+
200
+ DEPENDENCIES
201
+ appraisal
202
+ devise
203
+ puma
204
+ rails (~> 6.1.0)
205
+ simple_discussion!
206
+ sqlite3
207
+ standardrb
208
+
209
+ BUNDLED WITH
210
+ 2.2.15
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "standardrb"
7
+ gem "devise", branch: "patch-2", git: "https://github.com/ghiculescu/devise"
8
+ gem "puma"
9
+ gem "sqlite3"
10
+ gem "rails", branch: "main", git: "https://github.com/rails/rails"
11
+
12
+ gemspec path: "../"