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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 379bfd564949ae1c4ad570b5fff66e380a078df2
|
|
4
|
+
data.tar.gz: ea5bf181464e42d48fc122b525dcea88a6c8fe82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
@@ -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(/
|
|
88
|
-
it { is_expected.to match(/
|
|
89
|
-
it { is_expected.to match(/
|
|
90
|
-
it { is_expected.to match(/
|
|
91
|
-
it { is_expected.to match(/
|
|
92
|
-
it { is_expected.to match(/
|
|
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(/
|
|
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(/
|
|
107
|
-
it { is_expected.to match(/
|
|
108
|
-
it { is_expected.to match(/
|
|
109
|
-
it { is_expected.to match(/
|
|
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(/
|
|
111
|
+
it { is_expected.to match(/orgLocales: \["en", "fr", "it", "es", "de"\]/) }
|
|
112
112
|
|
|
113
|
-
it { is_expected.to_not match(/
|
|
114
|
-
it { is_expected.to_not match(/
|
|
113
|
+
it { is_expected.to_not match(/eventApiEndpoint/) }
|
|
114
|
+
it { is_expected.to_not match(/eventId/) }
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
end
|