commontator 6.3.1 → 6.3.2

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: 8bee013bb63d8967e048c353d6f71de9fe0ac5cfd4b40530e065d9cb11f8a14e
4
- data.tar.gz: 9fb7f5b8d45b8264235cb77ced85d07dbda0667a2f3aaf03053f67abe0aa75fc
3
+ metadata.gz: 4be189fd8c44438a5fe1717c74bfe09067f16dbaaccda6daf159e70213e2c39a
4
+ data.tar.gz: 6f62579a12c5b207ed9f879e3d473d654915c9fe1ac17dcc51ba0655502793c9
5
5
  SHA512:
6
- metadata.gz: 3ad713e82c9db2b3b64f53ef3baa0b1143ff9fc45f79a8b5964ecfd7c7ce3c4e0f19308e3b234e9dbfcae439d520bb056472d9415bf149831c313d231d4f447f
7
- data.tar.gz: b3e80f26aeccdf66161cd509e48f4f78f5c74f2cf9f78dddb387b7c9e37270d124a4e5183ce883912472ab452efc6907a795f80a02e59481da94494b01746c40
6
+ metadata.gz: b15a7623162ca1ff592e8eb3bd4e15e99d6514e744625686aff53a6cf523d4abf43bdbb070a6eafa8f09d1e992332288a8c053a5d2a11c676424f20c89d4a613
7
+ data.tar.gz: e79a8df63ac01a4f837db59f4cb0dd23fec1a633d0045a02825a1562791f161d592f58a68b3aa23231cbe32e3ede2c6a8192a0de45af9186ee684da5b44c61f5
@@ -1,3 +1,7 @@
1
+ require 'will_paginate/view_helpers/link_renderer'
2
+ require 'will_paginate/view_helpers/action_view'
3
+
4
+
1
5
  class Commontator::LinkRenderer < WillPaginate::ActionView::LinkRenderer
2
6
  protected
3
7
 
@@ -36,7 +36,7 @@
36
36
  <% is_deleted = comment.is_deleted? %>
37
37
  <% del_string = is_deleted ? 'undelete' : 'delete' %>
38
38
  <%= link_to t("commontator.comment.actions.#{del_string}"),
39
- commontator.polymorphic_path([del_string, comment]),
39
+ commontator.polymorphic_path([del_string.to_sym, comment]),
40
40
  data: is_deleted ? {} : { confirm: t('commontator.comment.actions.confirm_delete') },
41
41
  method: :put,
42
42
  id: "commontator-comment-#{comment.id}-#{del_string}",
@@ -7,7 +7,7 @@
7
7
  <% is_subscribed = !!thread.subscription_for(user) %>
8
8
  <% sub_string = is_subscribed ? 'unsubscribe' : 'subscribe' %>
9
9
  <%= link_to t("commontator.subscription.actions.#{sub_string}"),
10
- commontator.polymorphic_path([sub_string, thread]),
10
+ commontator.polymorphic_path([sub_string.to_sym, thread]),
11
11
  method: :put,
12
12
  id: "commontator-thread-#{thread.id}-#{sub_string}",
13
13
  class: sub_string,
@@ -54,7 +54,7 @@
54
54
  <% end %>
55
55
 
56
56
  <%= link_to t("commontator.thread.actions.#{close_string}"),
57
- commontator.polymorphic_path([close_string, thread]),
57
+ commontator.polymorphic_path([close_string.to_sym, thread]),
58
58
  data: is_closed ? {} :
59
59
  { confirm: t('commontator.thread.actions.confirm_close') },
60
60
  method: :put,
@@ -1 +1 @@
1
- COMMONTATOR_VERSION = '6.3.1'
1
+ COMMONTATOR_VERSION = '6.3.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commontator
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.1
4
+ version: 6.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-06 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -236,7 +236,7 @@ homepage: https://github.com/lml/commontator
236
236
  licenses:
237
237
  - MIT
238
238
  metadata: {}
239
- post_install_message:
239
+ post_install_message:
240
240
  rdoc_options: []
241
241
  require_paths:
242
242
  - lib
@@ -251,8 +251,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.2.7
255
- signing_key:
254
+ rubygems_version: 3.1.4
255
+ signing_key:
256
256
  specification_version: 4
257
257
  summary: Allows users to comment on any model in your application.
258
258
  test_files: []