jekyll-attendease 0.6.43 → 0.6.43.1

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
- SHA256:
3
- metadata.gz: a383ed68c2fe40c26ee45909d7d5c74c16f7447bc9c9dec8a98f1c10343898e3
4
- data.tar.gz: 459f26076d4a21f275116b654cb7225c5327540f76d9cba6c4c36db5bf39036e
2
+ SHA1:
3
+ metadata.gz: c74096b6b64ccfa195db812d2c030d07b8f29006
4
+ data.tar.gz: 7267410e708972e3084d712ab0bc4e4d48bad516
5
5
  SHA512:
6
- metadata.gz: a6269ba44c240236007be6c9cb3e5fcc77ec4e4d6677bc72f3d263b0ace5c8cebf0910d39a536b5a2c2686be78ce3af144ad74e00c118630cff81f801c1d63cc
7
- data.tar.gz: ff3e0d8131122294bd4f38ede27ebaa966b879024cbe1d1cbaa52e54fbcd8c9875aa425438a02d165201da9aa530d8337f89fe3acab5889f47c5686782b75888
6
+ metadata.gz: 8bc0f506a978100b8ab493696b5b8b8391361b65eab24a7ff4588065c5895cdc7568eb4049999620c560d5d7f97c4f570936e8997c0e50dc76d831b2a07bf98a
7
+ data.tar.gz: 796eaf09bc3e1a77662988889f518a24b3fb5bcdc750ee3429643a89787bdacd54f5df15f00098bf03b5f8ab399c1fc9b4ded2a7a272e5ebc06a13d5f975dd1e
@@ -278,8 +278,10 @@ _EOT
278
278
  site_settings = context.registers[:site].data['site_settings'].clone
279
279
  analytics = site_settings['analytics']
280
280
 
281
+ return '' if analytics.nil? \
282
+ || analytics['googleTagManagerId'].nil? \
283
+ || analytics['googleTagManagerId'].empty?
281
284
 
282
- return '' if analytics.nil? || !analytics['googleTagManagerId']
283
285
  script = <<_EOT
284
286
  <script>
285
287
  window.dataLayer = [];
@@ -301,7 +303,10 @@ _EOT
301
303
  site_settings = context.registers[:site].data['site_settings'].clone
302
304
  analytics = site_settings['analytics']
303
305
 
304
- return '' if analytics.nil? || !analytics['googleTagManagerId']
306
+ return '' if analytics.nil? \
307
+ || analytics['googleTagManagerId'].nil? \
308
+ || analytics['googleTagManagerId'].empty?
309
+
305
310
  script = <<_EOT
306
311
  <!-- Google Tag Manager (noscript) -->
307
312
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=#{analytics['googleTagManagerId']}"
@@ -317,6 +322,10 @@ _EOT
317
322
  site_settings = context.registers[:site].data['site_settings'].clone
318
323
  analytics = site_settings['analytics']
319
324
 
325
+ return '' if analytics.nil? \
326
+ || analytics['googleAnalyticsTrackingId'].nil? \
327
+ || analytics['googleAnalyticsTrackingId'].empty?
328
+
320
329
  return '' if analytics.nil? || !analytics['googleAnalyticsTrackingId']
321
330
 
322
331
  adwordsId = analytics['googleAnalyticsAdwordsId']
@@ -341,7 +350,10 @@ _EOT
341
350
  site_settings = context.registers[:site].data['site_settings'].clone
342
351
  analytics = site_settings['analytics']
343
352
 
344
- return '' if analytics.nil? || !analytics['linkedinInsightsId']
353
+ return '' if analytics.nil? \
354
+ || analytics['linkedinInsightsId'].nil? \
355
+ || analytics['linkedinInsightsId'].empty?
356
+
345
357
  script = <<_EOT
346
358
  <script type="text/javascript">
347
359
  _linkedin_partner_id = "#{analytics['linkedinInsightsId']}";
@@ -368,6 +380,9 @@ _EOT
368
380
  analytics = site_settings['analytics']
369
381
 
370
382
  return '' if analytics.nil? || !analytics['facebookPixelId']
383
+ return '' if analytics.nil? \
384
+ || analytics['facebookPixelId'].nil? \
385
+ || analytics['facebookPixelId'].empty?
371
386
  script = <<_EOT
372
387
  <!-- Facebook Pixel Code -->
373
388
  <script>
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.43'
3
+ VERSION = '0.6.43.1'
4
4
  end
5
5
  end
@@ -120,30 +120,35 @@ RSpec.describe "Jekyll Attendease tags" do
120
120
  subject { cms_render("{% attendease_analytics_gtm_head %}") }
121
121
 
122
122
  it { is_expected.to match(/Google Tag Manager/) }
123
+ it { is_expected.to match(/foo/) }
123
124
  end
124
125
 
125
126
  describe "{% attendease_analytics_gtm_body %}" do
126
127
  subject { cms_render("{% attendease_analytics_gtm_body %}") }
127
128
 
128
129
  it { is_expected.to match(/Google Tag Manager \(noscript\)/) }
130
+ it { is_expected.to match(/foo/) }
129
131
  end
130
132
 
131
133
  describe "{% attendease_analytics_ga_gtag %}" do
132
134
  subject { cms_render("{% attendease_analytics_ga_gtag %}") }
133
135
 
134
136
  it { is_expected.to match(/Global Site Tag \(gtag.js\)/) }
137
+ it { is_expected.to match(/foo/) }
135
138
  end
136
139
 
137
140
  describe "{% attendease_analytics_linked_in %}" do
138
141
  subject { cms_render("{% attendease_analytics_linkedin %}") }
139
142
 
140
143
  it { is_expected.to match(/_linkedin_partner_id = "foo";/) }
144
+ it { is_expected.to match(/foo/) }
141
145
  end
142
146
 
143
147
  describe "{% attendease_analytics_facebook %}" do
144
148
  subject { cms_render("{% attendease_analytics_facebook %}") }
145
149
 
146
150
  it { is_expected.to match(/Facebook Pixel Code/) }
151
+ it { is_expected.to match(/foo/) }
147
152
  end
148
153
  end
149
154
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-attendease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.43
4
+ version: 0.6.43.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wood
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-11-22 00:00:00.000000000 Z
14
+ date: 2018-11-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: httparty
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  requirements: []
240
240
  rubyforge_project:
241
- rubygems_version: 2.7.7
241
+ rubygems_version: 2.2.5
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: Attendease event helper for Jekyll