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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56dcb916a3bdece1199cc5f201cc1aa857845161
|
4
|
+
data.tar.gz: 62ecc8965d532e0bfc34bf7954d8420cdf7db4ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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']
|
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)
|
@@ -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.
|
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.
|
238
|
+
rubygems_version: 2.4.5.2
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
241
|
summary: Attendease event helper for Jekyll
|