card-mod-comment 0.11.1 → 0.11.6

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 +13 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8f8efbb053e5f713e50c2ce689ca6036ad71bd56f19f7779a919b8aa1931b29
4
- data.tar.gz: 7d09f8ca46ed525fdd6478f9f5d0d8e61d3af892e9d67a6655c25c4e1b92c507
3
+ metadata.gz: e76c297443cad80fe5b8981fe50d7f2f6e9707e6821495b2beda98cdbc6b12ff
4
+ data.tar.gz: 3c5a9bc915928535d5e8ebf26fd8f833ba7dced1d3d12b1e6c6806ebe4c01c49
5
5
  SHA512:
6
- metadata.gz: 84a06c558b6c43ab3d4cfd929ddf1fde049b088d0341e1009b6bd22c56db6382ac92ce3bddd9d1654fea4fa2ba80f9a2a549b4ec03333623963fe6e78ed22169
7
- data.tar.gz: 39bbb26db268b67838ee3f2e25ae1f9174b7f4607939790aa860508fa81c0cd4deddfe60a57ef573c6d487290eab4bf0e1a98915a0a41a7d7d7faed3ad9b6869
6
+ metadata.gz: 80a4c7fe7f13a0149c4cf8147129646d58675b46b1328922d0f128ebe53eaf4be4664710fdc499924777efbaa124373e5c8be9c3536f7a8bcbb83e1f95463e8d
7
+ data.tar.gz: 50cdd13a3a4e88f4cf31d89a32c4a342b0f0b427667a20f5f82c4607669cf256ae20b598e9162a59c3d44da7ca218f9b3df0db89e20be82d9005be4ba61e749f
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.1
4
+ version: 0.11.6
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-03-02 00:00:00.000000000 Z
13
+ date: 2021-05-21 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.1
21
+ version: 1.101.6
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.1
28
+ version: 1.101.6
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.1
35
+ version: 0.11.6
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.1
42
+ version: 0.11.6
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: http://decko.org
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.0.3
78
+ rubygems_version: 3.1.4
74
79
  signing_key:
75
80
  specification_version: 4
76
81
  summary: card comments