decidim-comments 0.21.0 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/comments/bundle.js +67 -67
  3. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  4. data/app/cells/decidim/comments/comment_activity_cell.rb +2 -22
  5. data/app/cells/decidim/comments/comment_cell.rb +22 -0
  6. data/app/cells/decidim/comments/comment_m/footer.erb +5 -0
  7. data/app/cells/decidim/comments/comment_m/top.erb +7 -0
  8. data/app/cells/decidim/comments/comment_m_cell.rb +29 -0
  9. data/app/commands/decidim/comments/create_comment.rb +8 -8
  10. data/app/events/decidim/comments/comment_by_followed_user_group_event.rb +9 -0
  11. data/app/events/decidim/comments/comment_event.rb +14 -9
  12. data/app/events/decidim/comments/user_group_mentioned_event.rb +10 -0
  13. data/app/forms/decidim/comments/comment_form.rb +17 -1
  14. data/app/frontend/application/icon.component.tsx +16 -4
  15. data/app/frontend/comments/add_comment_form.component.test.tsx +31 -29
  16. data/app/frontend/comments/add_comment_form.component.tsx +34 -18
  17. data/app/frontend/comments/comment.component.test.tsx +36 -5
  18. data/app/frontend/comments/comment.component.tsx +218 -88
  19. data/app/frontend/comments/comment_order_selector.component.tsx +26 -7
  20. data/app/frontend/comments/comment_thread.component.test.tsx +9 -8
  21. data/app/frontend/comments/comment_thread.component.tsx +3 -1
  22. data/app/frontend/comments/comments.component.test.tsx +17 -14
  23. data/app/frontend/comments/comments.component.tsx +28 -4
  24. data/app/frontend/comments/down_vote_button.component.tsx +27 -9
  25. data/app/frontend/comments/up_vote_button.component.tsx +27 -9
  26. data/app/frontend/comments/vote_button.component.tsx +4 -0
  27. data/app/frontend/comments/vote_button_component.test.tsx +14 -8
  28. data/app/frontend/mutations/add_comment.mutation.graphql +2 -2
  29. data/app/frontend/mutations/down_vote.mutation.graphql +2 -2
  30. data/app/frontend/mutations/up_vote.mutation.graphql +2 -2
  31. data/app/frontend/queries/comments.query.graphql +2 -2
  32. data/app/frontend/support/schema.ts +1060 -735
  33. data/app/helpers/decidim/comments/comment_cells_helper.rb +33 -0
  34. data/app/models/decidim/comments/comment.rb +81 -22
  35. data/app/models/decidim/comments/seed.rb +1 -1
  36. data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +1 -6
  37. data/app/services/decidim/comments/new_comment_notification_creator.rb +28 -3
  38. data/app/types/decidim/comments/commentable_interface.rb +1 -1
  39. data/app/types/decidim/comments/commentable_mutation_type.rb +6 -3
  40. data/config/locales/am-ET.yml +1 -0
  41. data/config/locales/ar.yml +4 -1
  42. data/config/locales/bg-BG.yml +6 -0
  43. data/config/locales/bg.yml +6 -0
  44. data/config/locales/ca.yml +19 -2
  45. data/config/locales/cs.yml +31 -14
  46. data/config/locales/da-DK.yml +1 -0
  47. data/config/locales/da.yml +1 -0
  48. data/config/locales/de.yml +47 -24
  49. data/config/locales/el.yml +121 -0
  50. data/config/locales/en.yml +18 -1
  51. data/config/locales/eo.yml +1 -0
  52. data/config/locales/es-MX.yml +18 -1
  53. data/config/locales/es-PY.yml +18 -1
  54. data/config/locales/es.yml +18 -1
  55. data/config/locales/et-EE.yml +1 -0
  56. data/config/locales/et.yml +1 -0
  57. data/config/locales/eu.yml +4 -1
  58. data/config/locales/fi-plain.yml +18 -1
  59. data/config/locales/fi.yml +25 -8
  60. data/config/locales/fr-CA.yml +123 -0
  61. data/config/locales/fr.yml +25 -2
  62. data/config/locales/ga-IE.yml +1 -0
  63. data/config/locales/gl.yml +17 -1
  64. data/config/locales/hr-HR.yml +1 -0
  65. data/config/locales/hr.yml +1 -0
  66. data/config/locales/hu.yml +12 -2
  67. data/config/locales/id-ID.yml +4 -1
  68. data/config/locales/is-IS.yml +3 -3
  69. data/config/locales/is.yml +76 -0
  70. data/config/locales/it.yml +21 -1
  71. data/config/locales/ja-JP.yml +120 -0
  72. data/config/locales/ja.yml +121 -0
  73. data/config/locales/ko-KR.yml +1 -0
  74. data/config/locales/ko.yml +1 -0
  75. data/config/locales/lt-LT.yml +1 -0
  76. data/config/locales/lt.yml +1 -0
  77. data/config/locales/lv.yml +118 -0
  78. data/config/locales/mt-MT.yml +1 -0
  79. data/config/locales/mt.yml +1 -0
  80. data/config/locales/nl.yml +27 -8
  81. data/config/locales/no.yml +18 -2
  82. data/config/locales/om-ET.yml +1 -0
  83. data/config/locales/pl.yml +63 -40
  84. data/config/locales/pt-BR.yml +5 -2
  85. data/config/locales/pt.yml +47 -25
  86. data/config/locales/ro-RO.yml +124 -0
  87. data/config/locales/ru.yml +4 -1
  88. data/config/locales/si-LK.yml +1 -0
  89. data/config/locales/sk-SK.yml +116 -0
  90. data/config/locales/sk.yml +120 -0
  91. data/config/locales/sl.yml +4 -0
  92. data/config/locales/so-SO.yml +1 -0
  93. data/config/locales/sr-CS.yml +20 -0
  94. data/config/locales/sv.yml +26 -3
  95. data/config/locales/sw-KE.yml +1 -0
  96. data/config/locales/ti-ER.yml +1 -0
  97. data/config/locales/tr-TR.yml +54 -31
  98. data/config/locales/uk.yml +4 -2
  99. data/config/locales/vi-VN.yml +1 -0
  100. data/config/locales/vi.yml +1 -0
  101. data/config/locales/zh-CN.yml +121 -0
  102. data/config/locales/zh-TW.yml +1 -0
  103. data/db/migrate/20200320105911_index_foreign_keys_in_decidim_comments_comments.rb +7 -0
  104. data/db/migrate/20200706123136_make_comments_handle_i18n.rb +41 -0
  105. data/db/migrate/20200828101910_add_commentable_counter_cache_to_comments.rb +9 -0
  106. data/lib/decidim/comments/api/comment_type.rb +5 -1
  107. data/lib/decidim/comments/comment_serializer.rb +7 -2
  108. data/lib/decidim/comments/comment_vote_serializer.rb +5 -1
  109. data/lib/decidim/comments/commentable.rb +11 -0
  110. data/lib/decidim/comments/comments_helper.rb +28 -4
  111. data/lib/decidim/comments/engine.rb +13 -0
  112. data/lib/decidim/comments/mutation_extensions.rb +8 -0
  113. data/lib/decidim/comments/query_extensions.rb +4 -0
  114. data/lib/decidim/comments/test/factories.rb +10 -1
  115. data/lib/decidim/comments/test/shared_examples/comment_event.rb +12 -2
  116. data/lib/decidim/comments/test/shared_examples/create_comment_context.rb +3 -2
  117. data/lib/decidim/comments/version.rb +1 -1
  118. metadata +59 -13
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddCommentableCounterCacheToComments < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_column :decidim_comments_comments, :comments_count, :integer, null: false, default: 0, index: true
6
+ Decidim::Comments::Comment.reset_column_information
7
+ Decidim::Comments::Comment.find_each(&:update_comments_count)
8
+ end
9
+ end
@@ -25,7 +25,11 @@ module Decidim
25
25
  }
26
26
  end
27
27
 
28
- field :body, !types.String, "The comment message"
28
+ field :body, !types.String, "The comment message" do
29
+ resolve lambda { |obj, _args, _ctx|
30
+ obj.translated_body
31
+ }
32
+ end
29
33
 
30
34
  field :formattedBody, !types.String, "The comment message ready to display (it is expected to include HTML)", property: :formatted_body
31
35
 
@@ -11,7 +11,8 @@ module Decidim
11
11
  {
12
12
  id: resource.id,
13
13
  created_at: resource.created_at,
14
- body: resource.body,
14
+ body: resource.body.values.first,
15
+ locale: resource.body.keys.first,
15
16
  author: {
16
17
  id: resource.author.id,
17
18
  name: resource.author.name
@@ -31,7 +32,11 @@ module Decidim
31
32
  private
32
33
 
33
34
  def root_commentable_url
34
- @root_commentable_url ||= Decidim::ResourceLocatorPresenter.new(resource.root_commentable).url
35
+ @root_commentable_url ||= if resource.root_commentable&.respond_to?(:polymorphic_resource_url)
36
+ resource.root_commentable.polymorphic_resource_url
37
+ else
38
+ ResourceLocatorPresenter.new(resource.root_commentable).url
39
+ end
35
40
  end
36
41
  end
37
42
  end
@@ -37,7 +37,11 @@ module Decidim
37
37
  private
38
38
 
39
39
  def root_commentable_url
40
- @root_commentable_url ||= Decidim::ResourceLocatorPresenter.new(resource.comment.root_commentable).url
40
+ @root_commentable_url ||= if resource.comment.root_commentable&.respond_to?(:polymorphic_resource_url)
41
+ resource.comment.root_commentable.polymorphic_resource_url
42
+ else
43
+ ResourceLocatorPresenter.new(resource.comment.root_commentable).url
44
+ end
41
45
  end
42
46
  end
43
47
  end
@@ -51,6 +51,17 @@ module Decidim
51
51
  def user_allowed_to_comment?(_user)
52
52
  true
53
53
  end
54
+
55
+ # Public: Updates the comments counter cache. We have to do it these
56
+ # way in order to properly calculate the coutner with hidden
57
+ # comments.
58
+ #
59
+ # rubocop:disable Rails/SkipsModelValidations
60
+ def update_comments_count
61
+ comments_count = comments.not_hidden.count
62
+ update_columns(comments_count: comments_count, updated_at: Time.current)
63
+ end
64
+ # rubocop:enable Rails/SkipsModelValidations
54
65
  end
55
66
  end
56
67
  end
@@ -26,9 +26,13 @@ module Decidim
26
26
  commentable_type = resource.commentable_type
27
27
  commentable_id = resource.id.to_s
28
28
  node_id = "comments-for-#{commentable_type.demodulize}-#{commentable_id}"
29
- react_comments_component(node_id, commentableType: commentable_type,
30
- commentableId: commentable_id,
31
- locale: I18n.locale)
29
+ react_comments_component(
30
+ node_id, commentableType: commentable_type,
31
+ commentableId: commentable_id,
32
+ locale: I18n.locale,
33
+ toggleTranslations: machine_translations_toggled?,
34
+ commentsMaxLength: comments_max_length(resource)
35
+ )
32
36
  end
33
37
 
34
38
  # Private: Render Comments component using inline javascript
@@ -44,11 +48,31 @@ module Decidim
44
48
  {
45
49
  commentableType: "#{props[:commentableType]}",
46
50
  commentableId: "#{props[:commentableId]}",
47
- locale: "#{props[:locale]}"
51
+ locale: "#{props[:locale]}",
52
+ toggleTranslations: #{props[:toggleTranslations]},
53
+ commentsMaxLength: "#{props[:commentsMaxLength]}"
48
54
  }
49
55
  );
50
56
  })
51
57
  end
58
+
59
+ def comments_max_length(resource)
60
+ return 1000 unless resource.respond_to?(:component)
61
+ return component_comments_max_length(resource) if component_comments_max_length(resource)
62
+ return organization_comments_max_length(resource) if organization_comments_max_length(resource)
63
+
64
+ 1000
65
+ end
66
+
67
+ def component_comments_max_length(resource)
68
+ return unless resource.component&.settings.respond_to?(:comments_max_length)
69
+
70
+ resource.component.settings.comments_max_length if resource.component.settings.comments_max_length.positive?
71
+ end
72
+
73
+ def organization_comments_max_length(resource)
74
+ resource.component.organization.comments_max_length if resource.component.organization.comments_max_length.positive?
75
+ end
52
76
  end
53
77
  end
54
78
  end
@@ -59,6 +59,19 @@ module Decidim
59
59
  metric_operation.manager_class = "Decidim::Comments::Metrics::CommentParticipantsMetricMeasure"
60
60
  end
61
61
  end
62
+
63
+ initializer "decidim_comments.register_resources" do
64
+ Decidim.register_resource(:comment) do |resource|
65
+ resource.model_class_name = "Decidim::Comments::Comment"
66
+ resource.card = "decidim/comments/comment"
67
+ resource.searchable = true
68
+ end
69
+ end
70
+
71
+ initializer "decidim_comments.add_cells_view_paths" do
72
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Comments::Engine.root}/app/cells")
73
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Comments::Engine.root}/app/views") # for partials
74
+ end
62
75
  end
63
76
  end
64
77
  end
@@ -16,8 +16,12 @@ module Decidim
16
16
 
17
17
  argument :id, !types.String, "The commentable's ID"
18
18
  argument :type, !types.String, "The commentable's class name. i.e. `Decidim::ParticipatoryProcess`"
19
+ argument :locale, !types.String, "The locale for which to get the comments text"
20
+ argument :toggleTranslations, !types.Boolean, "Whether the user asked to toggle the machine translations or not."
19
21
 
20
22
  resolve lambda { |_obj, args, _ctx|
23
+ I18n.locale = args[:locale].presence
24
+ RequestStore.store[:toggle_machine_translations] = args[:toggleTranslations]
21
25
  args[:type].constantize.find(args[:id])
22
26
  }
23
27
  end
@@ -26,8 +30,12 @@ module Decidim
26
30
  description "A comment"
27
31
 
28
32
  argument :id, !types.ID, "The comment's id"
33
+ argument :locale, !types.String, "The locale for which to get the comments text"
34
+ argument :toggleTranslations, !types.Boolean, "Whether the user asked to toggle the machine translations or not."
29
35
 
30
36
  resolve lambda { |_obj, args, _ctx|
37
+ I18n.locale = args[:locale].presence
38
+ RequestStore.store[:toggle_machine_translations] = args[:toggleTranslations]
31
39
  Comment.find(args["id"])
32
40
  }
33
41
  end
@@ -16,8 +16,12 @@ module Decidim
16
16
 
17
17
  argument :id, !types.String, "The commentable's ID"
18
18
  argument :type, !types.String, "The commentable's class name. i.e. `Decidim::ParticipatoryProcess`"
19
+ argument :locale, !types.String, "The locale for which to get the comments text"
20
+ argument :toggleTranslations, !types.Boolean, "Whether the user asked to toggle the machine translations or not."
19
21
 
20
22
  resolve lambda { |_obj, args, _ctx|
23
+ I18n.locale = args[:locale].presence
24
+ RequestStore.store[:toggle_machine_translations] = args[:toggleTranslations]
21
25
  args[:type].constantize.find(args[:id])
22
26
  }
23
27
  end
@@ -7,7 +7,16 @@ FactoryBot.define do
7
7
  author { build(:user, organization: commentable.organization) }
8
8
  commentable { build(:dummy_resource) }
9
9
  root_commentable { commentable }
10
- body { Faker::Lorem.paragraph }
10
+ body { Decidim::Faker::Localized.paragraph }
11
+
12
+ after(:build) do |comment, evaluator|
13
+ comment.body = if evaluator.body.is_a?(String)
14
+ { comment.root_commentable.organization.default_locale || "en" => evaluator.body }
15
+ else
16
+ evaluator.body
17
+ end
18
+ comment.body = Decidim::ContentProcessor.parse_with_processor(:hashtag, comment.body, current_organization: comment.root_commentable.organization).rewrite
19
+ end
11
20
 
12
21
  trait :comment_on_comment do
13
22
  author { build(:user, organization: root_commentable.organization) }
@@ -12,10 +12,16 @@ shared_context "when it's a comment event" do
12
12
 
13
13
  let(:comment) { create :comment }
14
14
  let(:comment_author) { comment.author }
15
+ let(:normalized_comment_author) { comment.author }
15
16
  let(:comment_author_name) { decidim_html_escape comment.author.name }
16
17
 
17
18
  let(:extra) { { comment_id: comment.id } }
18
- let(:resource_title) { decidim_html_escape resource.title }
19
+ let(:resource_title) { decidim_html_escape(translated(resource.title)) }
20
+ let(:user_group) do
21
+ user_group = create(:user_group, :verified, organization: organization, users: [comment_author])
22
+ comment.update!(user_group: user_group)
23
+ user_group
24
+ end
19
25
  end
20
26
 
21
27
  shared_examples_for "a comment event" do
@@ -23,7 +29,11 @@ shared_examples_for "a comment event" do
23
29
 
24
30
  describe "author" do
25
31
  it "returns the comment author" do
26
- expect(subject.author).to eq(comment_author)
32
+ if defined? user_group_author
33
+ expect(subject.author).to eq(user_group_author)
34
+ else
35
+ expect(subject.author).to eq(comment_author)
36
+ end
27
37
  end
28
38
  end
29
39
 
@@ -16,7 +16,8 @@ RSpec.shared_context "when creating a comment" do
16
16
  "comment" => {
17
17
  "body" => body,
18
18
  "alignment" => alignment,
19
- "user_group_id" => user_group_id
19
+ "user_group_id" => user_group_id,
20
+ "commentable" => commentable
20
21
  }
21
22
  }
22
23
  end
@@ -27,5 +28,5 @@ RSpec.shared_context "when creating a comment" do
27
28
  current_organization: organization
28
29
  )
29
30
  end
30
- let(:command) { described_class.new(form, author, commentable) }
31
+ let(:command) { described_class.new(form, author) }
31
32
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-comments version.
5
5
  module Comments
6
6
  def self.version
7
- "0.21.0"
7
+ "0.23.2"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  - Marc Riera Casals
9
9
  - Oriol Gual Oliva
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-04-08 00:00:00.000000000 Z
13
+ date: 2021-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.21.0
21
+ version: 0.23.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.21.0
28
+ version: 0.23.2
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: jquery-rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -60,28 +60,28 @@ dependencies:
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.21.0
63
+ version: 0.23.2
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.21.0
70
+ version: 0.23.2
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-dev
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.21.0
77
+ version: 0.23.2
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.21.0
84
+ version: 0.23.2
85
85
  description: Pluggable comments system for some components.
86
86
  email:
87
87
  - josepjaume@gmail.com
@@ -98,12 +98,18 @@ files:
98
98
  - app/assets/javascripts/decidim/comments/bundle.js.map
99
99
  - app/assets/javascripts/decidim/comments/comments.js.erb
100
100
  - app/cells/decidim/comments/comment_activity_cell.rb
101
+ - app/cells/decidim/comments/comment_cell.rb
102
+ - app/cells/decidim/comments/comment_m/footer.erb
103
+ - app/cells/decidim/comments/comment_m/top.erb
104
+ - app/cells/decidim/comments/comment_m_cell.rb
101
105
  - app/commands/decidim/comments/create_comment.rb
102
106
  - app/commands/decidim/comments/vote_comment.rb
103
107
  - app/events/decidim/comments/comment_by_followed_user_event.rb
108
+ - app/events/decidim/comments/comment_by_followed_user_group_event.rb
104
109
  - app/events/decidim/comments/comment_created_event.rb
105
110
  - app/events/decidim/comments/comment_event.rb
106
111
  - app/events/decidim/comments/reply_created_event.rb
112
+ - app/events/decidim/comments/user_group_mentioned_event.rb
107
113
  - app/events/decidim/comments/user_mentioned_event.rb
108
114
  - app/forms/decidim/comments/comment_form.rb
109
115
  - app/frontend/application/apollo_client.ts
@@ -149,6 +155,7 @@ files:
149
155
  - app/frontend/support/require_all.ts
150
156
  - app/frontend/support/resolve_graphql_query.ts
151
157
  - app/frontend/support/schema.ts
158
+ - app/helpers/decidim/comments/comment_cells_helper.rb
152
159
  - app/models/decidim/comments/application_record.rb
153
160
  - app/models/decidim/comments/comment.rb
154
161
  - app/models/decidim/comments/comment_vote.rb
@@ -163,38 +170,74 @@ files:
163
170
  - app/types/decidim/comments/commentable_interface.rb
164
171
  - app/types/decidim/comments/commentable_mutation_type.rb
165
172
  - app/types/decidim/comments/commentable_type.rb
173
+ - config/locales/am-ET.yml
166
174
  - config/locales/ar-SA.yml
167
175
  - config/locales/ar.yml
176
+ - config/locales/bg-BG.yml
177
+ - config/locales/bg.yml
168
178
  - config/locales/ca.yml
169
179
  - config/locales/cs-CZ.yml
170
180
  - config/locales/cs.yml
181
+ - config/locales/da-DK.yml
182
+ - config/locales/da.yml
171
183
  - config/locales/de.yml
172
184
  - config/locales/el-GR.yml
173
185
  - config/locales/el.yml
174
186
  - config/locales/en.yml
175
187
  - config/locales/eo-UY.yml
188
+ - config/locales/eo.yml
176
189
  - config/locales/es-MX.yml
177
190
  - config/locales/es-PY.yml
178
191
  - config/locales/es.yml
192
+ - config/locales/et-EE.yml
193
+ - config/locales/et.yml
179
194
  - config/locales/eu.yml
180
195
  - config/locales/fi-pl.yml
181
196
  - config/locales/fi-plain.yml
182
197
  - config/locales/fi.yml
198
+ - config/locales/fr-CA.yml
183
199
  - config/locales/fr.yml
200
+ - config/locales/ga-IE.yml
184
201
  - config/locales/gl.yml
202
+ - config/locales/hr-HR.yml
203
+ - config/locales/hr.yml
185
204
  - config/locales/hu.yml
186
205
  - config/locales/id-ID.yml
187
206
  - config/locales/is-IS.yml
207
+ - config/locales/is.yml
188
208
  - config/locales/it.yml
209
+ - config/locales/ja-JP.yml
210
+ - config/locales/ja.yml
211
+ - config/locales/ko-KR.yml
212
+ - config/locales/ko.yml
213
+ - config/locales/lt-LT.yml
214
+ - config/locales/lt.yml
215
+ - config/locales/lv.yml
216
+ - config/locales/mt-MT.yml
217
+ - config/locales/mt.yml
189
218
  - config/locales/nl.yml
190
219
  - config/locales/no.yml
220
+ - config/locales/om-ET.yml
191
221
  - config/locales/pl.yml
192
222
  - config/locales/pt-BR.yml
193
223
  - config/locales/pt.yml
224
+ - config/locales/ro-RO.yml
194
225
  - config/locales/ru.yml
226
+ - config/locales/si-LK.yml
227
+ - config/locales/sk-SK.yml
228
+ - config/locales/sk.yml
229
+ - config/locales/sl.yml
230
+ - config/locales/so-SO.yml
231
+ - config/locales/sr-CS.yml
195
232
  - config/locales/sv.yml
233
+ - config/locales/sw-KE.yml
234
+ - config/locales/ti-ER.yml
196
235
  - config/locales/tr-TR.yml
197
236
  - config/locales/uk.yml
237
+ - config/locales/vi-VN.yml
238
+ - config/locales/vi.yml
239
+ - config/locales/zh-CN.yml
240
+ - config/locales/zh-TW.yml
198
241
  - db/migrate/20161130143508_create_comments.rb
199
242
  - db/migrate/20161214082645_add_depth_to_comments.rb
200
243
  - db/migrate/20161216102820_add_alignment_to_comments.rb
@@ -206,6 +249,9 @@ files:
206
249
  - db/migrate/20181003080320_fix_user_groups_ids_in_comments.rb
207
250
  - db/migrate/20181016142511_make_authors_polymorphic_for_comments.rb
208
251
  - db/migrate/20181019092928_make_author_polymorphic_for_comment_votes.rb
252
+ - db/migrate/20200320105911_index_foreign_keys_in_decidim_comments_comments.rb
253
+ - db/migrate/20200706123136_make_comments_handle_i18n.rb
254
+ - db/migrate/20200828101910_add_commentable_counter_cache_to_comments.rb
209
255
  - db/seeds.rb
210
256
  - lib/decidim/comments.rb
211
257
  - lib/decidim/comments/admin.rb
@@ -231,7 +277,7 @@ homepage: https://github.com/decidim/decidim
231
277
  licenses:
232
278
  - AGPL-3.0
233
279
  metadata: {}
234
- post_install_message:
280
+ post_install_message:
235
281
  rdoc_options: []
236
282
  require_paths:
237
283
  - lib
@@ -239,15 +285,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
285
  requirements:
240
286
  - - ">="
241
287
  - !ruby/object:Gem::Version
242
- version: '2.5'
288
+ version: '2.6'
243
289
  required_rubygems_version: !ruby/object:Gem::Requirement
244
290
  requirements:
245
291
  - - ">="
246
292
  - !ruby/object:Gem::Version
247
293
  version: '0'
248
294
  requirements: []
249
- rubygems_version: 3.1.2
250
- signing_key:
295
+ rubygems_version: 3.0.3
296
+ signing_key:
251
297
  specification_version: 4
252
298
  summary: Decidim comments module
253
299
  test_files: []