jekyll-attendease 0.6.18.pre → 0.6.18.pre2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6b3eb7c34e7c368531dddf88035549e3509c8ad
|
4
|
+
data.tar.gz: 1087093ce7bd4f04726c271567367d05d58c364b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ef4e27beb28a7cdcbf2b542bcc623fa6f5b45a1dd7ce49e2c816c5af866010b0871608442efe0fadc2a0dda5d167d8966809c167757734c98721f1d7033129c
|
7
|
+
data.tar.gz: 1644320ecbc1f18ff49fc15a59f9ad5b5532e90738cd49320f2a9c898a735e6a7ae049fa8303de72d0fdbd9e909fdc6a5f47601887ccbdf3323294e6c0ec4ffa
|
@@ -85,6 +85,9 @@ module Jekyll
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
# make this data available to anything that wants it
|
89
|
+
site.data[File.basename(file_name, '.*')] = data
|
90
|
+
|
88
91
|
if data.is_a?(Hash)
|
89
92
|
if file_name == 'site.json'
|
90
93
|
# Adding to site config so we can access these variables globally wihtout using a Liquid Tag so we can use if/else
|
@@ -118,11 +121,6 @@ module Jekyll
|
|
118
121
|
event = JSON.parse(File.read("#{@attendease_data_path}/event.json"))
|
119
122
|
site.config['attendease']['event'] = event
|
120
123
|
|
121
|
-
# as well as all different resources
|
122
|
-
resources = %w{ site event sessions presenters rooms filters venues sponsors }
|
123
|
-
resources.each do |resource|
|
124
|
-
site.config['attendease'][resource] = JSON.parse(File.read("#{@attendease_data_path}/#{resource}.json"))
|
125
|
-
end
|
126
124
|
end
|
127
125
|
|
128
126
|
else
|
@@ -194,4 +194,12 @@ RSpec.describe Jekyll::AttendeasePlugin::ScheduleGenerator do
|
|
194
194
|
end
|
195
195
|
end
|
196
196
|
|
197
|
+
it 'makes all data available to the entire site' do
|
198
|
+
@site = build_site
|
199
|
+
|
200
|
+
expect(@site.data['event']['id']).to eq('foobar')
|
201
|
+
%w{ site templates event sessions presenters rooms filters venues sponsors lingo }.each do |key|
|
202
|
+
expect(@site.data.include?(key)).to eq(true)
|
203
|
+
end
|
204
|
+
end
|
197
205
|
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-attendease
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.18.
|
4
|
+
version: 0.6.18.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Wood
|
8
8
|
- Patrick Gibson
|
9
9
|
- Jamie Lubiner
|
10
|
+
- Antoine Censi
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
@@ -201,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
202
|
version: 1.3.1
|
202
203
|
requirements: []
|
203
204
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.
|
205
|
+
rubygems_version: 2.2.3
|
205
206
|
signing_key:
|
206
207
|
specification_version: 4
|
207
208
|
summary: Attendease event helper for Jekyll
|