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: af6180f6a2219c197b0cfb2c5397ce920f7334e7
4
- data.tar.gz: 45bd9c4c28ed6beee54a7f4d295af7aa263e2fbd
3
+ metadata.gz: d6f27dee10ffd24b64df55711e05533bbc51eae4
4
+ data.tar.gz: 8732077d6536c5d76d69bdb9de1f8fce116fd98e
5
5
  SHA512:
6
- metadata.gz: ad3a09e8353b505e2ca2454b7e50f6aafbb70c9ed7554da09a41dd2e0641474767ed74dbceceb6cb1210270c0b914178190d8c929f024af98222986666164807
7
- data.tar.gz: c4ecd5f0bbb593a49be33c5fdeb6844f35a57ea3dd601d3471fa1a9be3bb7a5238bef512004029efef3decfb7412412bb9c0f557fcd9df7ef835eccf8929b639
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/blockrenderer.bundle.js'
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 = '//dashboard.attendease.com/webpack_assets/blockrenderer.bundle.js'
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
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.32'
3
+ VERSION = '0.6.33a'
4
4
  end
5
5
  end
@@ -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(/dashboard.attendease.com\/webpack_assets\/blockrenderer.bundle.js/) }
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(/dashboard.attendease.com\/webpack_assets\/blockrenderer.bundle.js/) }
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.32
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: '0'
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/lib/jekyll/attendease_plugin/event_data_generator_spec.rb
247
- - spec/lib/jekyll/attendease_plugin/event_layout_generator_spec.rb
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/schedule_generator_spec.rb
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/sponsor_generator_spec.rb
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/spec_helper.rb
259
- - spec/support/fixtures_helpers.rb
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