simple_discussion 1.2.0 → 1.3.0

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