decidim-comments 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/comments/bundle.js +28 -28
  3. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  4. data/app/commands/decidim/comments/create_comment.rb +9 -1
  5. data/app/frontend/application/icon.component.jsx +1 -1
  6. data/app/frontend/comments/add_comment_form.component.jsx +11 -10
  7. data/app/frontend/comments/add_comment_form.component.test.jsx +5 -5
  8. data/app/frontend/comments/comment.component.jsx +91 -1
  9. data/app/frontend/comments/comment.component.test.jsx +18 -0
  10. data/app/frontend/comments/comment_data.fragment.graphql +2 -0
  11. data/app/frontend/comments/comment_order_selector.component.jsx +4 -5
  12. data/app/frontend/comments/comments.query.graphql +1 -0
  13. data/app/mailers/decidim/comments/comment_notification_mailer.rb +8 -0
  14. data/app/models/decidim/comments/abilities/admin_user.rb +25 -0
  15. data/app/models/decidim/comments/abilities/process_admin_user.rb +33 -0
  16. data/app/models/decidim/comments/comment.rb +7 -1
  17. data/app/models/decidim/comments/comment_vote.rb +3 -1
  18. data/app/queries/decidim/comments/sorted_comments.rb +1 -0
  19. data/app/views/decidim/comments/comment_notification_mailer/comment_created.html.erb +1 -1
  20. data/app/views/decidim/comments/comment_notification_mailer/reply_created.html.erb +1 -1
  21. data/config/locales/ca.yml +11 -0
  22. data/config/locales/en.yml +12 -2
  23. data/config/locales/es.yml +11 -0
  24. data/config/locales/eu.yml +38 -1
  25. data/config/locales/fi.yml +66 -0
  26. data/lib/decidim/comments.rb +2 -0
  27. data/lib/decidim/comments/admin.rb +9 -0
  28. data/lib/decidim/comments/admin_engine.rb +22 -0
  29. data/lib/decidim/comments/api/comment_type.rb +12 -0
  30. data/lib/decidim/comments/commentable.rb +0 -2
  31. data/lib/decidim/comments/engine.rb +1 -0
  32. data/lib/decidim/comments/test/factories.rb +3 -0
  33. metadata +13 -14
@@ -1,4 +1,7 @@
1
1
  # frozen_string_literal: true
2
+ require "decidim/core/test/factories"
3
+ require "decidim/admin/test/factories"
4
+
2
5
  FactoryGirl.define do
3
6
  factory :comment, class: "Decidim::Comments::Comment" do
4
7
  author { build(:user, organization: commentable.organization) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-17 00:00:00.000000000 Z
13
+ date: 2017-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,34 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.5
21
+ version: 0.0.6
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.0.5
28
+ version: 0.0.6
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rails
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 5.0.0
36
- - - ">="
37
- - !ruby/object:Gem::Version
38
- version: 5.0.0.1
35
+ version: 5.0.2
39
36
  type: :runtime
40
37
  prerelease: false
41
38
  version_requirements: !ruby/object:Gem::Requirement
42
39
  requirements:
43
40
  - - "~>"
44
41
  - !ruby/object:Gem::Version
45
- version: 5.0.0
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: 5.0.0.1
42
+ version: 5.0.2
49
43
  - !ruby/object:Gem::Dependency
50
44
  name: jquery-rails
51
45
  requirement: !ruby/object:Gem::Requirement
@@ -66,14 +60,14 @@ dependencies:
66
60
  requirements:
67
61
  - - '='
68
62
  - !ruby/object:Gem::Version
69
- version: 0.0.5
63
+ version: 0.0.6
70
64
  type: :development
71
65
  prerelease: false
72
66
  version_requirements: !ruby/object:Gem::Requirement
73
67
  requirements:
74
68
  - - '='
75
69
  - !ruby/object:Gem::Version
76
- version: 0.0.5
70
+ version: 0.0.6
77
71
  description: Pluggable comments system for some components.
78
72
  email:
79
73
  - josepjaume@gmail.com
@@ -137,6 +131,8 @@ files:
137
131
  - app/frontend/support/resolve_graphql_query.js
138
132
  - app/frontend/support/stub_component.js
139
133
  - app/mailers/decidim/comments/comment_notification_mailer.rb
134
+ - app/models/decidim/comments/abilities/admin_user.rb
135
+ - app/models/decidim/comments/abilities/process_admin_user.rb
140
136
  - app/models/decidim/comments/application_record.rb
141
137
  - app/models/decidim/comments/comment.rb
142
138
  - app/models/decidim/comments/comment_vote.rb
@@ -153,6 +149,7 @@ files:
153
149
  - config/locales/en.yml
154
150
  - config/locales/es.yml
155
151
  - config/locales/eu.yml
152
+ - config/locales/fi.yml
156
153
  - db/migrate/20161130143508_create_comments.rb
157
154
  - db/migrate/20161214082645_add_depth_to_comments.rb
158
155
  - db/migrate/20161216102820_add_alignment_to_comments.rb
@@ -160,6 +157,8 @@ files:
160
157
  - db/migrate/20170123102043_add_user_group_id_to_comments.rb
161
158
  - db/seeds.rb
162
159
  - lib/decidim/comments.rb
160
+ - lib/decidim/comments/admin.rb
161
+ - lib/decidim/comments/admin_engine.rb
163
162
  - lib/decidim/comments/api/add_comment_type.rb
164
163
  - lib/decidim/comments/api/comment_mutation_type.rb
165
164
  - lib/decidim/comments/api/comment_type.rb