jap_mag 1.4.2 → 1.4.4

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: f935d63a9bee80b8fb48337976b552478f1ba382c95e825a544880b1b38d9b29
4
- data.tar.gz: 5605139d72747e7a967d4e75bf98355f3d47952c9492b739f34e1218e6183dbc
3
+ metadata.gz: 28d11e6ac222ae68e80b8ad7488211408cb694a959f9cf829d8bc528532877e0
4
+ data.tar.gz: 4c67566640dae0759694b27de2f7881598cc1cc30be7f505ee811b93e80c1d2e
5
5
  SHA512:
6
- metadata.gz: e5bafdff72acdb6d593a1633cd18314d6bb54f6433c87566c974c1289d70a345d5b601aebb9adeda136d2f799d3bf0ebe1f644847e41c2691a10f53c48b5f504
7
- data.tar.gz: 0c308548e44afa4a64347d2014fb06c9b7cf4b71af31d42b5ffd3aa31c7630e7794c792f79b346a10b0947f874b69dd7d04845b37e72f48313d00348a1916c7f
6
+ metadata.gz: f1387ab20a020626212be274d5e08d87b966a0bbd8386725de323484b8ff8d84a3427f3e7ffe1d2548fa81ee315a030c05f743c92e1b7a0a53be14f5c564ca66
7
+ data.tar.gz: 57392338083eaf6621dc15160296b3cb9b8f6ff23845d81a4dff6a549c2f79635fd6d53952884c501983ee95254b40e05a27b8c9df5495a202f1e78660aa813d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jap_mag (1.4.1)
4
+ jap_mag (1.4.3)
5
5
  will_paginate
6
6
 
7
7
  GEM
@@ -75,7 +75,9 @@ module JapMagWidgetsHelper
75
75
  current = ((params[:scope] == scope[:key].to_s) or (scope[:default] and scope[:default] == true and params[:scope].blank?))
76
76
  klass = %w(nav-link)
77
77
  klass << :active if current
78
- link = link_to("#{content_tag(:span, scope[:text])} (#{scope[:count]})".html_safe, url, class: klass.join(' '))
78
+
79
+ count = scope[:count].present? ? "(#{scope[:count]})" : nil
80
+ link = link_to("#{content_tag(:span, scope[:text])} #{count}".html_safe, url, class: klass.join(' '))
79
81
 
80
82
  concat content_tag(:li, link, class: 'nav-item')
81
83
  end
@@ -1,3 +1,3 @@
1
1
  module JapMag
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jap_mag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - DING Yu
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-14 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate
@@ -77,7 +77,7 @@ files:
77
77
  homepage: https://github.com/felixding/JapMag
78
78
  licenses: []
79
79
  metadata: {}
80
- post_install_message:
80
+ post_install_message:
81
81
  rdoc_options: []
82
82
  require_paths:
83
83
  - lib
@@ -92,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.3.5
96
- signing_key:
95
+ rubygems_version: 3.3.26
96
+ signing_key:
97
97
  specification_version: 4
98
98
  summary: jap_mag-
99
99
  test_files: