jekyll-attendease 0.6.44c → 0.6.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/attendease_plugin/helpers.rb +1 -0
- data/lib/jekyll/attendease_plugin/tags.rb +1 -1
- data/lib/jekyll/attendease_plugin/version.rb +1 -1
- data/spec/lib/jekyll/attendease_plugin/helpers_spec.rb +4 -0
- data/spec/lib/jekyll/attendease_plugin/tags_spec.rb +10 -16
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbebb8491b67f2738994d41e3f6fe7eddce3c1e3
|
4
|
+
data.tar.gz: 415cd7728a7dd9260bb0dbb2698fb4aec17c0a33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23846fb4e64420facc35196153a90891280be96d7f587e3ed59e286eacd89007a2d26c8eacd1d0dd7520f48a4c469c157bdece86203dfce2fe7d1729ca653dc4
|
7
|
+
data.tar.gz: 822830adc985316bc431986dfd962a8c9d8071900b22ba85d249f6c419844d9ef9b16993fb147670b8a3a4d0b233ae2896ddefecae7927fa05400ed83b162c14
|
@@ -82,7 +82,6 @@ module Jekyll
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
#require 'pry'
|
86
85
|
class PortalNavigationTag < Liquid::Block
|
87
86
|
def initialize(tag_name, params, tokens)
|
88
87
|
super
|
@@ -205,6 +204,7 @@ module Jekyll
|
|
205
204
|
'analytics' => analytics
|
206
205
|
}
|
207
206
|
end
|
207
|
+
|
208
208
|
script = <<_EOT
|
209
209
|
<script type="text/javascript">
|
210
210
|
(function(w) {
|
@@ -65,5 +65,9 @@ RSpec.describe Jekyll::AttendeasePlugin::Helpers do
|
|
65
65
|
it 'only has the declared keys in each page object' do
|
66
66
|
expect(public_pages[0].keys.length).to eq(8)
|
67
67
|
end
|
68
|
+
|
69
|
+
it 'handles nil input' do
|
70
|
+
expect(Jekyll::AttendeasePlugin::Helpers.public_pages(nil)).to be_nil
|
71
|
+
end
|
68
72
|
end
|
69
73
|
end
|
@@ -83,22 +83,16 @@ RSpec.describe "Jekyll Attendease tags" do
|
|
83
83
|
|
84
84
|
context "{% attendease_block_renderer %} for event" do
|
85
85
|
subject { render("{% attendease_block_renderer %}") }
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
it { is_expected.to match(/orgURL: "https:\/\/foobar.org\/"/) }
|
97
|
-
it { is_expected.to match(/orgId: "batbaz"/) }
|
98
|
-
it { is_expected.to match(/authApiEndpoint: "https:\/\/foobar.auth\/api"/) }
|
99
|
-
it { is_expected.to match(/dashboard.attendease.com\/webpack_assets\/blockrenderer.bundle.js/) }
|
100
|
-
it { is_expected.to_not match(/orgLocales/) }
|
101
|
-
end
|
86
|
+
|
87
|
+
it { is_expected.to match(/locale: "en"/) }
|
88
|
+
it { is_expected.to match(/siteName: "My Attendease Test Event"/) }
|
89
|
+
it { is_expected.to match(/eventApiEndpoint: "https:\/\/foobar\/api"/) }
|
90
|
+
it { is_expected.to match(/eventId: "foobar"/) }
|
91
|
+
it { is_expected.to match(/orgURL: "https:\/\/foobar.org\/"/) }
|
92
|
+
it { is_expected.to match(/orgId: "batbaz"/) }
|
93
|
+
it { is_expected.to match(/authApiEndpoint: "https:\/\/foobar.auth\/api"/) }
|
94
|
+
it { is_expected.to match(/dashboard.attendease.com\/webpack_assets\/blockrenderer.bundle.js/) }
|
95
|
+
it { is_expected.to_not match(/orgLocales/) }
|
102
96
|
end
|
103
97
|
|
104
98
|
context "{% attendease_block_renderer %} with custom bundle URL" do
|
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.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Wood
|
@@ -234,9 +234,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
236
|
requirements:
|
237
|
-
- - "
|
237
|
+
- - ">="
|
238
238
|
- !ruby/object:Gem::Version
|
239
|
-
version:
|
239
|
+
version: '0'
|
240
240
|
requirements: []
|
241
241
|
rubyforge_project:
|
242
242
|
rubygems_version: 2.5.2
|