jekyll-attendease 0.6.25j → 0.6.25k

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: 56dcb916a3bdece1199cc5f201cc1aa857845161
4
- data.tar.gz: 62ecc8965d532e0bfc34bf7954d8420cdf7db4ba
3
+ metadata.gz: c8b620d0db1b91004b9d7c239d24c3cdc9f2241f
4
+ data.tar.gz: c3729714a5d44fa8ed75fd451ad6fe86f8dcb87b
5
5
  SHA512:
6
- metadata.gz: 2bfc2d5f8f168fbed0c949bf4b310b3ee100bd981fe9977864bc0ef710e559f9a5b1a101b3415626fbfe7d19f1c358c89cfd893374580093b21304f55435207b
7
- data.tar.gz: 3625c36a24ab0cbd6dd721f66f9ce29850b0d10321732687650ea7567ac912f3584ea52cd7af2a06b6097496cca59fa87ea789ddfea402339df322738f04e0dc
6
+ metadata.gz: 5e44ba2475373318e199941347217b7b880775b238bac646295c8e58beb17f99f7741b50434dfacd6f07ac110054ccef93606304e095e704dfc43eebccf203f0
7
+ data.tar.gz: f2b2e3fa7a426af36d88e3f56d6c4595c7c617f94e7a85f122b753e189b2d9df7eba157ad0a7593950e35ea12892de9ec04a440dc5b2b085c4b0b2d7e405c998
@@ -84,11 +84,7 @@ module Jekyll
84
84
  File.open(file, 'w+') { |f| f.write(response.body) }
85
85
  end
86
86
  else
87
- if file_name.match(/site_settings/)
88
- data = {}
89
- else
90
- raise "Request failed for #{@attendease_config['api_host']}api/#{request_filename}. Is your Attendease api_host site properly in _config.yml?"
91
- end
87
+ raise "Request failed for #{@attendease_config['api_host']}api/#{request_filename}. Is your Attendease api_host site properly in _config.yml?"
92
88
  end
93
89
  end
94
90
 
@@ -4,7 +4,7 @@ module Jekyll
4
4
  safe true
5
5
 
6
6
  def generate(site)
7
- if site.config['attendease']['has_sponsors']
7
+ if site.config['attendease']['has_sponsors'] && site.config['attendease']['generate_sponsor_pages']
8
8
  sponsors = site.data['sponsors']
9
9
 
10
10
  sponsor_levels = site.config['attendease']['event']['sponsor_levels']
@@ -39,4 +39,3 @@ module Jekyll
39
39
  end
40
40
  end
41
41
  end
42
-
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.25j'
3
+ VERSION = '0.6.25k'
4
4
  end
5
5
  end
@@ -75,6 +75,7 @@ RSpec.configure do |config|
75
75
  'venues_path_name' => 'venues',
76
76
  'base_layout' => 'layout',
77
77
  'generate_schedule_pages' => true,
78
+ 'generate_sponsor_pages' => true,
78
79
  'has_sessions' => true,
79
80
  'has_presenters' => true,
80
81
  'has_sponsors' => true,
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.25j
4
+ version: 0.6.25k
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: 2016-07-04 00:00:00.000000000 Z
14
+ date: 2017-03-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: httparty
@@ -180,7 +180,6 @@ files:
180
180
  - lib/jekyll/attendease_plugin/schedule_session_page.rb
181
181
  - lib/jekyll/attendease_plugin/schedule_sessions_page.rb
182
182
  - lib/jekyll/attendease_plugin/site_page.rb
183
- - lib/jekyll/attendease_plugin/site_page_blocks_json.rb
184
183
  - lib/jekyll/attendease_plugin/site_pages_generator.rb
185
184
  - lib/jekyll/attendease_plugin/sponsor_generator.rb
186
185
  - lib/jekyll/attendease_plugin/sponsors_index_page.rb
@@ -235,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
234
  version: 1.3.1
236
235
  requirements: []
237
236
  rubyforge_project:
238
- rubygems_version: 2.4.5.2
237
+ rubygems_version: 2.2.5
239
238
  signing_key:
240
239
  specification_version: 4
241
240
  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
-