jekyll-attendease 0.6.26j → 0.6.26k

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
  SHA1:
3
- metadata.gz: cd03907bc1e4684082076948f5d797fac51191a8
4
- data.tar.gz: 04d35d69866ef8e45284ea365d0147b087b82aa4
3
+ metadata.gz: 379bfd564949ae1c4ad570b5fff66e380a078df2
4
+ data.tar.gz: ea5bf181464e42d48fc122b525dcea88a6c8fe82
5
5
  SHA512:
6
- metadata.gz: f068a309df08a10113ddf0e0dc826e5c53ad1cdefc9b0b92906e8234a99e34951d2f0273170073cbc9a2eb2f6a190ca88c4fcbb0e8063f06472797e1239ddd40
7
- data.tar.gz: 35fb2f473b63a2afa85cb1ebfd3a51ce8a467a841aff7183345b6c13f00791e481920d2c3972ad32a6f6d107a339a786e67619db6956a3d08b01476046df6345
6
+ metadata.gz: 432529de6d5490f78a0fca84756c7d20ccf4b5ea186d1d7cded1012c0f59bfb946c3cb2497c6ea82c6063218d1f3361677202307cd58b45a228924742a4e223b
7
+ data.tar.gz: 125574cdfa3f8d8ee414122c92846bd4dd70a6dc41c53102d8b532fe1c113012718d09fd65036c4ea03582a6798144231614dea521ec5678991dd0a954948720
@@ -52,3 +52,16 @@ Jekyll::Hooks.register :site, :after_reset do |site|
52
52
  end
53
53
  end
54
54
 
55
+ Jekyll::Hooks.register :site, :post_write do |site|
56
+ if pages = site.data['pages']
57
+ pages.each do |page|
58
+ if File.exists?(file = File.join(site.config['source'], page['slug'], 'index.html'))
59
+ File.unlink(file)
60
+ end
61
+
62
+ if File.exists?(file = File.join(site.config['source'], page['slug'], 'index.json'))
63
+ File.unlink(file)
64
+ end
65
+ end
66
+ end
67
+ end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.26j'
3
+ VERSION = '0.6.26k'
4
4
  end
5
5
  end
@@ -84,14 +84,14 @@ RSpec.describe "Jekyll Attendease tags" do
84
84
  context "{% attendease_block_renderer %} for event" do
85
85
  subject { render("{% attendease_block_renderer %}") }
86
86
 
87
- it { is_expected.to match(/window.AttendeaseConstants.locale = "en";/) }
88
- it { is_expected.to match(/window.AttendeaseConstants.eventApiEndpoint = "https:\/\/foobar\/api";/) }
89
- it { is_expected.to match(/window.AttendeaseConstants.eventId = "foobar";/) }
90
- it { is_expected.to match(/window.AttendeaseConstants.orgApiEndpoint = "https:\/\/foobar\.org\/api";/) }
91
- it { is_expected.to match(/window.AttendeaseConstants.orgId = "batbaz";/) }
92
- it { is_expected.to match(/window.AttendeaseConstants.authApiEndpoint = "https:\/\/foobar.auth\/";/) }
87
+ it { is_expected.to match(/locale: "en"/) }
88
+ it { is_expected.to match(/eventApiEndpoint: "https:\/\/foobar\/api"/) }
89
+ it { is_expected.to match(/eventId: "foobar"/) }
90
+ it { is_expected.to match(/orgApiEndpoint: "https:\/\/foobar\.org\/api"/) }
91
+ it { is_expected.to match(/orgId: "batbaz"/) }
92
+ it { is_expected.to match(/authApiEndpoint: "https:\/\/foobar.auth\/"/) }
93
93
  it { is_expected.to match(/dashboard.attendease.com\/webpack_assets\/blockrenderer.bundle.js/) }
94
- it { is_expected.to_not match(/window.AttendeaseConstants.orgLocales/) }
94
+ it { is_expected.to_not match(/orgLocales/) }
95
95
  end
96
96
 
97
97
  context "{% attendease_block_renderer %} with custom bundle URL" do
@@ -103,15 +103,15 @@ RSpec.describe "Jekyll Attendease tags" do
103
103
  context "{% attendease_block_renderer %} for an org portal" do
104
104
  subject { org_render("{% attendease_block_renderer %}") }
105
105
 
106
- it { is_expected.to match(/window.AttendeaseConstants.locale = "en";/) }
107
- it { is_expected.to match(/window.AttendeaseConstants.orgApiEndpoint = "https:\/\/foobar\/api";/) }
108
- it { is_expected.to match(/window.AttendeaseConstants.orgId = "foobar";/) }
109
- it { is_expected.to match(/window.AttendeaseConstants.authApiEndpoint = "https:\/\/foobar.auth\/";/) }
106
+ it { is_expected.to match(/locale: "en"/) }
107
+ it { is_expected.to match(/orgApiEndpoint: "https:\/\/foobar\/api"/) }
108
+ it { is_expected.to match(/orgId: "foobar"/) }
109
+ it { is_expected.to match(/authApiEndpoint: "https:\/\/foobar.auth\/"/) }
110
110
  it { is_expected.to match(/dashboard.attendease.com\/webpack_assets\/blockrenderer.bundle.js/) }
111
- it { is_expected.to match(/window.AttendeaseConstants.orgLocales = \["en", "fr", "it", "es", "de"\];/) }
111
+ it { is_expected.to match(/orgLocales: \["en", "fr", "it", "es", "de"\]/) }
112
112
 
113
- it { is_expected.to_not match(/window.AttendeaseConstants.eventApiEndpoint/) }
114
- it { is_expected.to_not match(/window.AttendeaseConstants.eventId/) }
113
+ it { is_expected.to_not match(/eventApiEndpoint/) }
114
+ it { is_expected.to_not match(/eventId/) }
115
115
  end
116
116
 
117
117
  end
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.26j
4
+ version: 0.6.26k
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wood