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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ed465e954944671b0cb231753b684c3f535a04e7162fed5be9fcfa92653d2d3
4
- data.tar.gz: f7a50cb9c3b40251d2e3efaaa8d6be0bdd4aeedff8711d17fb78a5a45eb0c982
3
+ metadata.gz: 819ba471e9cad02749af834519f579568bba2da55b9df8240a054e90ac7de98f
4
+ data.tar.gz: ff56dc81fdd750de1ccafa92d05baa97a4cb303fc5fa416be5c93f5e7cc8c0f2
5
5
  SHA512:
6
- metadata.gz: f145b4d3a8d445a51e8144f0dde583518c522d98f202c9d40f472fad04a2c6fc9fe4c26318259f3e528628c5334dfb649fa7ed8ca69caa29db5c02818299590d
7
- data.tar.gz: 2619ef270a12f141f61f9ba6887b72a6a51f24db9e74a64209ed7dd6340f6a3bcbf1d4df0046e9ae943e91425583460e79540045224e585aab8655de065abb3b
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 resource_path
13
- resource_locator.path(url_params)
12
+ def resource_text
13
+ comment.formatted_body
14
14
  end
15
15
 
16
- def resource_url
17
- resource_locator.url(url_params)
16
+ def author
17
+ comment.normalized_author
18
18
  end
19
19
 
20
- def resource_text
21
- comment.formatted_body
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 url_params
52
+ def resource_url_params
46
53
  { anchor: "comment_#{comment.id}" }
47
54
  end
48
55
  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.23.1.rc1"
7
+ "0.23.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.23.1.rc1
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-06 00:00:00.000000000 Z
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.rc1
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.rc1
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.rc1
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.rc1
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.rc1
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.rc1
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: 1.3.1
291
+ version: '0'
292
292
  requirements: []
293
293
  rubygems_version: 3.0.3
294
294
  signing_key: