decidim-comments 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee19f8fcc9ba2915c786c9b9a6eea82fd1822f7b7254801e6a2a81270078ac29
4
- data.tar.gz: 0576c1512355cf90f62a69568a6a454e0263c8bd8aa0191af534912a6b02444e
3
+ metadata.gz: 8a07d7175c21c5921abba5ba0558278bbce00baa0294656c9b38d15c294ce129
4
+ data.tar.gz: a345ac5d6655ed2787918dd7bb2a5bccb95ed0a566d2c540494b04b050f33610
5
5
  SHA512:
6
- metadata.gz: 2770e81dfeb09cdb036d2907a63a16f97523e9448f155c460f82732af195a6424e8157968310586e1a42c5d8998c184ca31a7bf19ea39fdb122774c12daa0f44
7
- data.tar.gz: c3581efbad01df6f62578879ef2c948a167a944cdb53582d2ee63cd16c3526e5aa277d0c7d9bc0a904890e84bae8cb6c6a9b1639f85d6d78d13eff651fdd5379
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
- private
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
- def author
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
- private
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
- def author
23
- comment.author
24
- end
22
+ private
25
23
 
26
24
  def comment
27
25
  @comment ||= Decidim::Comments::Comment.find(extra[:comment_id])
@@ -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.9.0"
7
+ "0.9.1"
8
8
  end
9
9
  end
10
10
  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.9.0
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-05 00:00:00.000000000 Z
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.0
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.0
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.0
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.0
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.0
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.0
70
+ version: 0.9.1
71
71
  description: Pluggable comments system for some components.
72
72
  email:
73
73
  - josepjaume@gmail.com