jekyll-attendease 0.6.32 → 0.6.33a
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6f27dee10ffd24b64df55711e05533bbc51eae4
|
4
|
+
data.tar.gz: 8732077d6536c5d76d69bdb9de1f8fce116fd98e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8bf4a54516ca5bba45b94eaee7eafb3b008abc0dc708f5a35ebdd960c31249a92b1e3ddd8cf0e0813a5200b53feb092dcaf6457af0f4c01adf9c802c9099e7e
|
7
|
+
data.tar.gz: f590b38cabb21183684a3ebd71b195e39ad3a149005361cda8fb3c4d8ecd255505db5bbc7d97448f3b55d60ac39a168b702293961dbec492df97a30921001491
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module AttendeasePlugin
|
3
|
+
class SitePageBlocksJson < StaticFile
|
4
|
+
def initialize(site, base, page)
|
5
|
+
@site = site
|
6
|
+
@base = base
|
7
|
+
@dir = page['slug']
|
8
|
+
@name = 'index.json'
|
9
|
+
|
10
|
+
self.process(@name)
|
11
|
+
|
12
|
+
#require 'pry'
|
13
|
+
#binding.pry
|
14
|
+
#self.read_yaml(File.join(base, '_attendease', 'templates', 'pages'), 'default.html')
|
15
|
+
self.read_yaml(File.join(base, '_layouts'), "#{page['layout']}.html")
|
16
|
+
|
17
|
+
self.data['title'] = page['title']
|
18
|
+
self.data['layout'] = page['layout']
|
19
|
+
|
20
|
+
zones = {}
|
21
|
+
|
22
|
+
# create zone buckets
|
23
|
+
page['block_instances'].each do |i|
|
24
|
+
zones[i['zone']] = [] if zones[i['zone']].nil?
|
25
|
+
zones[i['zone']] << i
|
26
|
+
end
|
27
|
+
|
28
|
+
# sort each bucket by widget weight
|
29
|
+
zones.each do |k, zone|
|
30
|
+
zone.sort! { |x, y| x['weight'] <=> y['weight'] }
|
31
|
+
self.data[k] = ''
|
32
|
+
zone.each do |i|
|
33
|
+
self.data[k] << i['rendered_html']
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
self.data['site_page'] = page
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
@@ -192,18 +192,23 @@ _EOT
|
|
192
192
|
else
|
193
193
|
case env
|
194
194
|
when 'development'
|
195
|
-
url = '//dashboard.localhost.attendease.com/webpack_assets/
|
195
|
+
url = '//dashboard.localhost.attendease.com/webpack_assets/block-renderer.bundle.js'
|
196
|
+
style_url = '//dashboard.localhost.attendease.com/webpack_assets/block-renderer.css'
|
196
197
|
when 'prerelease'
|
197
198
|
url = '//cdn.attendease.com/blockrenderer/prerelease-latest.js'
|
199
|
+
style_url = '//cdn.attendease.com/blockrenderer/prerelease-latest.css'
|
198
200
|
when 'preview'
|
199
201
|
url = '//cdn.attendease.com/blockrenderer/ci-latest.js'
|
202
|
+
style_url = '//cdn.attendease.com/blockrenderer/ci-latest.css'
|
200
203
|
else
|
201
|
-
url = '//
|
204
|
+
url = '//cdn.attendease.com/blockrenderer/latest.js'
|
205
|
+
style_url = '//cdn.attendease.com/blockrenderer/latest.css'
|
202
206
|
end
|
203
207
|
end
|
204
208
|
|
205
209
|
script << <<_EOT
|
206
210
|
<script type="text/javascript" src="#{ url }"></script>
|
211
|
+
<link rel="stylesheet" type="text/css" href="#{style_url}" />
|
207
212
|
_EOT
|
208
213
|
|
209
214
|
script
|
@@ -90,7 +90,8 @@ RSpec.describe "Jekyll Attendease tags" do
|
|
90
90
|
it { is_expected.to match(/orgApiEndpoint: "https:\/\/foobar\.org\/api"/) }
|
91
91
|
it { is_expected.to match(/orgId: "batbaz"/) }
|
92
92
|
it { is_expected.to match(/authApiEndpoint: "https:\/\/foobar.auth\/api"/) }
|
93
|
-
it { is_expected.to match(/
|
93
|
+
it { is_expected.to match(/cdn.attendease.com\/blockrenderer\/latest.js/) }
|
94
|
+
it { is_expected.to match(/cdn.attendease.com\/blockrenderer\/latest.css/) }
|
94
95
|
it { is_expected.to_not match(/orgLocales/) }
|
95
96
|
end
|
96
97
|
|
@@ -107,7 +108,8 @@ RSpec.describe "Jekyll Attendease tags" do
|
|
107
108
|
it { is_expected.to match(/orgApiEndpoint: "https:\/\/foobar\/api"/) }
|
108
109
|
it { is_expected.to match(/orgId: "foobar"/) }
|
109
110
|
it { is_expected.to match(/authApiEndpoint: "https:\/\/foobar.auth\/api"/) }
|
110
|
-
it { is_expected.to match(/
|
111
|
+
it { is_expected.to match(/cdn.attendease.com\/blockrenderer\/latest.js/) }
|
112
|
+
it { is_expected.to match(/cdn.attendease.com\/blockrenderer\/latest.css/) }
|
111
113
|
it { is_expected.to match(/orgLocales: \["en", "fr", "it", "es", "de"\]/) }
|
112
114
|
|
113
115
|
it { is_expected.to_not match(/eventApiEndpoint/) }
|
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.
|
4
|
+
version: 0.6.33a
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Wood
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- lib/jekyll/attendease_plugin/schedule_session_page.rb
|
184
184
|
- lib/jekyll/attendease_plugin/schedule_sessions_page.rb
|
185
185
|
- lib/jekyll/attendease_plugin/site_page.rb
|
186
|
+
- lib/jekyll/attendease_plugin/site_page_blocks_json.rb
|
186
187
|
- lib/jekyll/attendease_plugin/site_pages_generator.rb
|
187
188
|
- lib/jekyll/attendease_plugin/sponsor_generator.rb
|
188
189
|
- lib/jekyll/attendease_plugin/sponsors_index_page.rb
|
@@ -233,9 +234,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
234
|
version: '0'
|
234
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
236
|
requirements:
|
236
|
-
- - "
|
237
|
+
- - ">"
|
237
238
|
- !ruby/object:Gem::Version
|
238
|
-
version:
|
239
|
+
version: 1.3.1
|
239
240
|
requirements: []
|
240
241
|
rubyforge_project:
|
241
242
|
rubygems_version: 2.2.5
|
@@ -243,17 +244,17 @@ signing_key:
|
|
243
244
|
specification_version: 4
|
244
245
|
summary: Attendease event helper for Jekyll
|
245
246
|
test_files:
|
246
|
-
- spec/
|
247
|
-
- spec/
|
248
|
-
- spec/lib/jekyll/attendease_plugin/event_template_generator_spec.rb
|
249
|
-
- spec/lib/jekyll/attendease_plugin/filters_spec.rb
|
250
|
-
- spec/lib/jekyll/attendease_plugin/helpers_spec.rb
|
251
|
-
- spec/lib/jekyll/attendease_plugin/organization_data_generator_spec.rb
|
247
|
+
- spec/spec_helper.rb
|
248
|
+
- spec/support/fixtures_helpers.rb
|
252
249
|
- spec/lib/jekyll/attendease_plugin/pre_zero_point_six_link_redirect_generator_spec.rb
|
253
|
-
- spec/lib/jekyll/attendease_plugin/
|
250
|
+
- spec/lib/jekyll/attendease_plugin/sponsor_generator_spec.rb
|
254
251
|
- spec/lib/jekyll/attendease_plugin/site_page_spec.rb
|
255
252
|
- spec/lib/jekyll/attendease_plugin/site_pages_generator_spec.rb
|
256
|
-
- spec/lib/jekyll/attendease_plugin/
|
253
|
+
- spec/lib/jekyll/attendease_plugin/event_layout_generator_spec.rb
|
254
|
+
- spec/lib/jekyll/attendease_plugin/helpers_spec.rb
|
255
|
+
- spec/lib/jekyll/attendease_plugin/organization_data_generator_spec.rb
|
257
256
|
- spec/lib/jekyll/attendease_plugin/tags_spec.rb
|
258
|
-
- spec/
|
259
|
-
- spec/
|
257
|
+
- spec/lib/jekyll/attendease_plugin/event_template_generator_spec.rb
|
258
|
+
- spec/lib/jekyll/attendease_plugin/filters_spec.rb
|
259
|
+
- spec/lib/jekyll/attendease_plugin/schedule_generator_spec.rb
|
260
|
+
- spec/lib/jekyll/attendease_plugin/event_data_generator_spec.rb
|