card-mod-comment 0.11.4 → 0.11.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/set/all/comment.rb +4 -1
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8262425b4de166b8564572ec6fb32c10a40f9c9ec4090936da25020dfe8b0ca4
4
- data.tar.gz: 3e83c6c46036b2c7844e3bff0e027d46c1650a6436d8604c5c3b0ae07c915471
3
+ metadata.gz: 1fe6d110850fa5ff87b15673bd8841794a121dd831e2f0edd05a5d19d61e1a2e
4
+ data.tar.gz: b38c5411ec177202f5244e44ab378da2d67906f9c5d9db359ee5758bac3c4364
5
5
  SHA512:
6
- metadata.gz: b68dc55365b1b396eb6d3c899ad821a85518b57483538048141f4895c89320c0b8b0fc8bbc6c17fe894eef16a943b00d0102fb39b5d65867fbdbc8e738ee161f
7
- data.tar.gz: e977fea92f739bc23ec1534943455fb723ebf19e3bdbbf2abc7180b76b48bfde78110b5b3911ceb8585bae30d53f2f5e9cfaf4e6a8f1167d58b637ce102a5278
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 + "\n" + comment_signature
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
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: 2021-05-05 00:00:00.000000000 Z
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.4
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.4
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.4
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.4
42
+ version: 0.11.5
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org