jekyll-wns 4.2.3 → 4.2.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: 7b8350877bd321d5dfac3f0dccfa0948b465c4e6da9bbab5940ac7632b78f276
4
- data.tar.gz: 4c6b98b9e49be9ef52676690a3d852267f5f399780b2e11fa3d91324418cccb5
3
+ metadata.gz: bb627baf34799ff128961bfb4951d0ad258a585d9f2055ab6778ce6c1b96bc35
4
+ data.tar.gz: 335effd443906c28d24a8deaefe4ca74374df1430d1d52810942b49ee136bcc6
5
5
  SHA512:
6
- metadata.gz: 1ca1721d9cba746a21c27d2cd7a5c3ba838174895a8f395379f56997e66e540652032deae64a0e23ed4ab428c165e8ee5af88a41d69d551da256d4bab3e3a702
7
- data.tar.gz: 9f3d4c16938369be6fcbb8166c5563b1d846862cb43a4168e57acbe5c159d2b5a89966a44949ccfbb29fd691aa6fd4da645a29a33621a697b29ff4ec39cc2bdf
6
+ metadata.gz: a373750c9f956015afb529a83c9042e0006964247b29e90c94df33af293f209c45e99ec8d226792128bf6fc595e2c91ae331e805ca4f947f13c1ef7c62b3a086
7
+ data.tar.gz: ef3de6123b8a3aa2d7a2a70dd35a1789f5fe77c886ed22f9ef625a992354858c8187a996ff7032ece5d28ec7d14bfeba30b25a772cc24cb2f178e25da283a0a3
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.3"
5
+ spec.version = "4.2.4"
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."
@@ -8,12 +8,10 @@ module WNS
8
8
  end
9
9
 
10
10
  def self.label_pronounciation!(doc)
11
- if LabelPronounciation::enabled?(doc)
12
- wns = doc.site.config["wns"] || {}
13
- labels = wns["label_pronounciation"] || false
14
- for i in (0..(labels.length()) - 1) do
15
- doc.content = doc.content.gsub(Regexp.new("\b(#{labels[i]["term"]})\b"), "<span aria-label='#{labels[i]["pronounciation"]}'>\\1</span>")
16
- end
11
+ wns = doc.site.config["wns"] || {}
12
+ labels = wns["label_pronounciation"] || false
13
+ for i in (0..(labels.length()) - 1) do
14
+ doc.content = doc.content.gsub(Regexp.new("\b(#{labels[i]["term"]})\b"), "<span aria-label='#{labels[i]["pronounciation"]}'>\\1</span>")
17
15
  end
18
16
  end
19
17
  end
@@ -20,5 +20,5 @@ Jekyll::Hooks.register :posts, :pre_render do |document|
20
20
  end
21
21
 
22
22
  Jekyll::Hooks.register :posts, :post_render do |document|
23
- WNS::LabelPronounciation::label_pronounciation document
23
+ WNS::LabelPronounciation::label_pronounciation! document
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-wns
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.3
4
+ version: 4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thai Chung