jekyll-uj-powertools 1.0.4 → 1.0.5
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 +4 -4
- data/README.md +1 -1
- data/lib/jekyll-uj-powertools/version.rb +1 -1
- data/lib/jekyll-uj-powertools.rb +1 -2
- data/spec/jekyll-uj-powertools_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afb849d2453f8d1e7053f9ebe87b1bcfb5f65086c77bf9ac390f19824bca1901
|
4
|
+
data.tar.gz: 49f36fcb3a20ae9aff0f9593ffeaf837e3f054dbb8ced9ea8e5f5a8dcc7efd5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fefc884dec9d07873b9d4b76bcd993e94fd0ec5dff18f0986e3159ed400ee0c6389ab385e0a787427fc48b33ba41756d8d5d1d2487566cc3eff9bfebc47854f
|
7
|
+
data.tar.gz: ac05a9fe8effd523d3910a0f501cbc44ff4ddb31fdbcec3e9bbf8d0fa90e33ae9889bfcbd7d13d34f7a5936de2f97bff80fb7fac49f79cafa853a01e4d5eca46
|
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://
|
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>
|
data/lib/jekyll-uj-powertools.rb
CHANGED
@@ -3,8 +3,7 @@ require "jekyll"
|
|
3
3
|
module Jekyll
|
4
4
|
module UJPowertools
|
5
5
|
def strip_ads(input)
|
6
|
-
|
7
|
-
input.gsub(/<!--\s*ADUNIT_TRIGGER_START\s*-->.*?<!--\s*ADUNIT_TRIGGER_END\s*-->/m, '')
|
6
|
+
input.gsub(/<ad-unit>[\s\S]*?<\/ad-unit>/m, '')
|
8
7
|
end
|
9
8
|
|
10
9
|
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 <!--
|
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
|