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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31612d9668c4ec8aa6fa2dde83962193a31bf105
4
- data.tar.gz: 2f4b666e18488959916bfda8276682a2e73fc952
3
+ metadata.gz: fbebb8491b67f2738994d41e3f6fe7eddce3c1e3
4
+ data.tar.gz: 415cd7728a7dd9260bb0dbb2698fb4aec17c0a33
5
5
  SHA512:
6
- metadata.gz: 39633febf2564fa168b34aeac25e9b5ce5b53b8be395170a675cae2e55a0f8bbeb81ab369a7e4065006e57d481361a2fe49558b41975678df1414409487aabd6
7
- data.tar.gz: 742b0a4733d58944a961d1fd780f87e7bf06d7a5bf97509c4d3e5214bb495aef15263c09377cc043267412cbcf0c6e41c2b7999756a6d8677b1a8bdd757be403
6
+ metadata.gz: 23846fb4e64420facc35196153a90891280be96d7f587e3ed59e286eacd89007a2d26c8eacd1d0dd7520f48a4c469c157bdece86203dfce2fe7d1729ca653dc4
7
+ data.tar.gz: 822830adc985316bc431986dfd962a8c9d8071900b22ba85d249f6c419844d9ef9b16993fb147670b8a3a4d0b233ae2896ddefecae7927fa05400ed83b162c14
@@ -42,6 +42,7 @@ module Jekyll
42
42
 
43
43
  # filter the raw pages for what's safe to make public
44
44
  def self.public_pages(pages)
45
+ return if pages.nil?
45
46
  pages
46
47
  .select { |p| p['root'] }
47
48
  .reject { |p| p['hidden'] && (p['slug'] != '' || p['external'] == true) }
@@ -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) {
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.44c'
3
+ VERSION = '0.6.44'
4
4
  end
5
5
  end
@@ -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
- let(:foo) { render("{% attendease_block_renderer %}") }
87
-
88
- describe 'expected output' do
89
- require 'pry'
90
-
91
-
92
- it { binding.pry; is_expected.to match(/locale: "en"/) }
93
- it { is_expected.to match(/siteName: "My Attendease Test Event"/) }
94
- it { is_expected.to match(/eventApiEndpoint: "https:\/\/foobar\/api"/) }
95
- it { is_expected.to match(/eventId: "foobar"/) }
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.44c
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: 1.3.1
239
+ version: '0'
240
240
  requirements: []
241
241
  rubyforge_project:
242
242
  rubygems_version: 2.5.2