jap_mag 1.4.3 → 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: c7daaa3350ef3ac573901e3a17449442385db09a92fe853bcddd6fbb5e0a957f
4
- data.tar.gz: 1b99b84a47affc024cc5861d8f8f59907578b8c9bedbf253bc9cec701227a1f0
3
+ metadata.gz: 28d11e6ac222ae68e80b8ad7488211408cb694a959f9cf829d8bc528532877e0
4
+ data.tar.gz: 4c67566640dae0759694b27de2f7881598cc1cc30be7f505ee811b93e80c1d2e
5
5
  SHA512:
6
- metadata.gz: '01654418aba5ce14c4f835e8930e07ffb388d5556aa0ac8fabcf1472b9f24ab5e83faedec8df450d5322db01668182a7f91d05c313628729bb1a547e861dad77'
7
- data.tar.gz: 0eb99fd441a1ea76f07b261a99108b822c6f7808417b91a97b5aaea08cd50cc023bd97eaf37dbce75f29085c91a3365e5d8fb97022df65e943b27e9b3b4dc28b
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.2)
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.3"
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.3
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: