simple_calendar 3.0.4 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/simple_calendar/version.rb +1 -1
  3. metadata +8 -97
  4. data/.github/FUNDING.yml +0 -12
  5. data/.github/workflows/ci.yml +0 -45
  6. data/.github/workflows/publish_gem.yml +0 -40
  7. data/.gitignore +0 -11
  8. data/.rspec +0 -2
  9. data/.standard.yml +0 -1
  10. data/Appraisals +0 -15
  11. data/CHANGELOG.md +0 -39
  12. data/Gemfile +0 -11
  13. data/Gemfile.lock +0 -258
  14. data/LICENSE.txt +0 -22
  15. data/bin/console +0 -8
  16. data/bin/rails +0 -16
  17. data/bin/setup +0 -5
  18. data/gemfiles/rails_6_1.gemfile +0 -12
  19. data/gemfiles/rails_6_1.gemfile.lock +0 -234
  20. data/gemfiles/rails_7_0.gemfile +0 -12
  21. data/gemfiles/rails_7_0.gemfile.lock +0 -231
  22. data/gemfiles/rails_7_1.gemfile +0 -12
  23. data/gemfiles/rails_7_1.gemfile.lock +0 -264
  24. data/gemfiles/rails_main.gemfile +0 -12
  25. data/gemfiles/rails_main.gemfile.lock +0 -263
  26. data/simple_calendar.gemspec +0 -20
  27. data/test/calendars/calendar_test.rb +0 -161
  28. data/test/calendars/month_calendar_test.rb +0 -16
  29. data/test/dummy/Rakefile +0 -6
  30. data/test/dummy/app/assets/config/manifest.js +0 -1
  31. data/test/dummy/app/assets/images/.keep +0 -0
  32. data/test/dummy/app/assets/stylesheets/application.css +0 -1
  33. data/test/dummy/app/calendars/business_week_calendar.rb +0 -9
  34. data/test/dummy/app/channels/application_cable/channel.rb +0 -4
  35. data/test/dummy/app/channels/application_cable/connection.rb +0 -4
  36. data/test/dummy/app/controllers/application_controller.rb +0 -2
  37. data/test/dummy/app/controllers/concerns/.keep +0 -0
  38. data/test/dummy/app/controllers/meetings_controller.rb +0 -63
  39. data/test/dummy/app/helpers/application_helper.rb +0 -2
  40. data/test/dummy/app/helpers/meetings_helper.rb +0 -2
  41. data/test/dummy/app/jobs/application_job.rb +0 -7
  42. data/test/dummy/app/mailers/application_mailer.rb +0 -4
  43. data/test/dummy/app/models/application_record.rb +0 -7
  44. data/test/dummy/app/models/concerns/.keep +0 -0
  45. data/test/dummy/app/models/meeting.rb +0 -2
  46. data/test/dummy/app/views/layouts/application.html.erb +0 -15
  47. data/test/dummy/app/views/layouts/mailer.html.erb +0 -13
  48. data/test/dummy/app/views/layouts/mailer.text.erb +0 -1
  49. data/test/dummy/app/views/meetings/_business_week_calendar.html.erb +0 -33
  50. data/test/dummy/app/views/meetings/_form.html.erb +0 -32
  51. data/test/dummy/app/views/meetings/_meeting.html.erb +0 -17
  52. data/test/dummy/app/views/meetings/business_week.html.erb +0 -24
  53. data/test/dummy/app/views/meetings/edit.html.erb +0 -10
  54. data/test/dummy/app/views/meetings/index.html.erb +0 -24
  55. data/test/dummy/app/views/meetings/new.html.erb +0 -9
  56. data/test/dummy/app/views/meetings/show.html.erb +0 -10
  57. data/test/dummy/bin/rails +0 -4
  58. data/test/dummy/bin/rake +0 -4
  59. data/test/dummy/bin/setup +0 -33
  60. data/test/dummy/config/application.rb +0 -22
  61. data/test/dummy/config/boot.rb +0 -5
  62. data/test/dummy/config/cable.yml +0 -10
  63. data/test/dummy/config/database.yml +0 -25
  64. data/test/dummy/config/environment.rb +0 -5
  65. data/test/dummy/config/environments/development.rb +0 -67
  66. data/test/dummy/config/environments/production.rb +0 -87
  67. data/test/dummy/config/environments/test.rb +0 -60
  68. data/test/dummy/config/initializers/content_security_policy.rb +0 -25
  69. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -8
  70. data/test/dummy/config/initializers/inflections.rb +0 -16
  71. data/test/dummy/config/initializers/permissions_policy.rb +0 -11
  72. data/test/dummy/config/locales/en.yml +0 -33
  73. data/test/dummy/config/puma.rb +0 -43
  74. data/test/dummy/config/routes.rb +0 -11
  75. data/test/dummy/config/storage.yml +0 -34
  76. data/test/dummy/config.ru +0 -6
  77. data/test/dummy/db/migrate/20220930184313_create_meetings.rb +0 -11
  78. data/test/dummy/db/schema.rb +0 -21
  79. data/test/dummy/lib/assets/.keep +0 -0
  80. data/test/dummy/log/.keep +0 -0
  81. data/test/dummy/public/404.html +0 -67
  82. data/test/dummy/public/422.html +0 -67
  83. data/test/dummy/public/500.html +0 -66
  84. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  85. data/test/dummy/public/apple-touch-icon.png +0 -0
  86. data/test/dummy/public/favicon.ico +0 -0
  87. data/test/dummy/storage/.keep +0 -0
  88. data/test/fixtures/meetings.yml +0 -36
  89. data/test/integrations/custom_calendar_test.rb +0 -33
  90. data/test/integrations/month_calendar_test.rb +0 -58
  91. data/test/simple_calendar_test.rb +0 -7
  92. data/test/test_helper.rb +0 -17
  93. /data/app/assets/stylesheets/{simple_calendar.scss → simple_calendar.css} +0 -0
@@ -1,264 +0,0 @@
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.4)
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,12 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "appraisal", github: "thoughtbot/appraisal"
6
- gem "standard"
7
- gem "puma"
8
- gem "sqlite3"
9
- gem "web-console", "~> 4.2", group: :development
10
- gem "rails", github: "rails/rails"
11
-
12
- gemspec path: "../"
@@ -1,263 +0,0 @@
1
- GIT
2
- remote: https://github.com/rails/rails.git
3
- revision: 0033d46236932aad5477b966fad155a83caeab97
4
- specs:
5
- actioncable (7.2.0.alpha)
6
- actionpack (= 7.2.0.alpha)
7
- activesupport (= 7.2.0.alpha)
8
- nio4r (~> 2.0)
9
- websocket-driver (>= 0.6.1)
10
- zeitwerk (~> 2.6)
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)
28
- nokogiri (>= 1.8.5)
29
- racc
30
- rack (>= 2.2.4)
31
- rack-session (>= 1.0.1)
32
- rack-test (>= 0.6.3)
33
- rails-dom-testing (~> 2.2)
34
- rails-html-sanitizer (~> 1.6)
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)
41
- globalid (>= 0.6.0)
42
- nokogiri (>= 1.8.5)
43
- actionview (7.2.0.alpha)
44
- activesupport (= 7.2.0.alpha)
45
- builder (~> 3.1)
46
- erubi (~> 1.11)
47
- rails-dom-testing (~> 2.2)
48
- rails-html-sanitizer (~> 1.6)
49
- activejob (7.2.0.alpha)
50
- activesupport (= 7.2.0.alpha)
51
- globalid (>= 0.3.6)
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)
57
- timeout (>= 0.4.0)
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)
63
- marcel (~> 1.0)
64
- activesupport (7.2.0.alpha)
65
- base64
66
- bigdecimal
67
- concurrent-ruby (~> 1.0, >= 1.0.2)
68
- connection_pool (>= 2.2.5)
69
- drb
70
- i18n (>= 1.6, < 2)
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)
85
- bundler (>= 1.15.0)
86
- railties (= 7.2.0.alpha)
87
- railties (7.2.0.alpha)
88
- actionpack (= 7.2.0.alpha)
89
- activesupport (= 7.2.0.alpha)
90
- irb
91
- rackup (>= 1.0.0)
92
- rake (>= 12.2)
93
- thor (~> 1.0, >= 1.2.2)
94
- zeitwerk (~> 2.6)
95
-
96
- GIT
97
- remote: https://github.com/thoughtbot/appraisal.git
98
- revision: f5e31c48a1dda036a2c13663fad1b657a0953f5d
99
- specs:
100
- appraisal (2.5.0)
101
- bundler
102
- rake
103
- thor (>= 0.14.0)
104
-
105
- PATH
106
- remote: ..
107
- specs:
108
- simple_calendar (3.0.4)
109
- rails (>= 6.1)
110
-
111
- GEM
112
- remote: http://rubygems.org/
113
- specs:
114
- ast (2.4.2)
115
- base64 (0.2.0)
116
- bigdecimal (3.1.7)
117
- bindex (0.8.1)
118
- builder (3.2.4)
119
- concurrent-ruby (1.2.3)
120
- connection_pool (2.4.1)
121
- crass (1.0.6)
122
- date (3.3.4)
123
- drb (2.2.1)
124
- erubi (1.12.0)
125
- globalid (1.2.1)
126
- activesupport (>= 6.1)
127
- i18n (1.14.4)
128
- concurrent-ruby (~> 1.0)
129
- io-console (0.7.2)
130
- irb (1.12.0)
131
- rdoc
132
- reline (>= 0.4.2)
133
- json (2.7.1)
134
- language_server-protocol (3.17.0.3)
135
- lint_roller (1.1.0)
136
- loofah (2.22.0)
137
- crass (~> 1.0.2)
138
- nokogiri (>= 1.12.0)
139
- mail (2.8.1)
140
- mini_mime (>= 0.1.1)
141
- net-imap
142
- net-pop
143
- net-smtp
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)
149
- date
150
- net-protocol
151
- net-pop (0.1.2)
152
- net-protocol
153
- net-protocol (0.2.2)
154
- timeout
155
- net-smtp (0.5.0)
156
- net-protocol
157
- nio4r (2.7.1)
158
- nokogiri (1.16.3)
159
- mini_portile2 (~> 2.8.2)
160
- racc (~> 1.4)
161
- nokogiri (1.16.3-x86_64-darwin)
162
- racc (~> 1.4)
163
- nokogiri (1.16.3-x86_64-linux)
164
- racc (~> 1.4)
165
- parallel (1.24.0)
166
- parser (3.3.0.5)
167
- ast (~> 2.4.1)
168
- racc
169
- psych (5.1.2)
170
- stringio
171
- puma (6.4.2)
172
- nio4r (~> 2.0)
173
- racc (1.7.3)
174
- rack (3.0.10)
175
- rack-session (2.0.0)
176
- rack (>= 3.0.0)
177
- rack-test (2.1.0)
178
- rack (>= 1.3)
179
- rackup (2.1.0)
180
- rack (>= 3)
181
- webrick (~> 1.8)
182
- rails-dom-testing (2.2.0)
183
- activesupport (>= 5.0.0)
184
- minitest
185
- nokogiri (>= 1.6)
186
- rails-html-sanitizer (1.6.0)
187
- loofah (~> 2.21)
188
- nokogiri (~> 1.14)
189
- rainbow (3.1.1)
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)
195
- io-console (~> 0.5)
196
- rexml (3.2.6)
197
- rubocop (1.62.1)
198
- json (~> 2.3)
199
- language_server-protocol (>= 3.17.0)
200
- parallel (~> 1.10)
201
- parser (>= 3.3.0.2)
202
- rainbow (>= 2.2.2, < 4.0)
203
- regexp_parser (>= 1.8, < 3.0)
204
- rexml (>= 3.2.5, < 4.0)
205
- rubocop-ast (>= 1.31.1, < 2.0)
206
- ruby-progressbar (~> 1.7)
207
- unicode-display_width (>= 2.4.0, < 3.0)
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)
213
- ruby-progressbar (1.13.0)
214
- sqlite3 (1.7.3)
215
- mini_portile2 (~> 2.8.0)
216
- sqlite3 (1.7.3-x86_64-darwin)
217
- sqlite3 (1.7.3-x86_64-linux)
218
- standard (1.35.1)
219
- language_server-protocol (~> 3.17.0.2)
220
- lint_roller (~> 1.0)
221
- rubocop (~> 1.62.0)
222
- standard-custom (~> 1.0.0)
223
- standard-performance (~> 1.3)
224
- standard-custom (1.0.2)
225
- lint_roller (~> 1.0)
226
- rubocop (~> 1.50)
227
- standard-performance (1.3.1)
228
- lint_roller (~> 1.1)
229
- rubocop-performance (~> 1.20.2)
230
- stringio (3.1.0)
231
- thor (1.3.1)
232
- timeout (0.4.1)
233
- tzinfo (2.0.6)
234
- concurrent-ruby (~> 1.0)
235
- unicode-display_width (2.5.0)
236
- useragent (0.16.10)
237
- web-console (4.2.1)
238
- actionview (>= 6.0.0)
239
- activemodel (>= 6.0.0)
240
- bindex (>= 0.4.0)
241
- railties (>= 6.0.0)
242
- webrick (1.8.1)
243
- websocket-driver (0.7.6)
244
- websocket-extensions (>= 0.1.0)
245
- websocket-extensions (0.1.5)
246
- zeitwerk (2.6.13)
247
-
248
- PLATFORMS
249
- ruby
250
- x86_64-darwin-20
251
- x86_64-linux
252
-
253
- DEPENDENCIES
254
- appraisal!
255
- puma
256
- rails!
257
- simple_calendar!
258
- sqlite3
259
- standard
260
- web-console (~> 4.2)
261
-
262
- BUNDLED WITH
263
- 2.4.16
@@ -1,20 +0,0 @@
1
- $:.push File.expand_path("../lib", __FILE__)
2
- require "simple_calendar/version"
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "simple_calendar"
6
- s.version = SimpleCalendar::VERSION
7
- s.authors = ["Chris Oliver"]
8
- s.email = ["excid3@gmail.com"]
9
- s.homepage = "https://github.com/excid3/simple_calendar"
10
- s.summary = "A simple Rails calendar"
11
- s.description = "A simple Rails calendar"
12
- s.license = "MIT"
13
-
14
- s.rubyforge_project = "simple_calendar"
15
-
16
- s.files = `git ls-files`.split("\n")
17
- s.require_paths = ["lib"]
18
-
19
- s.add_dependency "rails", ">= 6.1"
20
- end
@@ -1,161 +0,0 @@
1
- require "test_helper"
2
-
3
- class CalendarTest < ActionView::TestCase
4
- attr_reader :calendar
5
-
6
- setup do
7
- @calendar = SimpleCalendar::Calendar.new(view)
8
- end
9
-
10
- test "renders a partial with the same name as the class" do
11
- assert_equal "simple_calendar/calendar", calendar.partial_name
12
- end
13
-
14
- test "has start_time as the default attribute" do
15
- assert_equal :start_time, calendar.attribute
16
- end
17
-
18
- test "allows you to override the default attribute" do
19
- assert_equal :starts_at, SimpleCalendar::Calendar.new(view, attribute: :starts_at).attribute
20
- end
21
-
22
- test "set a default when `partial` option isn't present" do
23
- assert_equal "simple_calendar/calendar", SimpleCalendar::Calendar.new(view).partial_name
24
- assert_equal "simple_calendar/month_calendar", SimpleCalendar::MonthCalendar.new(view).partial_name
25
- assert_equal "simple_calendar/week_calendar", SimpleCalendar::WeekCalendar.new(view).partial_name
26
- end
27
-
28
- test "allows to override the default partial" do
29
- assert_equal "simple_calendar/custom_calendar", SimpleCalendar::Calendar.new(view, partial: "simple_calendar/custom_calendar").partial_name
30
- end
31
-
32
- test "converts an array of events to a hash sorted by days" do
33
- today, tomorrow = Date.today, Date.tomorrow
34
-
35
- event1 = Meeting.new(start_time: today.at_midnight)
36
- event2 = Meeting.new(start_time: today.at_noon)
37
- event3 = Meeting.new(start_time: tomorrow.at_noon)
38
-
39
- events = [event1, event2, event3].shuffle
40
- calendar = SimpleCalendar::Calendar.new(view, events: events)
41
-
42
- sorted_events = calendar.sorted_events
43
-
44
- assert_equal [event1, event2], sorted_events[today]
45
- assert_equal [event3], sorted_events[tomorrow]
46
- end
47
-
48
- test "converts an array of multi-day events to a hash sorted by days" do
49
- today, tomorrow = Date.today, Date.tomorrow
50
-
51
- event1 = Meeting.new(start_time: today.at_midnight, end_time: tomorrow.at_midnight)
52
- event2 = Meeting.new(start_time: today.at_noon)
53
- event3 = Meeting.new(start_time: tomorrow.at_noon)
54
-
55
- events = [event1, event2, event3].shuffle
56
- calendar = SimpleCalendar::Calendar.new(view, events: events)
57
-
58
- assert_equal [event1, event2], calendar.sorted_events[today]
59
- assert_equal [event1, event3], calendar.sorted_events[tomorrow]
60
- end
61
-
62
- test "handles events without a start time" do
63
- event = Meeting.new(start_time: nil)
64
- calendar = SimpleCalendar::Calendar.new(view, events: [event])
65
-
66
- assert_nothing_raised do
67
- calendar.sorted_events
68
- end
69
- end
70
-
71
- test "defaults to today's date" do
72
- calendar = SimpleCalendar::Calendar.new(view)
73
- assert_equal Date.today, calendar.start_date
74
- end
75
-
76
- test "uses the view context's params start_date to override" do
77
- params[:start_date] = Date.yesterday
78
- calendar = SimpleCalendar::Calendar.new(view)
79
- assert_equal Date.yesterday, calendar.start_date
80
- end
81
-
82
- test "uses the optional argument's start_date to override view_context's start_date" do
83
- params[:start_date] = Date.yesterday
84
- calendar = SimpleCalendar::Calendar.new(view, start_date: Date.tomorrow)
85
- assert_equal Date.tomorrow, calendar.start_date
86
- end
87
-
88
- test "takes an option to override the start_date parameter" do
89
- params[:date] = Date.yesterday
90
- calendar = SimpleCalendar::Calendar.new(view, start_date_param: :date)
91
- assert_equal Date.yesterday, calendar.start_date
92
- end
93
-
94
- test "should have the current week" do
95
- calendar = SimpleCalendar::Calendar.new(view)
96
- week = calendar.date_range.each_slice(7).to_a[0]
97
- assert_includes calendar.tr_classes_for(week), "current-week"
98
- end
99
-
100
- test "should not have the current week if it does not contain today" do
101
- params[:start_date] = 6.months.ago
102
- calendar = SimpleCalendar::MonthCalendar.new(view)
103
- week = calendar.date_range.each_slice(7).to_a[0]
104
- assert_not_includes calendar.tr_classes_for(week), "current-week"
105
- end
106
-
107
- test "has a param that determines the start date of the calendar" do
108
- calendar = SimpleCalendar::Calendar.new(view)
109
- rendering_variables = calendar.locals
110
- assert_not_nil rendering_variables[:start_date]
111
- end
112
-
113
- test "generates a default date if no start date is present" do
114
- calendar = SimpleCalendar::Calendar.new(view)
115
- calendar_start_date = calendar.locals[:start_date]
116
- assert_not_nil calendar_start_date
117
- assert_kind_of Date, calendar_start_date
118
- end
119
-
120
- test "has a range of dates" do
121
- calendar = SimpleCalendar::Calendar.new(view)
122
- calendar_date_range = calendar.date_range
123
- assert_kind_of Array, calendar_date_range
124
- calendar_date_range.each do |date|
125
- assert_kind_of Date, date
126
- end
127
- end
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
-
136
- test "accepts an array of events" do
137
- first_event = Meeting.new(name: "event1", start_time: Date.today)
138
- second_event = Meeting.new(name: "event2", start_time: Date.today + 1.day)
139
- events = [first_event, second_event]
140
- calendar = SimpleCalendar::Calendar.new(view, events: events)
141
- calendar_sorted_events = calendar.locals[:sorted_events]
142
-
143
- assert_equal 2, calendar_sorted_events.length
144
- end
145
-
146
- test "sorts the events" do
147
- first_event = Meeting.new(name: "event1", start_time: Date.today + 2.days)
148
- second_event = Meeting.new(name: "event2", start_time: Date.today + 1.day)
149
- third_event = Meeting.new(name: "event3", start_time: Date.today)
150
- events = [first_event, third_event, second_event]
151
- calendar = SimpleCalendar::Calendar.new(view, events: events)
152
- calendar_sorted_events = calendar.locals[:sorted_events]
153
- first_key = calendar_sorted_events.keys[0]
154
- second_key = calendar_sorted_events.keys[1]
155
- third_key = calendar_sorted_events.keys[2]
156
-
157
- assert_equal third_event, calendar_sorted_events[first_key][0]
158
- assert_equal second_event, calendar_sorted_events[second_key][0]
159
- assert_equal first_event, calendar_sorted_events[third_key][0]
160
- end
161
- end