jekyll-uj-powertools 1.0.9 → 1.0.10

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: 69b1080a5753842ce99a31f4672dcfdb49ba3b1854a73f21a57a3a9e80b64e5d
4
- data.tar.gz: 3b346f6127275711633ebf4249bf7943856d564c1e624bb4b272f8e584b23ce6
3
+ metadata.gz: 5242adfc2a8be4ae1dfb522cae775c80d7ffe351593e890d3acfa1986d9b2cd4
4
+ data.tar.gz: 46b790d41d3027500e34dd3268e7c0c69e2516b841c6e1fd9b9342b15aa2cdf4
5
5
  SHA512:
6
- metadata.gz: 5546fdd6f425b90bfb78984488a4a1251eb92aa24b7566ded1827fb5e6a11e7377220dfdc4440852274a4afcf863d53aa1e3659bb1a96fcfdb37475dc931aed7
7
- data.tar.gz: 6089023c4c5d8c57feb8f11e45c0588ab80816e7dd2a9d6b578ac1d480a625277537fddcca545513c6023db91b2e87a345d063166635e77e76b346c961c2729b
6
+ metadata.gz: d7df5f81678360ae4d33e33cd5fbd5e3e0544e193a7d18732f6399294345bc0f644bdd237e956f3ff14cb113a13527e6d09c72169e1565931532688d06c212c2
7
+ data.tar.gz: e391beb804e5d8ca715dbb221f5fc4705f2d8d2a141ad5fbcb414dede1de6efbf4fe45aa6ad2592b358418b6ed275ad04711c717123dcc6ec218f080ce63faa9
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module UJPowertools
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
5
5
  end
@@ -4,7 +4,11 @@ module Jekyll
4
4
  module UJPowertools
5
5
  # Strip ads from the input
6
6
  def uj_strip_ads(input)
7
- input.gsub(/\s*<ad-unit>[\s\S]*?<\/ad-unit>\s*/m, '')
7
+ input
8
+ # Remove HTML <ad-units>
9
+ .gsub(/\s*<ad-unit>[\s\S]*?<\/ad-unit>\s*/m, '')
10
+ # Remove includes starting with "/master/modules/adunits/"
11
+ .gsub(/\s*\{% include \/master\/modules\/adunits\/.*? %\}\s*/m, '')
8
12
  end
9
13
 
10
14
  # Escape a string for use in JSON
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.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - ITW Creative Works