decidim-comments 0.23.1.rc1 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/events/decidim/comments/comment_event.rb +14 -7
- data/lib/decidim/comments/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 819ba471e9cad02749af834519f579568bba2da55b9df8240a054e90ac7de98f
|
4
|
+
data.tar.gz: ff56dc81fdd750de1ccafa92d05baa97a4cb303fc5fa416be5c93f5e7cc8c0f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85384a98623a631ded4c93b7cfc4a5d2dcbb077d4d718758eb00c23b2ec9a02c4cb8dc16c659449a000b9eb8c8a2c4bcb0f9326bc1189ba6defdd2e4af906933
|
7
|
+
data.tar.gz: 9b061d28f81133007d4dd63712e059cc32180f99257003b3db28151d1139e8335a452ff4a4c9e7f4ff454d4519afc863c0427d3d13ec8b4ecc606124818fc611
|
@@ -9,16 +9,23 @@ module Decidim
|
|
9
9
|
include Decidim::Events::AuthorEvent
|
10
10
|
|
11
11
|
included do
|
12
|
-
def
|
13
|
-
|
12
|
+
def resource_text
|
13
|
+
comment.formatted_body
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
|
16
|
+
def author
|
17
|
+
comment.normalized_author
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
21
|
-
|
20
|
+
def author_presenter
|
21
|
+
return unless author
|
22
|
+
|
23
|
+
@author_presenter ||= case author
|
24
|
+
when Decidim::User
|
25
|
+
Decidim::UserPresenter.new(author)
|
26
|
+
when Decidim::UserGroup
|
27
|
+
Decidim::UserGroupPresenter.new(author)
|
28
|
+
end
|
22
29
|
end
|
23
30
|
|
24
31
|
def author
|
@@ -42,7 +49,7 @@ module Decidim
|
|
42
49
|
@comment ||= Decidim::Comments::Comment.find(extra[:comment_id])
|
43
50
|
end
|
44
51
|
|
45
|
-
def
|
52
|
+
def resource_url_params
|
46
53
|
{ anchor: "comment_#{comment.id}" }
|
47
54
|
end
|
48
55
|
end
|
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.23.1
|
4
|
+
version: 0.23.1
|
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: 2020-11-
|
13
|
+
date: 2020-11-12 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.23.1
|
21
|
+
version: 0.23.1
|
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.23.1
|
28
|
+
version: 0.23.1
|
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.23.1
|
63
|
+
version: 0.23.1
|
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.23.1
|
70
|
+
version: 0.23.1
|
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.23.1
|
77
|
+
version: 0.23.1
|
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.23.1
|
84
|
+
version: 0.23.1
|
85
85
|
description: Pluggable comments system for some components.
|
86
86
|
email:
|
87
87
|
- josepjaume@gmail.com
|
@@ -286,9 +286,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
286
286
|
version: '2.6'
|
287
287
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
288
288
|
requirements:
|
289
|
-
- - "
|
289
|
+
- - ">="
|
290
290
|
- !ruby/object:Gem::Version
|
291
|
-
version:
|
291
|
+
version: '0'
|
292
292
|
requirements: []
|
293
293
|
rubygems_version: 3.0.3
|
294
294
|
signing_key:
|