thredded 0.16.15 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -23
  3. data/app/assets/javascripts/thredded/components/preview_area.es6 +3 -1
  4. data/app/commands/thredded/create_messageboard.rb +2 -2
  5. data/app/controllers/concerns/thredded/render_preview.rb +6 -0
  6. data/app/controllers/thredded/application_controller.rb +5 -10
  7. data/app/controllers/thredded/topics_controller.rb +0 -6
  8. data/app/forms/thredded/private_topic_form.rb +1 -1
  9. data/app/helpers/thredded/application_helper.rb +3 -3
  10. data/app/helpers/thredded/urls_helper.rb +1 -1
  11. data/app/mailer_previews/thredded/base_mailer_preview.rb +5 -5
  12. data/app/models/concerns/thredded/friendly_id_reserved_words_and_pagination.rb +1 -1
  13. data/app/models/concerns/thredded/notifier_preference.rb +1 -1
  14. data/app/models/concerns/thredded/post_common.rb +8 -7
  15. data/app/models/concerns/thredded/topic_common.rb +1 -1
  16. data/app/models/concerns/thredded/user_topic_read_state_common.rb +5 -5
  17. data/app/models/thredded/messageboard.rb +3 -4
  18. data/app/models/thredded/notifications_for_followed_topics.rb +1 -1
  19. data/app/models/thredded/post.rb +3 -2
  20. data/app/models/thredded/post_moderation_record.rb +12 -13
  21. data/app/models/thredded/private_post.rb +2 -2
  22. data/app/models/thredded/private_topic.rb +4 -2
  23. data/app/models/thredded/topic.rb +2 -2
  24. data/app/models/thredded/user_detail.rb +1 -1
  25. data/app/models/thredded/user_extender.rb +1 -1
  26. data/app/view_models/thredded/post_view.rb +1 -0
  27. data/app/view_models/thredded/posts_page_view.rb +10 -9
  28. data/app/view_models/thredded/private_topics_page_view.rb +10 -6
  29. data/app/view_models/thredded/topic_posts_page_view.rb +16 -3
  30. data/app/view_models/thredded/topics_page_view.rb +9 -6
  31. data/app/views/layouts/thredded/application.html.erb +2 -2
  32. data/app/views/thredded/messageboards/_form.html.erb +3 -3
  33. data/app/views/thredded/moderation/_post_moderation_record.html.erb +3 -3
  34. data/app/views/thredded/posts_common/_content.html.erb +1 -1
  35. data/app/views/thredded/posts_common/actions/_quote.html.erb +1 -1
  36. data/app/views/thredded/shared/_page.html.erb +1 -1
  37. data/app/views/thredded/shared/nav/_standalone.html.erb +2 -2
  38. data/bin/create_migration_fixture +23 -0
  39. data/bin/rubocop +11 -0
  40. data/config/i18n-tasks.yml +6 -1
  41. data/config/locales/de.yml +2 -0
  42. data/config/locales/en.yml +3 -1
  43. data/config/locales/es.yml +2 -0
  44. data/config/locales/fr.yml +2 -0
  45. data/config/locales/it.yml +4 -2
  46. data/config/locales/pl.yml +2 -0
  47. data/config/locales/pt-BR.yml +2 -0
  48. data/config/locales/ru.yml +2 -0
  49. data/config/locales/zh-CN.yml +2 -0
  50. data/db/upgrade_migrations/20161019150201_upgrade_v0_7_to_v0_8.rb +5 -5
  51. data/db/upgrade_migrations/20180110200009_upgrade_thredded_v0_14_to_v0_15.rb +1 -1
  52. data/lib/generators/thredded/install/templates/initializer.rb +3 -3
  53. data/lib/thredded/arel_compat.rb +1 -42
  54. data/lib/thredded/base_migration.rb +2 -2
  55. data/lib/thredded/collection_to_strings_with_cache_renderer.rb +91 -28
  56. data/lib/thredded/compat.rb +35 -0
  57. data/lib/thredded/content_formatter.rb +30 -8
  58. data/lib/thredded/database_seeder.rb +11 -4
  59. data/lib/thredded/db_tools.rb +3 -5
  60. data/lib/thredded/email_transformer.rb +2 -2
  61. data/lib/thredded/engine.rb +1 -1
  62. data/lib/thredded/formatting_demo_content.rb +21 -21
  63. data/lib/thredded/html_pipeline/at_mention_filter.rb +1 -1
  64. data/lib/thredded/html_pipeline/onebox_filter.rb +3 -3
  65. data/lib/thredded/html_pipeline/utils.rb +1 -1
  66. data/lib/thredded/version.rb +1 -1
  67. data/lib/thredded.rb +3 -23
  68. metadata +56 -29
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thredded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.15
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Oliveira
8
8
  - Gleb Mazovetskiy
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-30 00:00:00.000000000 Z
12
+ date: 2022-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active_record_union
@@ -29,16 +29,16 @@ dependencies:
29
29
  name: db_text_search
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 0.3.0
34
+ version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 0.3.0
41
+ version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: friendly_id
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +129,7 @@ dependencies:
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 4.2.10
132
+ version: 5.2.0
133
133
  - - "!="
134
134
  - !ruby/object:Gem::Version
135
135
  version: 6.0.0.rc2
@@ -139,12 +139,12 @@ dependencies:
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- version: 4.2.10
142
+ version: 5.2.0
143
143
  - - "!="
144
144
  - !ruby/object:Gem::Version
145
145
  version: 6.0.0.rc2
146
146
  - !ruby/object:Gem::Dependency
147
- name: rb-gravatar
147
+ name: rails_gravatar
148
148
  requirement: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
@@ -203,9 +203,6 @@ dependencies:
203
203
  name: onebox
204
204
  requirement: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: '1.8'
209
206
  - - ">="
210
207
  - !ruby/object:Gem::Version
211
208
  version: 1.8.99
@@ -213,9 +210,6 @@ dependencies:
213
210
  prerelease: false
214
211
  version_requirements: !ruby/object:Gem::Requirement
215
212
  requirements:
216
- - - "~>"
217
- - !ruby/object:Gem::Version
218
- version: '1.8'
219
213
  - - ">="
220
214
  - !ruby/object:Gem::Version
221
215
  version: 1.8.99
@@ -309,14 +303,28 @@ dependencies:
309
303
  requirements:
310
304
  - - "~>"
311
305
  - !ruby/object:Gem::Version
312
- version: '2.4'
306
+ version: '3.0'
313
307
  type: :development
314
308
  prerelease: false
315
309
  version_requirements: !ruby/object:Gem::Requirement
316
310
  requirements:
317
311
  - - "~>"
318
312
  - !ruby/object:Gem::Version
319
- version: '2.4'
313
+ version: '3.0'
314
+ - !ruby/object:Gem::Dependency
315
+ name: capybara-screenshot
316
+ requirement: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ version: '0'
321
+ type: :development
322
+ prerelease: false
323
+ version_requirements: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ version: '0'
320
328
  - !ruby/object:Gem::Dependency
321
329
  name: cuprite
322
330
  requirement: !ruby/object:Gem::Requirement
@@ -332,19 +340,19 @@ dependencies:
332
340
  - !ruby/object:Gem::Version
333
341
  version: '0.5'
334
342
  - !ruby/object:Gem::Dependency
335
- name: database_cleaner
343
+ name: database_cleaner-active_record
336
344
  requirement: !ruby/object:Gem::Requirement
337
345
  requirements:
338
- - - ">="
346
+ - - "~>"
339
347
  - !ruby/object:Gem::Version
340
- version: '0'
348
+ version: '2.0'
341
349
  type: :development
342
350
  prerelease: false
343
351
  version_requirements: !ruby/object:Gem::Requirement
344
352
  requirements:
345
- - - ">="
353
+ - - "~>"
346
354
  - !ruby/object:Gem::Version
347
- version: '0'
355
+ version: '2.0'
348
356
  - !ruby/object:Gem::Dependency
349
357
  name: factory_bot
350
358
  requirement: !ruby/object:Gem::Requirement
@@ -387,6 +395,20 @@ dependencies:
387
395
  - - ">="
388
396
  - !ruby/object:Gem::Version
389
397
  version: '0'
398
+ - !ruby/object:Gem::Dependency
399
+ name: rails-controller-testing
400
+ requirement: !ruby/object:Gem::Requirement
401
+ requirements:
402
+ - - ">="
403
+ - !ruby/object:Gem::Version
404
+ version: '0'
405
+ type: :development
406
+ prerelease: false
407
+ version_requirements: !ruby/object:Gem::Requirement
408
+ requirements:
409
+ - - ">="
410
+ - !ruby/object:Gem::Version
411
+ version: '0'
390
412
  - !ruby/object:Gem::Dependency
391
413
  name: rspec-rails
392
414
  requirement: !ruby/object:Gem::Requirement
@@ -612,7 +634,7 @@ dependencies:
612
634
  - !ruby/object:Gem::Version
613
635
  version: '0'
614
636
  description: |-
615
- The best Rails 4.2+ forums engine ever. Its goal is to be as simple and feature rich as possible.
637
+ The best Rails 5.2+ forums engine ever. Its goal is to be as simple and feature rich as possible.
616
638
  Thredded works with SQLite, MySQL (v5.6.4+), and PostgreSQL. See the demo at https://thredded.org/.
617
639
  email:
618
640
  - joel@thredded.com
@@ -960,6 +982,7 @@ files:
960
982
  - app/views/thredded/users/_link.html.erb
961
983
  - app/views/thredded/users/_post.html.erb
962
984
  - app/views/thredded/users/_posts.html.erb
985
+ - bin/create_migration_fixture
963
986
  - bin/rails
964
987
  - bin/rubocop
965
988
  - config/i18n-tasks.yml
@@ -993,6 +1016,7 @@ files:
993
1016
  - lib/thredded/base_migration.rb
994
1017
  - lib/thredded/base_notifier.rb
995
1018
  - lib/thredded/collection_to_strings_with_cache_renderer.rb
1019
+ - lib/thredded/compat.rb
996
1020
  - lib/thredded/content_formatter.rb
997
1021
  - lib/thredded/database_seeder.rb
998
1022
  - lib/thredded/db_tools.rb
@@ -1022,23 +1046,26 @@ homepage: https://thredded.org
1022
1046
  licenses:
1023
1047
  - MIT
1024
1048
  metadata: {}
1025
- post_install_message:
1049
+ post_install_message:
1026
1050
  rdoc_options: []
1027
1051
  require_paths:
1028
1052
  - lib
1029
1053
  required_ruby_version: !ruby/object:Gem::Requirement
1030
1054
  requirements:
1031
- - - "~>"
1055
+ - - ">="
1056
+ - !ruby/object:Gem::Version
1057
+ version: '2.1'
1058
+ - - "<"
1032
1059
  - !ruby/object:Gem::Version
1033
- version: '2.3'
1060
+ version: '4.0'
1034
1061
  required_rubygems_version: !ruby/object:Gem::Requirement
1035
1062
  requirements:
1036
1063
  - - ">="
1037
1064
  - !ruby/object:Gem::Version
1038
1065
  version: '0'
1039
1066
  requirements: []
1040
- rubygems_version: 3.0.3
1041
- signing_key:
1067
+ rubygems_version: 3.2.32
1068
+ signing_key:
1042
1069
  specification_version: 4
1043
1070
  summary: The best Rails forums engine ever.
1044
1071
  test_files: []