jekyll-attendease 0.6.29 → 0.6.30.pre
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: 449826774ed54412fadaca4aabb6eae4488b41e8
|
4
|
+
data.tar.gz: 2001ff5cabd9209513482a5a858e4b78ff3333b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e53bb81b871fc528b7742eefd07e72744f6838c2df7898c0e49a82ec66d460ac6993cfc1e3dcfef73486f650c0512fc375d854df7a32435d2b25c335203954a3
|
7
|
+
data.tar.gz: 430a696897b7d70fbc87b5c82d77d128cf30b03b9dace545c9962a446b5b8110fd89c565dea0feedf53ce041508634ba290f0e2c59638b68f407cb30d20d3f73
|
@@ -34,7 +34,7 @@ module Jekyll
|
|
34
34
|
FileUtils.mkdir_p(@attendease_data_path)
|
35
35
|
|
36
36
|
if site.config.cms_theme?
|
37
|
-
data_files = %w{ site event pages portal_pages site_settings organization_site_settings }.map { |m| "#{m}.json"} << 'lingo.yml'
|
37
|
+
data_files = %w{ site event pages portal_pages site_settings organization_site_settings portal_published }.map { |m| "#{m}.json"} << 'lingo.yml'
|
38
38
|
else
|
39
39
|
data_files = %w{ site event sessions presenters rooms filters venues sponsors pages site_settings }.map { |m| "#{m}.json"} << 'lingo.yml'
|
40
40
|
end
|
@@ -52,6 +52,7 @@ RSpec.describe Jekyll::AttendeasePlugin::EventDataGenerator do
|
|
52
52
|
expect(site.data['site_settings'].class).to eq(Hash)
|
53
53
|
expect(site.data['site_settings']['look_and_feel']['body_font_family']).to eq('serif')
|
54
54
|
end
|
55
|
+
|
55
56
|
end
|
56
57
|
|
57
58
|
context 'new cms site' do
|
@@ -85,6 +86,11 @@ RSpec.describe Jekyll::AttendeasePlugin::EventDataGenerator do
|
|
85
86
|
expect(site.data['portal_pages'].length).to eq(2)
|
86
87
|
end
|
87
88
|
|
89
|
+
it 'populates a site wide portal published object' do
|
90
|
+
expect(site.data['portal_published'].class).to eq(Hash)
|
91
|
+
expect(site.data['portal_published']['portal_published']).to eq(true)
|
92
|
+
end
|
93
|
+
|
88
94
|
end
|
89
95
|
|
90
96
|
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.
|
4
|
+
version: 0.6.30.pre
|
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: 2017-
|
14
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: httparty
|
@@ -183,7 +183,6 @@ 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
|
187
186
|
- lib/jekyll/attendease_plugin/site_pages_generator.rb
|
188
187
|
- lib/jekyll/attendease_plugin/sponsor_generator.rb
|
189
188
|
- lib/jekyll/attendease_plugin/sponsors_index_page.rb
|
@@ -234,12 +233,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
233
|
version: '0'
|
235
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
235
|
requirements:
|
237
|
-
- - "
|
236
|
+
- - ">"
|
238
237
|
- !ruby/object:Gem::Version
|
239
|
-
version:
|
238
|
+
version: 1.3.1
|
240
239
|
requirements: []
|
241
240
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.
|
241
|
+
rubygems_version: 2.6.11
|
243
242
|
signing_key:
|
244
243
|
specification_version: 4
|
245
244
|
summary: Attendease event helper for Jekyll
|
@@ -1,42 +0,0 @@
|
|
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
|
-
|