jekyll-uj-powertools 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b1eeb74ef3c331414ed6d19cf45bbf23c595439772f135fc98abda18a49c375
4
- data.tar.gz: da2e48c85e00d36dc2c46fc0e7059d44cbe9e85030ab8ff3d5d65757aa6b653f
3
+ metadata.gz: 63f84288c3d38825104a042c4d8e31943900a2a7fc3646d6da3455141cafef7c
4
+ data.tar.gz: b2ee94e280628d5163086a6bd99015f1baa3c0d55e2505e9b273cbff92e13f6e
5
5
  SHA512:
6
- metadata.gz: 9044a5f544ffffc8b9b642057ebb016366109e110542e6a3ca40f8e0cfb14692798ef4c816d52860160168bc334d1f0e9222f61dc08a10a438957881cfb55c73
7
- data.tar.gz: 9fc1399673852cbc68df06a38821dd18330ee0b241e03e6a0f453bad1981fedd067f825a3a2a32e6f19a290fe7f59d5a5b3408b70ff4ed5ef570e819ca2376a0
6
+ metadata.gz: d42ee74a754c5b6e9c629e6acbe1618d968acee11b9422e87099aa9ca3f410be6e05c0f337c80ebebe1dece4613b97587a7b43475ff088c61b30cd8902c73117
7
+ data.tar.gz: 917c9d9d5689103a1086addbf171ac9881c5047c2791ddf842474d111155a6daaa88aadc940a46a557dfeea75dff28299b79932f4cecaf203e524ba13c6170a7
data/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
  <img src="https://img.shields.io/github/last-commit/itw-creative-works/jekyll-uj-powertools.svg">
19
19
  <br>
20
20
  <br>
21
- <a href="https://itwcreativeworks.com">Site</a> | <a href="https://www.npmjs.com/package/jekyll-uj-powertools">NPM Module</a> | <a href="https://github.com/itw-creative-works/jekyll-uj-powertools">GitHub Repo</a>
21
+ <a href="https://itwcreativeworks.com">Site</a> | <a href="https://rubygems.org/gems/jekyll-uj-powertools">Gem Page</a> | <a href="https://github.com/itw-creative-works/jekyll-uj-powertools">GitHub Repo</a>
22
22
  <br>
23
23
  <br>
24
24
  Meet <strong>jekyll-uj-powertools</strong>, your new best friend for developing with <a href="https://github.com/itw-creative-works/ultimate-jekyll">Ultimate jekyll</a>
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module UJPowertools
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
@@ -3,8 +3,8 @@ require "jekyll"
3
3
  module Jekyll
4
4
  module UJPowertools
5
5
  def strip_ads(input)
6
- # input.gsub(/\{% include \/master\/modules\/adunits[^%]*%\}/, '')
7
- input.gsub(/<!--\s*ADUNIT_TRIGGER_START\s*-->.*?<!--\s*ADUNIT_TRIGGER_END\s*-->/m, '')
6
+ # input.gsub(/<ad-unit>[\s\S]*?<\/ad-unit>/m, '')
7
+ input.gsub(/\s*<ad-unit>[\s\S]*?<\/ad-unit>\s*/m, '')
8
8
  end
9
9
 
10
10
  def json_escape(value)
@@ -17,7 +17,7 @@ RSpec.describe Jekyll::UJPowertools do
17
17
  # expect(dummy.strip_ads('No ads here')).to eq('No ads here')
18
18
  # end
19
19
  it 'removes ads from the string' do
20
- expect(dummy.remove_ads('This is <!-- ADUNIT_START -->and ad<!-- ADUNIT_END -->')).to eq('This is ')
20
+ expect(dummy.remove_ads('This is <!-- ADUNIT_TRIGGER_START -->and ad<!-- ADUNIT_TRIGGER_END -->')).to eq('This is ')
21
21
  end
22
22
 
23
23
  it 'returns the original string if no ads are present' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-uj-powertools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ITW Creative Works