card-mod-comment 0.11.0 → 0.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/set/all/comment.rb +4 -1
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fe6d110850fa5ff87b15673bd8841794a121dd831e2f0edd05a5d19d61e1a2e
|
4
|
+
data.tar.gz: b38c5411ec177202f5244e44ab378da2d67906f9c5d9db359ee5758bac3c4364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf31485e95094d5c845fc028a77b823a3d09c75cd80c3f62a00b6d68da3bb37259b76585367fc65e7bc8207ecad4b4603cd89cb6b9fffa8d66b9d565e07e0f9
|
7
|
+
data.tar.gz: 708dd9a92d3f6b46b74ffd061329739998952a58a18e5abd93248852e495558e006dacc6591f318cc109c5798627d7040cd8bfddb541fc443f23d289d930b79a
|
data/set/all/comment.rb
CHANGED
@@ -5,6 +5,7 @@ end
|
|
5
5
|
event :add_comment, :prepare_to_store, on: :save, when: :comment do
|
6
6
|
Env.session[:comment_author] = comment_author if Env.session
|
7
7
|
return unless comment.present?
|
8
|
+
|
8
9
|
self.content =
|
9
10
|
[content, format.comment_with_signature].compact.join "\n<hr\>\n"
|
10
11
|
self.comment = nil
|
@@ -25,7 +26,7 @@ end
|
|
25
26
|
|
26
27
|
format do
|
27
28
|
def comment_with_signature
|
28
|
-
card.clean_comment
|
29
|
+
"#{card.clean_comment}\n#{comment_signature}"
|
29
30
|
end
|
30
31
|
|
31
32
|
def comment_signature
|
@@ -53,6 +54,7 @@ format do
|
|
53
54
|
|
54
55
|
def hidden_comment_fields
|
55
56
|
return unless card.new_card?
|
57
|
+
|
56
58
|
hidden_field_tag "card[name]", card.name
|
57
59
|
# FIXME: wish we had more generalized solution for names.
|
58
60
|
# without this, nonexistent cards will often take left's linkname.
|
@@ -71,6 +73,7 @@ format do
|
|
71
73
|
|
72
74
|
def comment_author_label
|
73
75
|
return if Auth.signed_in?
|
76
|
+
|
74
77
|
%(<label>My Name is:</label> #{text_field :comment_author})
|
75
78
|
end
|
76
79
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-comment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,28 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.101.
|
21
|
+
version: 1.101.5
|
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: 1.101.
|
28
|
+
version: 1.101.5
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-permissions
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.11.
|
35
|
+
version: 0.11.5
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.11.
|
42
|
+
version: 0.11.5
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -50,10 +50,15 @@ files:
|
|
50
50
|
- set/all/comment.rb
|
51
51
|
- set/right/comment.rb
|
52
52
|
- set/right/discussion.rb
|
53
|
-
homepage:
|
53
|
+
homepage: https://decko.org
|
54
54
|
licenses:
|
55
55
|
- GPL-3.0
|
56
56
|
metadata:
|
57
|
+
source_code_uri: https://github.com/decko-commons/decko
|
58
|
+
homepage_uri: https://decko.org
|
59
|
+
bug_tracker_uri: https://github.com/decko-commons/decko/issues
|
60
|
+
wiki_uri: https://decko.org
|
61
|
+
documentation_url: http://docs.decko.org/
|
57
62
|
card-mod: comment
|
58
63
|
post_install_message:
|
59
64
|
rdoc_options: []
|
@@ -70,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
75
|
- !ruby/object:Gem::Version
|
71
76
|
version: '0'
|
72
77
|
requirements: []
|
73
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.1.4
|
74
79
|
signing_key:
|
75
80
|
specification_version: 4
|
76
81
|
summary: card comments
|