jekyll-attendease 0.6.25i → 0.6.25j

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: f9a978e399efc30da0ba4f98da8fda63ec279410
4
- data.tar.gz: 029818fb5874b36b093927fd78218fee91c64b5d
3
+ metadata.gz: 56dcb916a3bdece1199cc5f201cc1aa857845161
4
+ data.tar.gz: 62ecc8965d532e0bfc34bf7954d8420cdf7db4ba
5
5
  SHA512:
6
- metadata.gz: 5708eb90645c10ef7e56d69f885238863c4b81442201f503ca64381ae72741823d3c945d1f29bd0ba43c6e410b6d0d614ce6541e09bbee6c6562b2f870504e22
7
- data.tar.gz: 67b3250fab9245b87f7342008f84c219e85e5c3dd1ef2be7083486371be27f42511a2357fc3e4212cd2e0fc83575da58d9cc0cb6988b082ccdc2b5ccf701fc40
6
+ metadata.gz: 2bfc2d5f8f168fbed0c949bf4b310b3ee100bd981fe9977864bc0ef710e559f9a5b1a101b3415626fbfe7d19f1c358c89cfd893374580093b21304f55435207b
7
+ data.tar.gz: 3625c36a24ab0cbd6dd721f66f9ce29850b0d10321732687650ea7567ac912f3584ea52cd7af2a06b6097496cca59fa87ea789ddfea402339df322738f04e0dc
@@ -84,7 +84,11 @@ module Jekyll
84
84
  File.open(file, 'w+') { |f| f.write(response.body) }
85
85
  end
86
86
  else
87
- raise "Request failed for #{@attendease_config['api_host']}api/#{request_filename}. Is your Attendease api_host site properly in _config.yml?"
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
88
92
  end
89
93
  end
90
94
 
@@ -104,7 +104,7 @@ module Jekyll
104
104
  pages.sort! { |a, b| a['weight'] <=> b['weight'] }
105
105
  key_mapping = { 'schedule' => 'sessions' }
106
106
  pages.select { |p| p['top_level'] }.each do |page|
107
- if page['active'] || !page['hidden']
107
+ if page['active'] && !page['hidden']
108
108
  # only activate nav links if there is content
109
109
  config_key = "has_#{key_mapping[page['page_key']] || page['page_key']}"
110
110
  if config[config_key].nil? || (!config[config_key].nil? && config[config_key] == true)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.25i'
3
+ VERSION = '0.6.25j'
4
4
  end
5
5
  end
@@ -55,6 +55,9 @@ RSpec.describe "Jekyll Attendease tags" do
55
55
  context "{% attendease_nav %}" do
56
56
  subject { render("{% attendease_nav %}{% raw %}<li><a href=\"/{{ page.slug }}/\">{{ page.name }}</a></li>{% endraw %}{% endattendease_nav %}") }
57
57
  it { is_expected.to match(/<li><a href="\/schedule\/"/) }
58
+
59
+ # hidden page
60
+ it { is_expected.to_not match(/<li><a href="\/test\/"/) }
58
61
  end
59
62
  end
60
63
 
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.25i
4
+ version: 0.6.25j
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wood
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  version: 1.3.1
236
236
  requirements: []
237
237
  rubyforge_project:
238
- rubygems_version: 2.2.5
238
+ rubygems_version: 2.4.5.2
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: Attendease event helper for Jekyll