jekyll-wns 4.2.5 → 4.2.6

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: a4f1cda838daed7f4d7a31f3bd9b8d4f375e0ea2ec7d650bbb178574e19867d1
4
- data.tar.gz: 34313ef55bdce009a6b7ea55d3954b274159921e6a3961c3f700a905c5baff49
3
+ metadata.gz: 7779b77ba5167e129adbc39ad22637ac3c1147933b2022be8b85f11df48a058d
4
+ data.tar.gz: b0cca7b1f03693fa931e9c0bd53435f994dc9546bd8238ee52f9cd43549eb070
5
5
  SHA512:
6
- metadata.gz: c15c3b9a8f5daedb9c658c9ffd84d4404baff3fc3f352e92dc059019ea077ccb990d41f34006fd5ab36de94059840c6d08aafea9053c1cd1dd58374c2d896f61
7
- data.tar.gz: 431dd444a0319cac151a9c3add92689a99ab2851953f2c186a4d9b18981972068bd89a1c36ac48eb9813c1f62fccb3461d272127a4aba49ddcb82213fcb35b53
6
+ metadata.gz: 66a106323738f47b582298e3291436fb92ce81e473d6f2f8b55a2b25e465b93709ce2a433aa8f9e1f3eac310f6a7ea077b9d7d25d6d8cd420fa64d5a2874de2f
7
+ data.tar.gz: 8361d9f635c4964906943b83945e8a45ebdf26d864c3f98aebf73088d5edb1e168db8bb8954083d572cba9da5f154045726bfab796889d98e31936e9c4e268ff
data/jekyll-wns.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-wns"
5
- spec.version = "4.2.5"
5
+ spec.version = "4.2.6"
6
6
  spec.authors = ["Thai Chung"]
7
7
  spec.email = ["mail@0xReki.de"]
8
8
  spec.summary = "Collection of Filters, Tags and Hooks I use."
@@ -9,7 +9,7 @@ module WNS
9
9
 
10
10
  def self.label_pronounciation!(doc)
11
11
  wns = doc.site.config["wns"] || {}
12
- labels = wns["label_pronounciation"] || false
12
+ labels = wns["label_pronounciation"] || []
13
13
  for i in (0..(labels.length()) - 1) do
14
14
  doc.content = doc.content.gsub(Regexp.new("\b(#{labels[i]["term"]})\b"), "<span aria-label='#{labels[i]["pronounciation"]}'>\\1</span>")
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-wns
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.5
4
+ version: 4.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thai Chung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-08 00:00:00.000000000 Z
11
+ date: 2022-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-mp3info