card-mod-comment 0.11.3 → 0.11.7
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 +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d9cb5901bcc48bc517754aaac7d5f95b86bdb4c1b8f9147607ebef0d6e9e6a
|
4
|
+
data.tar.gz: 526975607462835af97f9d1bad2662c3ecce93eb84035cab947221a2007d6a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f530914ab140799a05665394ba0b75a8fe670a4eaf1f78b569741204a3ab77bed135e4c964b0c380265f78ee98439b508190b7a6759f34f679376f2bb7cb6320
|
7
|
+
data.tar.gz: aca021f88071d39f376ca7ab566a640a522068b868053c7c8e111a8ef09f3ba16558d7e4aec7cbfdcb61dd608cacb27449eb0bf780d5866b5e0a45fe1dc745c5
|
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.7
|
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: 2021-
|
13
|
+
date: 2021-08-01 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.7
|
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.7
|
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.7
|
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.7
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.1.
|
78
|
+
rubygems_version: 3.1.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: card comments
|