jekyll-attendease 0.9.9.5 → 0.9.9.7
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 +4 -4
- data/lib/jekyll/attendease_plugin/organization_data_generator.rb +2 -4
- data/lib/jekyll/attendease_plugin/site_page_data.rb +11 -12
- data/lib/jekyll/attendease_plugin/version.rb +1 -1
- data/spec/lib/jekyll/attendease_plugin/event_data_generator_spec.rb +5 -0
- data/spec/lib/jekyll/attendease_plugin/organization_data_generator_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27bb0efe6fc13a985d70ab313af62ad71d50936
|
4
|
+
data.tar.gz: 9ff2434f883401c709cd4d6a5c90dd40bca46c9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9850418be9545edb1bd5df0da04f9863499853f39965269ca642856d2f609ab368d44a89bfc522acfacebddd783a208510c6bd16a54ca86c46937b6a296693c8
|
7
|
+
data.tar.gz: a39f539a8bc4e24f69f670deeb5882114e0638c4473415367cd2475a7b08e1e0e0c241dc1bf304b73c8197cff7a06edaf69c342026413176760ff1f7c5aad6a7
|
@@ -18,7 +18,7 @@ module Jekyll
|
|
18
18
|
|
19
19
|
FileUtils.mkdir_p(@attendease_data_path) unless File.exists?(@attendease_data_path)
|
20
20
|
|
21
|
-
data_files = %w{ pages site_settings }.map { |m| "#{m}.json"}
|
21
|
+
data_files = %w{ pages site_settings mappable }.map { |m| "#{m}.json"}
|
22
22
|
|
23
23
|
data_files.each do |filename|
|
24
24
|
update_data = true
|
@@ -74,6 +74,4 @@ module Jekyll
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end
|
77
|
-
end
|
78
|
-
|
79
|
-
|
77
|
+
end
|
@@ -42,23 +42,22 @@ module Jekyll
|
|
42
42
|
if page['block_instances'].length
|
43
43
|
# create zone buckets
|
44
44
|
page['block_instances'].each do |i|
|
45
|
-
# go through all content
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
i[key][k] = render_with_substitutions(v, 'event' => site.data['event'], 'mappable' => site.data['mappable'])
|
53
|
-
end
|
45
|
+
# go through all content and perform substitutions
|
46
|
+
keys.each do |key|
|
47
|
+
i[key].each do |k, v|
|
48
|
+
if placeholder?(v)
|
49
|
+
# maintain the {{ t.foo }} variables
|
50
|
+
v.gsub!(/(\{\{\s*t\.[a-z_.]+\s*\}\})/, '{% raw %}\1{% endraw %}')
|
51
|
+
i[key][k] = render_with_substitutions(v, 'event' => site.data['event'], 'mappable' => site.data['mappable'])
|
54
52
|
end
|
55
53
|
end
|
54
|
+
end
|
56
55
|
|
57
|
-
|
58
|
-
|
59
|
-
end
|
56
|
+
unless site.data['mappable'].nil? || site.data['mappable'].empty?
|
57
|
+
perform_substitution!(i, 'mappable' => site.data['mappable'])
|
60
58
|
end
|
61
59
|
|
60
|
+
|
62
61
|
zones[i['zone']] = [] if zones[i['zone']].nil?
|
63
62
|
zones[i['zone']] << i
|
64
63
|
end
|
@@ -44,6 +44,11 @@ RSpec.describe Jekyll::AttendeasePlugin::EventDataGenerator do
|
|
44
44
|
expect(site.data['pages'].length).to eq(7)
|
45
45
|
end
|
46
46
|
|
47
|
+
it 'populates a site wide mappable array' do
|
48
|
+
expect(site.data['mappable'].class).to eq(Array)
|
49
|
+
expect(site.data['mappable'].length).to eq(1)
|
50
|
+
end
|
51
|
+
|
47
52
|
it 'populates a site wide event object' do
|
48
53
|
expect(site.data['event'].class).to eq(Hash)
|
49
54
|
end
|
@@ -14,6 +14,11 @@ RSpec.describe Jekyll::AttendeasePlugin::OrganizationDataGenerator do
|
|
14
14
|
expect(site.data['site_settings']['look_and_feel']['body_font_family']).to eq('serif')
|
15
15
|
end
|
16
16
|
|
17
|
+
it 'populates a site wide mappable array' do
|
18
|
+
expect(site.data['mappable'].class).to eq(Array)
|
19
|
+
expect(site.data['mappable'].length).to eq(1)
|
20
|
+
end
|
21
|
+
|
17
22
|
it 'responds to GET from HTTParty' do
|
18
23
|
expect(subject).to respond_to(:get)
|
19
24
|
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.9.9.
|
4
|
+
version: 0.9.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Wood
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2023-
|
15
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: httparty
|