jekyll-attendease 0.6.8 → 0.6.9.pre

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: afd4844e449a958fa1116dbd4cf4d0b33e26e9c4
4
- data.tar.gz: ea3c3b56a11008a6105dff51cc1a56630e65a691
3
+ metadata.gz: 9daf07dc77755a1c643bd5071128f08c45dd374a
4
+ data.tar.gz: 8eec0dae522256dd44d96f087c684e650e62fc37
5
5
  SHA512:
6
- metadata.gz: f5e36efb2b29784df2934c8c60d6e47075a059315d38fbe16a59a6224be37d7284a5c1087e03452ff5544f3c6c285a6141e875aa5e1d4b8a3498e21cf5379ad9
7
- data.tar.gz: 6c53a6823160d6d52032554083a1eb4acf685a7844e9bb197dd9b6cb96cf0baea8933e4718fc717a2fc1905c3c8ad952736dda51f8a49f6a44a9c42e832c3e42
6
+ metadata.gz: ad919fd635bd4b1f427f4a7a9126074381e4686594b08fb17cdaf085e00a3497e8832eafd53e7796341231a6ebe3f635a9f1bc96017c8e2801c9ece7ab99d6c4
7
+ data.tar.gz: 8fdc9d0230248c05ba495b3fa63581be1ae8f718d53825a963a05ddb3c0866dfc4574d14fccfa60f8dd542edfbe953039ca29e8ddde297e7ecfe18c09847a9f4
@@ -16,7 +16,7 @@ module Jekyll
16
16
 
17
17
  source_template_path = File.join(base, '_attendease', 'templates', 'schedule', 'widget.html')
18
18
 
19
- Liquid::Template.parse(File.read(source_template_path)).render('instances' => instances, 'filters' => schedule_data.filters)
19
+ Liquid::Template.parse(File.read(source_template_path)).render('dates' => schedule_data.event['dates'], 'instances' => instances, 'filters' => schedule_data.filters)
20
20
  end
21
21
  end
22
22
 
@@ -1,6 +1,6 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = "0.6.8"
3
+ VERSION = "0.6.9.pre"
4
4
  end
5
5
  end
6
6
 
@@ -41,5 +41,73 @@ RSpec.describe "Jekyll Attendease tags" do
41
41
  subject { render("{% attendease_auth_action %}") }
42
42
  it { is_expected.to eq '<div id="attendease-auth-action"></div>' }
43
43
  end
44
+
45
+ context "{% attendease_schedule_widget %}" do
46
+ subject { render("{% attendease_schedule_widget %}") }
47
+ #{ is_expected.to eq schedule_widget_data }
48
+ it 'should render the correct html' do
49
+ # lines and spaces were giving me issues. Just check if the html is equal.
50
+ expect(subject.gsub(' ', '').gsub("\n", '')).to eq(schedule_widget_data.gsub(' ', '').gsub("\n", ''))
51
+ end
52
+ end
44
53
  end
45
54
 
55
+ def schedule_widget_data
56
+ <<eos
57
+ <div class="attendease-schedule-widget">
58
+
59
+ <div class="attendease-date" data-date="2014-07-08" data-date-id="000000000000000000abcdef">
60
+ July 8, 2014
61
+ </div>
62
+
63
+ <div class="attendease-session-and-instance attendease-filter-foo-bar" data-instance-id="53bc13b702c8bc9994000056" data-session-id="53bc133102c8bc9994000053">
64
+ <div class="attendease-instance-details">
65
+ <div class="attendease-instance-detail attendease-time-range" data-duration="60" data-start-time="08:45">
66
+ 08:45 - 09:45
67
+
68
+ <div class="attendease-duration" data-duration="60">
69
+ 1 hour
70
+ </div>
71
+ </div>
72
+ </div>
73
+ <div class="attendease-name">
74
+ Swimming 101
75
+ </div>
76
+ </div>
77
+
78
+ <div class="attendease-session-and-instance attendease-filter-foo-bar" data-instance-id="53bc13b702c8bc9994000057" data-session-id="53bc133102c8bc9994000054">
79
+ <div class="attendease-instance-details">
80
+ <div class="attendease-instance-detail attendease-time-range" data-duration="60" data-start-time="10:45">
81
+ 10:45 - 11:45
82
+
83
+ <div class="attendease-duration" data-duration="60">
84
+ 1 hour
85
+ </div>
86
+ </div>
87
+ </div>
88
+ <div class="attendease-name">
89
+ Swimming 102
90
+ </div>
91
+ </div>
92
+
93
+ <div class="attendease-date" data-date="2014-07-09" data-date-id="000000000000000000abcdeg">
94
+ July 9, 2014
95
+ </div>
96
+
97
+ <div class="attendease-session-and-instance attendease-filter-foo-bar" data-instance-id="53bc13b702c8bc9994000058" data-session-id="53bc133102c8bc9994000055">
98
+ <div class="attendease-instance-details">
99
+ <div class="attendease-instance-detail attendease-time-range" data-duration="60" data-start-time="08:45">
100
+ 08:45 - 09:45
101
+
102
+ <div class="attendease-duration" data-duration="60">
103
+ 1 hour
104
+ </div>
105
+ </div>
106
+ </div>
107
+ <div class="attendease-name">
108
+ Swimming 201
109
+ </div>
110
+ </div>
111
+ </div>
112
+ eos
113
+ end
@@ -1,22 +1,26 @@
1
1
  <div class="attendease-schedule-widget">
2
- {% for instance in instances %}
3
- <div class="attendease-session-and-instance {{ instance.session.filter_tags }}" data-instance-id="{{ instance.id }}" data-session-id="{{ instance.session.id }}">
4
- <div class="attendease-instance-details">
5
- <div class="attendease-instance-detail attendease-time-range" data-duration="{{ instance.duration }}" data-start-time="{{ instance.time }}">
6
- {{ instance.time_formatted }} - {{ instance.end_time_formatted}}
2
+ {% for date in dates %}
3
+ <div class="attendease-date" data-date="{{ date.date }}" data-date-id="{{ date.id }}">
4
+ {{ date.date_formatted }}
5
+ </div>
6
+
7
+ {% for instance in instances %}
8
+ {% if instance.date == date.date %}
9
+ <div class="attendease-session-and-instance {{ instance.session.filter_tags }}" data-instance-id="{{ instance.id }}" data-session-id="{{ instance.session.id }}">
10
+ <div class="attendease-instance-details">
11
+ <div class="attendease-instance-detail attendease-time-range" data-duration="{{ instance.duration }}" data-start-time="{{ instance.time }}">
12
+ {{ instance.time_formatted }} - {{ instance.end_time_formatted}}
7
13
 
8
- <div class="attendease-duration" data-duration="{{ instance.duration }}">
9
- {{ instance.duration_formatted }}
14
+ <div class="attendease-duration" data-duration="{{ instance.duration }}">
15
+ {{ instance.duration_formatted }}
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="attendease-name">
20
+ {{ instance.session.name }}
10
21
  </div>
11
22
  </div>
12
- </div>
13
- <div class="attendease-name">
14
- {% for tag in instance.session.filter_tags %}
15
- <span class="{{ tag }}">{{ tag }}</span>
16
- {% endfor %}
17
- <h2>{{ instance.session.name }}</h2>
18
- </div>
19
- </div>
23
+ {% endif %}
24
+ {% endfor %}
20
25
  {% endfor %}
21
- </div>
22
-
26
+ </div>
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.8
4
+ version: 0.6.9.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wood
@@ -16,98 +16,98 @@ dependencies:
16
16
  name: httparty
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.13.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: 0.13.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: json
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: 1.8.1
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.8.1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: i18n
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 0.6.9
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ~>
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 0.6.9
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: redcarpet
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ~>
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: 2.3.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ~>
68
+ - - "~>"
69
69
  - !ruby/object:Gem::Version
70
70
  version: 2.3.0
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: bundler
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ~>
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
77
  version: '1.3'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ~>
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: '1.3'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: rake
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - '>='
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: rspec
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  - !ruby/object:Gem::Dependency
@@ -130,6 +130,8 @@ executables: []
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - lib/jekyll-attendease.rb
134
+ - lib/jekyll/attendease_plugin.rb
133
135
  - lib/jekyll/attendease_plugin/event_data_generator.rb
134
136
  - lib/jekyll/attendease_plugin/event_layout_generator.rb
135
137
  - lib/jekyll/attendease_plugin/event_layout_page.rb
@@ -151,8 +153,16 @@ files:
151
153
  - lib/jekyll/attendease_plugin/venue_page.rb
152
154
  - lib/jekyll/attendease_plugin/venues_index_page.rb
153
155
  - lib/jekyll/attendease_plugin/version.rb
154
- - lib/jekyll/attendease_plugin.rb
155
- - lib/jekyll-attendease.rb
156
+ - spec/lib/jekyll/attendease_plugin/event_data_generator_spec.rb
157
+ - spec/lib/jekyll/attendease_plugin/event_layout_generator_spec.rb
158
+ - spec/lib/jekyll/attendease_plugin/filters_spec.rb
159
+ - spec/lib/jekyll/attendease_plugin/helpers_spec.rb
160
+ - spec/lib/jekyll/attendease_plugin/pre_zero_point_six_link_redirect_generator_spec.rb
161
+ - spec/lib/jekyll/attendease_plugin/schedule_generator_spec.rb
162
+ - spec/lib/jekyll/attendease_plugin/sponsor_generator_spec.rb
163
+ - spec/lib/jekyll/attendease_plugin/tags_spec.rb
164
+ - spec/spec_helper.rb
165
+ - spec/support/fixtures_helpers.rb
156
166
  - templates/_includes/attendease/presenters/index.html
157
167
  - templates/_includes/attendease/presenters/presenter.html
158
168
  - templates/_includes/attendease/redirect.html
@@ -165,16 +175,6 @@ files:
165
175
  - templates/_includes/attendease/venues/index.html
166
176
  - templates/_includes/attendease/venues/venue.html
167
177
  - templates/layout.html
168
- - spec/lib/jekyll/attendease_plugin/event_data_generator_spec.rb
169
- - spec/lib/jekyll/attendease_plugin/event_layout_generator_spec.rb
170
- - spec/lib/jekyll/attendease_plugin/filters_spec.rb
171
- - spec/lib/jekyll/attendease_plugin/helpers_spec.rb
172
- - spec/lib/jekyll/attendease_plugin/pre_zero_point_six_link_redirect_generator_spec.rb
173
- - spec/lib/jekyll/attendease_plugin/schedule_generator_spec.rb
174
- - spec/lib/jekyll/attendease_plugin/sponsor_generator_spec.rb
175
- - spec/lib/jekyll/attendease_plugin/tags_spec.rb
176
- - spec/spec_helper.rb
177
- - spec/support/fixtures_helpers.rb
178
178
  homepage: https://attendease.com/
179
179
  licenses:
180
180
  - MIT
@@ -185,17 +185,17 @@ require_paths:
185
185
  - lib
186
186
  required_ruby_version: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - '>='
188
+ - - ">="
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - '>='
193
+ - - ">"
194
194
  - !ruby/object:Gem::Version
195
- version: '0'
195
+ version: 1.3.1
196
196
  requirements: []
197
197
  rubyforge_project:
198
- rubygems_version: 2.0.3
198
+ rubygems_version: 2.2.2
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: Attendease event helper for Jekyll