decidim-comments 0.9.0 → 0.9.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a07d7175c21c5921abba5ba0558278bbce00baa0294656c9b38d15c294ce129
|
|
4
|
+
data.tar.gz: a345ac5d6655ed2787918dd7bb2a5bccb95ed0a566d2c540494b04b050f33610
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2d4d6ea46a0a4ac11c0ee1241429a279c65cfe870860dfe718031f4d7afedc569be274fb275d258adc02fc2d17483aaada94d8fa798ab6c672eb9b258059b71
|
|
7
|
+
data.tar.gz: 9d09fdfde2a721beb5fe6a5cc643d3669b48333c3ca130b62cb78130fd9e3787c1e8582956fb802fcba7f1e60422c926fc533843c165aa9a7ca4eb7460afdd4e
|
|
@@ -5,7 +5,7 @@ module Decidim
|
|
|
5
5
|
class CommentCreatedEvent < Decidim::Events::SimpleEvent
|
|
6
6
|
include Decidim::Events::AuthorEvent
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
delegate :author, to: :comment
|
|
9
9
|
|
|
10
10
|
def i18n_scope
|
|
11
11
|
"decidim.events.comments.comment_created.#{comment_type}"
|
|
@@ -19,9 +19,7 @@ module Decidim
|
|
|
19
19
|
resource_locator.url(url_params)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
comment.author
|
|
24
|
-
end
|
|
22
|
+
private
|
|
25
23
|
|
|
26
24
|
def comment
|
|
27
25
|
@comment ||= Decidim::Comments::Comment.find(extra[:comment_id])
|
|
@@ -5,7 +5,7 @@ module Decidim
|
|
|
5
5
|
class UserMentionedEvent < Decidim::Events::SimpleEvent
|
|
6
6
|
include Decidim::Events::AuthorEvent
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
delegate :author, to: :comment
|
|
9
9
|
|
|
10
10
|
def i18n_scope
|
|
11
11
|
"decidim.events.comments.user_mentioned"
|
|
@@ -19,9 +19,7 @@ module Decidim
|
|
|
19
19
|
resource_locator.url(url_params)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
comment.author
|
|
24
|
-
end
|
|
22
|
+
private
|
|
25
23
|
|
|
26
24
|
def comment
|
|
27
25
|
@comment ||= Decidim::Comments::Comment.find(extra[:comment_id])
|
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.9.
|
|
4
|
+
version: 0.9.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: 2018-02-
|
|
13
|
+
date: 2018-02-08 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.9.
|
|
21
|
+
version: 0.9.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.9.
|
|
28
|
+
version: 0.9.1
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: jquery-rails
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -46,28 +46,28 @@ dependencies:
|
|
|
46
46
|
requirements:
|
|
47
47
|
- - '='
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 0.9.
|
|
49
|
+
version: 0.9.1
|
|
50
50
|
type: :development
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - '='
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 0.9.
|
|
56
|
+
version: 0.9.1
|
|
57
57
|
- !ruby/object:Gem::Dependency
|
|
58
58
|
name: decidim-dev
|
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
61
|
- - '='
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 0.9.
|
|
63
|
+
version: 0.9.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.9.
|
|
70
|
+
version: 0.9.1
|
|
71
71
|
description: Pluggable comments system for some components.
|
|
72
72
|
email:
|
|
73
73
|
- josepjaume@gmail.com
|