simple_calendar 3.0.1 → 3.0.3
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/.github/workflows/ci.yml +3 -2
- data/.github/workflows/publish_gem.yml +22 -0
- data/.standard.yml +1 -0
- data/Appraisals +4 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +148 -115
- data/README.md +1 -1
- data/bin/rails +1 -1
- data/gemfiles/rails_6_1.gemfile.lock +107 -106
- data/gemfiles/rails_7_0.gemfile.lock +106 -104
- data/gemfiles/rails_7_1.gemfile +12 -0
- data/gemfiles/rails_7_1.gemfile.lock +264 -0
- data/gemfiles/rails_main.gemfile.lock +133 -123
- data/lib/simple_calendar/calendar.rb +2 -2
- data/lib/simple_calendar/version.rb +1 -1
- data/test/calendars/calendar_test.rb +7 -0
- data/test/dummy/app/calendars/business_week_calendar.rb +2 -2
- data/test/dummy/db/schema.rb +1 -1
- data/test/integrations/custom_calendar_test.rb +2 -0
- data/test/test_helper.rb +7 -4
- metadata +10 -6
@@ -0,0 +1,264 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/thoughtbot/appraisal.git
|
3
|
+
revision: f5e31c48a1dda036a2c13663fad1b657a0953f5d
|
4
|
+
specs:
|
5
|
+
appraisal (2.5.0)
|
6
|
+
bundler
|
7
|
+
rake
|
8
|
+
thor (>= 0.14.0)
|
9
|
+
|
10
|
+
PATH
|
11
|
+
remote: ..
|
12
|
+
specs:
|
13
|
+
simple_calendar (3.0.3)
|
14
|
+
rails (>= 6.1)
|
15
|
+
|
16
|
+
GEM
|
17
|
+
remote: http://rubygems.org/
|
18
|
+
specs:
|
19
|
+
actioncable (7.1.3.2)
|
20
|
+
actionpack (= 7.1.3.2)
|
21
|
+
activesupport (= 7.1.3.2)
|
22
|
+
nio4r (~> 2.0)
|
23
|
+
websocket-driver (>= 0.6.1)
|
24
|
+
zeitwerk (~> 2.6)
|
25
|
+
actionmailbox (7.1.3.2)
|
26
|
+
actionpack (= 7.1.3.2)
|
27
|
+
activejob (= 7.1.3.2)
|
28
|
+
activerecord (= 7.1.3.2)
|
29
|
+
activestorage (= 7.1.3.2)
|
30
|
+
activesupport (= 7.1.3.2)
|
31
|
+
mail (>= 2.7.1)
|
32
|
+
net-imap
|
33
|
+
net-pop
|
34
|
+
net-smtp
|
35
|
+
actionmailer (7.1.3.2)
|
36
|
+
actionpack (= 7.1.3.2)
|
37
|
+
actionview (= 7.1.3.2)
|
38
|
+
activejob (= 7.1.3.2)
|
39
|
+
activesupport (= 7.1.3.2)
|
40
|
+
mail (~> 2.5, >= 2.5.4)
|
41
|
+
net-imap
|
42
|
+
net-pop
|
43
|
+
net-smtp
|
44
|
+
rails-dom-testing (~> 2.2)
|
45
|
+
actionpack (7.1.3.2)
|
46
|
+
actionview (= 7.1.3.2)
|
47
|
+
activesupport (= 7.1.3.2)
|
48
|
+
nokogiri (>= 1.8.5)
|
49
|
+
racc
|
50
|
+
rack (>= 2.2.4)
|
51
|
+
rack-session (>= 1.0.1)
|
52
|
+
rack-test (>= 0.6.3)
|
53
|
+
rails-dom-testing (~> 2.2)
|
54
|
+
rails-html-sanitizer (~> 1.6)
|
55
|
+
actiontext (7.1.3.2)
|
56
|
+
actionpack (= 7.1.3.2)
|
57
|
+
activerecord (= 7.1.3.2)
|
58
|
+
activestorage (= 7.1.3.2)
|
59
|
+
activesupport (= 7.1.3.2)
|
60
|
+
globalid (>= 0.6.0)
|
61
|
+
nokogiri (>= 1.8.5)
|
62
|
+
actionview (7.1.3.2)
|
63
|
+
activesupport (= 7.1.3.2)
|
64
|
+
builder (~> 3.1)
|
65
|
+
erubi (~> 1.11)
|
66
|
+
rails-dom-testing (~> 2.2)
|
67
|
+
rails-html-sanitizer (~> 1.6)
|
68
|
+
activejob (7.1.3.2)
|
69
|
+
activesupport (= 7.1.3.2)
|
70
|
+
globalid (>= 0.3.6)
|
71
|
+
activemodel (7.1.3.2)
|
72
|
+
activesupport (= 7.1.3.2)
|
73
|
+
activerecord (7.1.3.2)
|
74
|
+
activemodel (= 7.1.3.2)
|
75
|
+
activesupport (= 7.1.3.2)
|
76
|
+
timeout (>= 0.4.0)
|
77
|
+
activestorage (7.1.3.2)
|
78
|
+
actionpack (= 7.1.3.2)
|
79
|
+
activejob (= 7.1.3.2)
|
80
|
+
activerecord (= 7.1.3.2)
|
81
|
+
activesupport (= 7.1.3.2)
|
82
|
+
marcel (~> 1.0)
|
83
|
+
activesupport (7.1.3.2)
|
84
|
+
base64
|
85
|
+
bigdecimal
|
86
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
87
|
+
connection_pool (>= 2.2.5)
|
88
|
+
drb
|
89
|
+
i18n (>= 1.6, < 2)
|
90
|
+
minitest (>= 5.1)
|
91
|
+
mutex_m
|
92
|
+
tzinfo (~> 2.0)
|
93
|
+
ast (2.4.2)
|
94
|
+
base64 (0.2.0)
|
95
|
+
bigdecimal (3.1.7)
|
96
|
+
bindex (0.8.1)
|
97
|
+
builder (3.2.4)
|
98
|
+
concurrent-ruby (1.2.3)
|
99
|
+
connection_pool (2.4.1)
|
100
|
+
crass (1.0.6)
|
101
|
+
date (3.3.4)
|
102
|
+
drb (2.2.1)
|
103
|
+
erubi (1.12.0)
|
104
|
+
globalid (1.2.1)
|
105
|
+
activesupport (>= 6.1)
|
106
|
+
i18n (1.14.4)
|
107
|
+
concurrent-ruby (~> 1.0)
|
108
|
+
io-console (0.7.2)
|
109
|
+
irb (1.12.0)
|
110
|
+
rdoc
|
111
|
+
reline (>= 0.4.2)
|
112
|
+
json (2.7.1)
|
113
|
+
language_server-protocol (3.17.0.3)
|
114
|
+
lint_roller (1.1.0)
|
115
|
+
loofah (2.22.0)
|
116
|
+
crass (~> 1.0.2)
|
117
|
+
nokogiri (>= 1.12.0)
|
118
|
+
mail (2.8.1)
|
119
|
+
mini_mime (>= 0.1.1)
|
120
|
+
net-imap
|
121
|
+
net-pop
|
122
|
+
net-smtp
|
123
|
+
marcel (1.0.4)
|
124
|
+
mini_mime (1.1.5)
|
125
|
+
mini_portile2 (2.8.5)
|
126
|
+
minitest (5.22.3)
|
127
|
+
mutex_m (0.2.0)
|
128
|
+
net-imap (0.4.10)
|
129
|
+
date
|
130
|
+
net-protocol
|
131
|
+
net-pop (0.1.2)
|
132
|
+
net-protocol
|
133
|
+
net-protocol (0.2.2)
|
134
|
+
timeout
|
135
|
+
net-smtp (0.5.0)
|
136
|
+
net-protocol
|
137
|
+
nio4r (2.7.1)
|
138
|
+
nokogiri (1.16.3)
|
139
|
+
mini_portile2 (~> 2.8.2)
|
140
|
+
racc (~> 1.4)
|
141
|
+
nokogiri (1.16.3-x86_64-darwin)
|
142
|
+
racc (~> 1.4)
|
143
|
+
nokogiri (1.16.3-x86_64-linux)
|
144
|
+
racc (~> 1.4)
|
145
|
+
parallel (1.24.0)
|
146
|
+
parser (3.3.0.5)
|
147
|
+
ast (~> 2.4.1)
|
148
|
+
racc
|
149
|
+
psych (5.1.2)
|
150
|
+
stringio
|
151
|
+
puma (6.4.2)
|
152
|
+
nio4r (~> 2.0)
|
153
|
+
racc (1.7.3)
|
154
|
+
rack (3.0.10)
|
155
|
+
rack-session (2.0.0)
|
156
|
+
rack (>= 3.0.0)
|
157
|
+
rack-test (2.1.0)
|
158
|
+
rack (>= 1.3)
|
159
|
+
rackup (2.1.0)
|
160
|
+
rack (>= 3)
|
161
|
+
webrick (~> 1.8)
|
162
|
+
rails (7.1.3.2)
|
163
|
+
actioncable (= 7.1.3.2)
|
164
|
+
actionmailbox (= 7.1.3.2)
|
165
|
+
actionmailer (= 7.1.3.2)
|
166
|
+
actionpack (= 7.1.3.2)
|
167
|
+
actiontext (= 7.1.3.2)
|
168
|
+
actionview (= 7.1.3.2)
|
169
|
+
activejob (= 7.1.3.2)
|
170
|
+
activemodel (= 7.1.3.2)
|
171
|
+
activerecord (= 7.1.3.2)
|
172
|
+
activestorage (= 7.1.3.2)
|
173
|
+
activesupport (= 7.1.3.2)
|
174
|
+
bundler (>= 1.15.0)
|
175
|
+
railties (= 7.1.3.2)
|
176
|
+
rails-dom-testing (2.2.0)
|
177
|
+
activesupport (>= 5.0.0)
|
178
|
+
minitest
|
179
|
+
nokogiri (>= 1.6)
|
180
|
+
rails-html-sanitizer (1.6.0)
|
181
|
+
loofah (~> 2.21)
|
182
|
+
nokogiri (~> 1.14)
|
183
|
+
railties (7.1.3.2)
|
184
|
+
actionpack (= 7.1.3.2)
|
185
|
+
activesupport (= 7.1.3.2)
|
186
|
+
irb
|
187
|
+
rackup (>= 1.0.0)
|
188
|
+
rake (>= 12.2)
|
189
|
+
thor (~> 1.0, >= 1.2.2)
|
190
|
+
zeitwerk (~> 2.6)
|
191
|
+
rainbow (3.1.1)
|
192
|
+
rake (13.1.0)
|
193
|
+
rdoc (6.6.3.1)
|
194
|
+
psych (>= 4.0.0)
|
195
|
+
regexp_parser (2.9.0)
|
196
|
+
reline (0.5.0)
|
197
|
+
io-console (~> 0.5)
|
198
|
+
rexml (3.2.6)
|
199
|
+
rubocop (1.62.1)
|
200
|
+
json (~> 2.3)
|
201
|
+
language_server-protocol (>= 3.17.0)
|
202
|
+
parallel (~> 1.10)
|
203
|
+
parser (>= 3.3.0.2)
|
204
|
+
rainbow (>= 2.2.2, < 4.0)
|
205
|
+
regexp_parser (>= 1.8, < 3.0)
|
206
|
+
rexml (>= 3.2.5, < 4.0)
|
207
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
208
|
+
ruby-progressbar (~> 1.7)
|
209
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
210
|
+
rubocop-ast (1.31.2)
|
211
|
+
parser (>= 3.3.0.4)
|
212
|
+
rubocop-performance (1.20.2)
|
213
|
+
rubocop (>= 1.48.1, < 2.0)
|
214
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
215
|
+
ruby-progressbar (1.13.0)
|
216
|
+
sqlite3 (1.7.3)
|
217
|
+
mini_portile2 (~> 2.8.0)
|
218
|
+
sqlite3 (1.7.3-x86_64-darwin)
|
219
|
+
sqlite3 (1.7.3-x86_64-linux)
|
220
|
+
standard (1.35.1)
|
221
|
+
language_server-protocol (~> 3.17.0.2)
|
222
|
+
lint_roller (~> 1.0)
|
223
|
+
rubocop (~> 1.62.0)
|
224
|
+
standard-custom (~> 1.0.0)
|
225
|
+
standard-performance (~> 1.3)
|
226
|
+
standard-custom (1.0.2)
|
227
|
+
lint_roller (~> 1.0)
|
228
|
+
rubocop (~> 1.50)
|
229
|
+
standard-performance (1.3.1)
|
230
|
+
lint_roller (~> 1.1)
|
231
|
+
rubocop-performance (~> 1.20.2)
|
232
|
+
stringio (3.1.0)
|
233
|
+
thor (1.3.1)
|
234
|
+
timeout (0.4.1)
|
235
|
+
tzinfo (2.0.6)
|
236
|
+
concurrent-ruby (~> 1.0)
|
237
|
+
unicode-display_width (2.5.0)
|
238
|
+
web-console (4.2.1)
|
239
|
+
actionview (>= 6.0.0)
|
240
|
+
activemodel (>= 6.0.0)
|
241
|
+
bindex (>= 0.4.0)
|
242
|
+
railties (>= 6.0.0)
|
243
|
+
webrick (1.8.1)
|
244
|
+
websocket-driver (0.7.6)
|
245
|
+
websocket-extensions (>= 0.1.0)
|
246
|
+
websocket-extensions (0.1.5)
|
247
|
+
zeitwerk (2.6.13)
|
248
|
+
|
249
|
+
PLATFORMS
|
250
|
+
ruby
|
251
|
+
x86_64-darwin-22
|
252
|
+
x86_64-linux
|
253
|
+
|
254
|
+
DEPENDENCIES
|
255
|
+
appraisal!
|
256
|
+
puma
|
257
|
+
rails (~> 7.1.0.beta1)
|
258
|
+
simple_calendar!
|
259
|
+
sqlite3
|
260
|
+
standard
|
261
|
+
web-console (~> 4.2)
|
262
|
+
|
263
|
+
BUNDLED WITH
|
264
|
+
2.4.16
|
@@ -1,93 +1,92 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/rails/rails.git
|
3
|
-
revision:
|
3
|
+
revision: 0033d46236932aad5477b966fad155a83caeab97
|
4
4
|
specs:
|
5
|
-
actioncable (7.
|
6
|
-
actionpack (= 7.
|
7
|
-
activesupport (= 7.
|
5
|
+
actioncable (7.2.0.alpha)
|
6
|
+
actionpack (= 7.2.0.alpha)
|
7
|
+
activesupport (= 7.2.0.alpha)
|
8
8
|
nio4r (~> 2.0)
|
9
9
|
websocket-driver (>= 0.6.1)
|
10
10
|
zeitwerk (~> 2.6)
|
11
|
-
actionmailbox (7.
|
12
|
-
actionpack (= 7.
|
13
|
-
activejob (= 7.
|
14
|
-
activerecord (= 7.
|
15
|
-
activestorage (= 7.
|
16
|
-
activesupport (= 7.
|
17
|
-
mail (>= 2.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
net-pop
|
29
|
-
net-smtp
|
30
|
-
rails-dom-testing (~> 2.0)
|
31
|
-
actionpack (7.1.0.alpha)
|
32
|
-
actionview (= 7.1.0.alpha)
|
33
|
-
activesupport (= 7.1.0.alpha)
|
11
|
+
actionmailbox (7.2.0.alpha)
|
12
|
+
actionpack (= 7.2.0.alpha)
|
13
|
+
activejob (= 7.2.0.alpha)
|
14
|
+
activerecord (= 7.2.0.alpha)
|
15
|
+
activestorage (= 7.2.0.alpha)
|
16
|
+
activesupport (= 7.2.0.alpha)
|
17
|
+
mail (>= 2.8.0)
|
18
|
+
actionmailer (7.2.0.alpha)
|
19
|
+
actionpack (= 7.2.0.alpha)
|
20
|
+
actionview (= 7.2.0.alpha)
|
21
|
+
activejob (= 7.2.0.alpha)
|
22
|
+
activesupport (= 7.2.0.alpha)
|
23
|
+
mail (>= 2.8.0)
|
24
|
+
rails-dom-testing (~> 2.2)
|
25
|
+
actionpack (7.2.0.alpha)
|
26
|
+
actionview (= 7.2.0.alpha)
|
27
|
+
activesupport (= 7.2.0.alpha)
|
34
28
|
nokogiri (>= 1.8.5)
|
29
|
+
racc
|
35
30
|
rack (>= 2.2.4)
|
36
31
|
rack-session (>= 1.0.1)
|
37
32
|
rack-test (>= 0.6.3)
|
38
|
-
rails-dom-testing (~> 2.
|
33
|
+
rails-dom-testing (~> 2.2)
|
39
34
|
rails-html-sanitizer (~> 1.6)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
35
|
+
useragent (~> 0.16)
|
36
|
+
actiontext (7.2.0.alpha)
|
37
|
+
actionpack (= 7.2.0.alpha)
|
38
|
+
activerecord (= 7.2.0.alpha)
|
39
|
+
activestorage (= 7.2.0.alpha)
|
40
|
+
activesupport (= 7.2.0.alpha)
|
45
41
|
globalid (>= 0.6.0)
|
46
42
|
nokogiri (>= 1.8.5)
|
47
|
-
actionview (7.
|
48
|
-
activesupport (= 7.
|
43
|
+
actionview (7.2.0.alpha)
|
44
|
+
activesupport (= 7.2.0.alpha)
|
49
45
|
builder (~> 3.1)
|
50
46
|
erubi (~> 1.11)
|
51
|
-
rails-dom-testing (~> 2.
|
47
|
+
rails-dom-testing (~> 2.2)
|
52
48
|
rails-html-sanitizer (~> 1.6)
|
53
|
-
activejob (7.
|
54
|
-
activesupport (= 7.
|
49
|
+
activejob (7.2.0.alpha)
|
50
|
+
activesupport (= 7.2.0.alpha)
|
55
51
|
globalid (>= 0.3.6)
|
56
|
-
activemodel (7.
|
57
|
-
activesupport (= 7.
|
58
|
-
activerecord (7.
|
59
|
-
activemodel (= 7.
|
60
|
-
activesupport (= 7.
|
52
|
+
activemodel (7.2.0.alpha)
|
53
|
+
activesupport (= 7.2.0.alpha)
|
54
|
+
activerecord (7.2.0.alpha)
|
55
|
+
activemodel (= 7.2.0.alpha)
|
56
|
+
activesupport (= 7.2.0.alpha)
|
61
57
|
timeout (>= 0.4.0)
|
62
|
-
activestorage (7.
|
63
|
-
actionpack (= 7.
|
64
|
-
activejob (= 7.
|
65
|
-
activerecord (= 7.
|
66
|
-
activesupport (= 7.
|
58
|
+
activestorage (7.2.0.alpha)
|
59
|
+
actionpack (= 7.2.0.alpha)
|
60
|
+
activejob (= 7.2.0.alpha)
|
61
|
+
activerecord (= 7.2.0.alpha)
|
62
|
+
activesupport (= 7.2.0.alpha)
|
67
63
|
marcel (~> 1.0)
|
68
|
-
activesupport (7.
|
64
|
+
activesupport (7.2.0.alpha)
|
65
|
+
base64
|
66
|
+
bigdecimal
|
69
67
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
70
68
|
connection_pool (>= 2.2.5)
|
69
|
+
drb
|
71
70
|
i18n (>= 1.6, < 2)
|
72
|
-
minitest (>= 5.1)
|
73
|
-
tzinfo (~> 2.0)
|
74
|
-
rails (7.
|
75
|
-
actioncable (= 7.
|
76
|
-
actionmailbox (= 7.
|
77
|
-
actionmailer (= 7.
|
78
|
-
actionpack (= 7.
|
79
|
-
actiontext (= 7.
|
80
|
-
actionview (= 7.
|
81
|
-
activejob (= 7.
|
82
|
-
activemodel (= 7.
|
83
|
-
activerecord (= 7.
|
84
|
-
activestorage (= 7.
|
85
|
-
activesupport (= 7.
|
71
|
+
minitest (>= 5.1, < 5.22.0)
|
72
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
73
|
+
rails (7.2.0.alpha)
|
74
|
+
actioncable (= 7.2.0.alpha)
|
75
|
+
actionmailbox (= 7.2.0.alpha)
|
76
|
+
actionmailer (= 7.2.0.alpha)
|
77
|
+
actionpack (= 7.2.0.alpha)
|
78
|
+
actiontext (= 7.2.0.alpha)
|
79
|
+
actionview (= 7.2.0.alpha)
|
80
|
+
activejob (= 7.2.0.alpha)
|
81
|
+
activemodel (= 7.2.0.alpha)
|
82
|
+
activerecord (= 7.2.0.alpha)
|
83
|
+
activestorage (= 7.2.0.alpha)
|
84
|
+
activesupport (= 7.2.0.alpha)
|
86
85
|
bundler (>= 1.15.0)
|
87
|
-
railties (= 7.
|
88
|
-
railties (7.
|
89
|
-
actionpack (= 7.
|
90
|
-
activesupport (= 7.
|
86
|
+
railties (= 7.2.0.alpha)
|
87
|
+
railties (7.2.0.alpha)
|
88
|
+
actionpack (= 7.2.0.alpha)
|
89
|
+
activesupport (= 7.2.0.alpha)
|
91
90
|
irb
|
92
91
|
rackup (>= 1.0.0)
|
93
92
|
rake (>= 12.2)
|
@@ -96,9 +95,9 @@ GIT
|
|
96
95
|
|
97
96
|
GIT
|
98
97
|
remote: https://github.com/thoughtbot/appraisal.git
|
99
|
-
revision:
|
98
|
+
revision: f5e31c48a1dda036a2c13663fad1b657a0953f5d
|
100
99
|
specs:
|
101
|
-
appraisal (2.
|
100
|
+
appraisal (2.5.0)
|
102
101
|
bundler
|
103
102
|
rake
|
104
103
|
thor (>= 0.14.0)
|
@@ -106,31 +105,35 @@ GIT
|
|
106
105
|
PATH
|
107
106
|
remote: ..
|
108
107
|
specs:
|
109
|
-
simple_calendar (3.0.
|
108
|
+
simple_calendar (3.0.3)
|
110
109
|
rails (>= 6.1)
|
111
110
|
|
112
111
|
GEM
|
113
112
|
remote: http://rubygems.org/
|
114
113
|
specs:
|
115
114
|
ast (2.4.2)
|
115
|
+
base64 (0.2.0)
|
116
|
+
bigdecimal (3.1.7)
|
116
117
|
bindex (0.8.1)
|
117
118
|
builder (3.2.4)
|
118
|
-
concurrent-ruby (1.2.
|
119
|
+
concurrent-ruby (1.2.3)
|
119
120
|
connection_pool (2.4.1)
|
120
121
|
crass (1.0.6)
|
121
|
-
date (3.3.
|
122
|
+
date (3.3.4)
|
123
|
+
drb (2.2.1)
|
122
124
|
erubi (1.12.0)
|
123
|
-
globalid (1.1
|
124
|
-
activesupport (>=
|
125
|
-
i18n (1.14.
|
125
|
+
globalid (1.2.1)
|
126
|
+
activesupport (>= 6.1)
|
127
|
+
i18n (1.14.4)
|
126
128
|
concurrent-ruby (~> 1.0)
|
127
|
-
io-console (0.
|
128
|
-
irb (1.
|
129
|
-
|
130
|
-
|
129
|
+
io-console (0.7.2)
|
130
|
+
irb (1.12.0)
|
131
|
+
rdoc
|
132
|
+
reline (>= 0.4.2)
|
133
|
+
json (2.7.1)
|
131
134
|
language_server-protocol (3.17.0.3)
|
132
135
|
lint_roller (1.1.0)
|
133
|
-
loofah (2.
|
136
|
+
loofah (2.22.0)
|
134
137
|
crass (~> 1.0.2)
|
135
138
|
nokogiri (>= 1.12.0)
|
136
139
|
mail (2.8.1)
|
@@ -138,35 +141,37 @@ GEM
|
|
138
141
|
net-imap
|
139
142
|
net-pop
|
140
143
|
net-smtp
|
141
|
-
marcel (1.0.
|
142
|
-
mini_mime (1.1.
|
143
|
-
mini_portile2 (2.8.
|
144
|
-
minitest (5.
|
145
|
-
net-imap (0.
|
144
|
+
marcel (1.0.4)
|
145
|
+
mini_mime (1.1.5)
|
146
|
+
mini_portile2 (2.8.5)
|
147
|
+
minitest (5.21.2)
|
148
|
+
net-imap (0.4.10)
|
146
149
|
date
|
147
150
|
net-protocol
|
148
151
|
net-pop (0.1.2)
|
149
152
|
net-protocol
|
150
|
-
net-protocol (0.2.
|
153
|
+
net-protocol (0.2.2)
|
151
154
|
timeout
|
152
|
-
net-smtp (0.
|
155
|
+
net-smtp (0.5.0)
|
153
156
|
net-protocol
|
154
|
-
nio4r (2.
|
155
|
-
nokogiri (1.
|
157
|
+
nio4r (2.7.1)
|
158
|
+
nokogiri (1.16.3)
|
156
159
|
mini_portile2 (~> 2.8.2)
|
157
160
|
racc (~> 1.4)
|
158
|
-
nokogiri (1.
|
161
|
+
nokogiri (1.16.3-x86_64-darwin)
|
159
162
|
racc (~> 1.4)
|
160
|
-
nokogiri (1.
|
163
|
+
nokogiri (1.16.3-x86_64-linux)
|
161
164
|
racc (~> 1.4)
|
162
|
-
parallel (1.
|
163
|
-
parser (3.
|
165
|
+
parallel (1.24.0)
|
166
|
+
parser (3.3.0.5)
|
164
167
|
ast (~> 2.4.1)
|
165
168
|
racc
|
166
|
-
|
169
|
+
psych (5.1.2)
|
170
|
+
stringio
|
171
|
+
puma (6.4.2)
|
167
172
|
nio4r (~> 2.0)
|
168
|
-
racc (1.7.
|
169
|
-
rack (3.0.
|
173
|
+
racc (1.7.3)
|
174
|
+
rack (3.0.10)
|
170
175
|
rack-session (2.0.0)
|
171
176
|
rack (>= 3.0.0)
|
172
177
|
rack-test (2.1.0)
|
@@ -174,7 +179,7 @@ GEM
|
|
174
179
|
rackup (2.1.0)
|
175
180
|
rack (>= 3)
|
176
181
|
webrick (~> 1.8)
|
177
|
-
rails-dom-testing (2.
|
182
|
+
rails-dom-testing (2.2.0)
|
178
183
|
activesupport (>= 5.0.0)
|
179
184
|
minitest
|
180
185
|
nokogiri (>= 1.6)
|
@@ -182,58 +187,63 @@ GEM
|
|
182
187
|
loofah (~> 2.21)
|
183
188
|
nokogiri (~> 1.14)
|
184
189
|
rainbow (3.1.1)
|
185
|
-
rake (13.0
|
186
|
-
|
187
|
-
|
190
|
+
rake (13.1.0)
|
191
|
+
rdoc (6.6.3.1)
|
192
|
+
psych (>= 4.0.0)
|
193
|
+
regexp_parser (2.9.0)
|
194
|
+
reline (0.5.0)
|
188
195
|
io-console (~> 0.5)
|
189
|
-
rexml (3.2.
|
190
|
-
rubocop (1.
|
196
|
+
rexml (3.2.6)
|
197
|
+
rubocop (1.62.1)
|
191
198
|
json (~> 2.3)
|
199
|
+
language_server-protocol (>= 3.17.0)
|
192
200
|
parallel (~> 1.10)
|
193
|
-
parser (>= 3.
|
201
|
+
parser (>= 3.3.0.2)
|
194
202
|
rainbow (>= 2.2.2, < 4.0)
|
195
203
|
regexp_parser (>= 1.8, < 3.0)
|
196
204
|
rexml (>= 3.2.5, < 4.0)
|
197
|
-
rubocop-ast (>= 1.
|
205
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
198
206
|
ruby-progressbar (~> 1.7)
|
199
207
|
unicode-display_width (>= 2.4.0, < 3.0)
|
200
|
-
rubocop-ast (1.
|
201
|
-
parser (>= 3.
|
202
|
-
rubocop-performance (1.
|
203
|
-
rubocop (>= 1.
|
204
|
-
rubocop-ast (>=
|
208
|
+
rubocop-ast (1.31.2)
|
209
|
+
parser (>= 3.3.0.4)
|
210
|
+
rubocop-performance (1.20.2)
|
211
|
+
rubocop (>= 1.48.1, < 2.0)
|
212
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
205
213
|
ruby-progressbar (1.13.0)
|
206
|
-
sqlite3 (1.
|
214
|
+
sqlite3 (1.7.3)
|
207
215
|
mini_portile2 (~> 2.8.0)
|
208
|
-
sqlite3 (1.
|
209
|
-
sqlite3 (1.
|
210
|
-
standard (1.
|
216
|
+
sqlite3 (1.7.3-x86_64-darwin)
|
217
|
+
sqlite3 (1.7.3-x86_64-linux)
|
218
|
+
standard (1.35.1)
|
211
219
|
language_server-protocol (~> 3.17.0.2)
|
212
220
|
lint_roller (~> 1.0)
|
213
|
-
rubocop (~> 1.
|
221
|
+
rubocop (~> 1.62.0)
|
214
222
|
standard-custom (~> 1.0.0)
|
215
|
-
standard-performance (~> 1.
|
223
|
+
standard-performance (~> 1.3)
|
216
224
|
standard-custom (1.0.2)
|
217
225
|
lint_roller (~> 1.0)
|
218
226
|
rubocop (~> 1.50)
|
219
|
-
standard-performance (1.
|
227
|
+
standard-performance (1.3.1)
|
220
228
|
lint_roller (~> 1.1)
|
221
|
-
rubocop-performance (~> 1.
|
222
|
-
|
223
|
-
|
229
|
+
rubocop-performance (~> 1.20.2)
|
230
|
+
stringio (3.1.0)
|
231
|
+
thor (1.3.1)
|
232
|
+
timeout (0.4.1)
|
224
233
|
tzinfo (2.0.6)
|
225
234
|
concurrent-ruby (~> 1.0)
|
226
|
-
unicode-display_width (2.
|
227
|
-
|
235
|
+
unicode-display_width (2.5.0)
|
236
|
+
useragent (0.16.10)
|
237
|
+
web-console (4.2.1)
|
228
238
|
actionview (>= 6.0.0)
|
229
239
|
activemodel (>= 6.0.0)
|
230
240
|
bindex (>= 0.4.0)
|
231
241
|
railties (>= 6.0.0)
|
232
242
|
webrick (1.8.1)
|
233
|
-
websocket-driver (0.7.
|
243
|
+
websocket-driver (0.7.6)
|
234
244
|
websocket-extensions (>= 0.1.0)
|
235
245
|
websocket-extensions (0.1.5)
|
236
|
-
zeitwerk (2.6.
|
246
|
+
zeitwerk (2.6.13)
|
237
247
|
|
238
248
|
PLATFORMS
|
239
249
|
ruby
|
@@ -98,13 +98,13 @@ module SimpleCalendar
|
|
98
98
|
|
99
99
|
def sorted_events
|
100
100
|
@sorted_events ||= begin
|
101
|
-
events =
|
101
|
+
events = Array.wrap(options[:events]).reject { |e| e.send(attribute).nil? }.sort_by(&attribute)
|
102
102
|
group_events_by_date(events)
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
106
|
def sorted_events_for(day)
|
107
|
-
|
107
|
+
Array.wrap(sorted_events[day])
|
108
108
|
end
|
109
109
|
|
110
110
|
def group_events_by_date(events)
|
@@ -126,6 +126,13 @@ class CalendarTest < ActionView::TestCase
|
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
129
|
+
test "handles nil events" do
|
130
|
+
assert_nothing_raised do
|
131
|
+
calendar = SimpleCalendar::Calendar.new(view, events: nil)
|
132
|
+
calendar.sorted_events.first
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
129
136
|
test "accepts an array of events" do
|
130
137
|
first_event = Meeting.new(name: "event1", start_time: Date.today)
|
131
138
|
second_event = Meeting.new(name: "event2", start_time: Date.today + 1.day)
|
@@ -2,8 +2,8 @@ class BusinessWeekCalendar < SimpleCalendar::Calendar
|
|
2
2
|
private
|
3
3
|
|
4
4
|
def date_range
|
5
|
-
beginning = start_date.
|
6
|
-
ending =
|
5
|
+
beginning = start_date.monday
|
6
|
+
ending = beginning + 5.days
|
7
7
|
(beginning..ending).to_a
|
8
8
|
end
|
9
9
|
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema
|
13
|
+
ActiveRecord::Schema.define(version: 2022_09_30_184313) do
|
14
14
|
create_table "meetings", force: :cascade do |t|
|
15
15
|
t.string "name"
|
16
16
|
t.datetime "start_time", precision: nil
|