munificent-admin 1.0.1

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.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/LICENCE +2 -0
  3. data/README.md +83 -0
  4. data/Rakefile +12 -0
  5. data/app/abilities/munificent/admin/ability.rb +51 -0
  6. data/app/abilities/munificent/admin/application_ability.rb +37 -0
  7. data/app/assets/config/munificent_admin_manifest.js +4 -0
  8. data/app/assets/javascripts/munificent_admin/application.js +6 -0
  9. data/app/assets/stylesheets/munificent/admin/application.scss +2 -0
  10. data/app/assets/stylesheets/munificent/admin/layout.scss +64 -0
  11. data/app/assets/stylesheets/munificent/admin/records.scss +7 -0
  12. data/app/controllers/munificent/admin/application_controller.rb +61 -0
  13. data/app/controllers/munificent/admin/bundle_tiers_controller.rb +12 -0
  14. data/app/controllers/munificent/admin/bundles_controller.rb +86 -0
  15. data/app/controllers/munificent/admin/charities_controller.rb +60 -0
  16. data/app/controllers/munificent/admin/dashboard_controller.rb +9 -0
  17. data/app/controllers/munificent/admin/donations_controller.rb +9 -0
  18. data/app/controllers/munificent/admin/donator_bundles_controller.rb +9 -0
  19. data/app/controllers/munificent/admin/donators_controller.rb +9 -0
  20. data/app/controllers/munificent/admin/fundraisers_controller.rb +68 -0
  21. data/app/controllers/munificent/admin/games_controller.rb +65 -0
  22. data/app/controllers/munificent/admin/otp_controller.rb +57 -0
  23. data/app/controllers/munificent/admin/user_sessions_controller.rb +44 -0
  24. data/app/controllers/munificent/admin/users_controller.rb +77 -0
  25. data/app/form_builders/munificent/admin/form_builder.rb +112 -0
  26. data/app/helpers/munificent/admin/application_helper.rb +6 -0
  27. data/app/helpers/munificent/admin/form_helper.rb +9 -0
  28. data/app/helpers/munificent/admin/layout_helper.rb +11 -0
  29. data/app/helpers/munificent/admin/state_machine_helper.rb +49 -0
  30. data/app/mailers/munificent/admin/application_mailer.rb +8 -0
  31. data/app/mailers/munificent/admin/panic_mailer.rb +19 -0
  32. data/app/models/concerns/authenticable.rb +9 -0
  33. data/app/models/munificent/admin/application_record.rb +7 -0
  34. data/app/models/munificent/admin/user.rb +54 -0
  35. data/app/models/munificent/admin/user_session.rb +19 -0
  36. data/app/presenters/munificent/admin/application_presenter.rb +29 -0
  37. data/app/presenters/munificent/admin/user_presenter.rb +24 -0
  38. data/app/presenters/munificent/bundle_presenter.rb +27 -0
  39. data/app/presenters/munificent/bundle_tier_presenter.rb +20 -0
  40. data/app/presenters/munificent/charity_presenter.rb +14 -0
  41. data/app/presenters/munificent/donation_presenter.rb +39 -0
  42. data/app/presenters/munificent/donator_bundle_presenter.rb +12 -0
  43. data/app/presenters/munificent/donator_presenter.rb +12 -0
  44. data/app/presenters/munificent/fundraiser_presenter.rb +41 -0
  45. data/app/presenters/munificent/game_presenter.rb +20 -0
  46. data/app/views/layouts/munificent/admin/application.html.erb +87 -0
  47. data/app/views/munificent/admin/bundles/_form.html.erb +15 -0
  48. data/app/views/munificent/admin/bundles/_tier_form.html.erb +13 -0
  49. data/app/views/munificent/admin/bundles/edit.html.erb +12 -0
  50. data/app/views/munificent/admin/bundles/index.html.erb +15 -0
  51. data/app/views/munificent/admin/bundles/new.html.erb +9 -0
  52. data/app/views/munificent/admin/bundles/show.html.erb +44 -0
  53. data/app/views/munificent/admin/charities/_form.html.erb +11 -0
  54. data/app/views/munificent/admin/charities/edit.html.erb +3 -0
  55. data/app/views/munificent/admin/charities/index.html.erb +11 -0
  56. data/app/views/munificent/admin/charities/new.html.erb +3 -0
  57. data/app/views/munificent/admin/charities/show.html.erb +23 -0
  58. data/app/views/munificent/admin/common/_record.html.erb +18 -0
  59. data/app/views/munificent/admin/common/_records.html.erb +38 -0
  60. data/app/views/munificent/admin/dashboard/index.html.erb +3 -0
  61. data/app/views/munificent/admin/donations/index.html.erb +15 -0
  62. data/app/views/munificent/admin/donator_bundles/index.html.erb +10 -0
  63. data/app/views/munificent/admin/donators/index.html.erb +11 -0
  64. data/app/views/munificent/admin/fundraisers/_form.html.erb +16 -0
  65. data/app/views/munificent/admin/fundraisers/edit.html.erb +3 -0
  66. data/app/views/munificent/admin/fundraisers/index.html.erb +17 -0
  67. data/app/views/munificent/admin/fundraisers/new.html.erb +3 -0
  68. data/app/views/munificent/admin/fundraisers/show.html.erb +41 -0
  69. data/app/views/munificent/admin/games/_form.html.erb +16 -0
  70. data/app/views/munificent/admin/games/csv_upload.html.erb +10 -0
  71. data/app/views/munificent/admin/games/edit.html.erb +3 -0
  72. data/app/views/munificent/admin/games/index.html.erb +15 -0
  73. data/app/views/munificent/admin/games/new.html.erb +3 -0
  74. data/app/views/munificent/admin/games/show.html.erb +25 -0
  75. data/app/views/munificent/admin/otp/_input_form.html.erb +6 -0
  76. data/app/views/munificent/admin/otp/input.html.erb +3 -0
  77. data/app/views/munificent/admin/otp/setup.html.erb +7 -0
  78. data/app/views/munificent/admin/panic_mailer/missing_key.html.erb +6 -0
  79. data/app/views/munificent/admin/panic_mailer/missing_key.text.erb +4 -0
  80. data/app/views/munificent/admin/user_sessions/new.html.erb +9 -0
  81. data/app/views/munificent/admin/users/_form.html.erb +29 -0
  82. data/app/views/munificent/admin/users/edit.html.erb +3 -0
  83. data/app/views/munificent/admin/users/index.html.erb +15 -0
  84. data/app/views/munificent/admin/users/new.html.erb +3 -0
  85. data/app/views/munificent/admin/users/show.html.erb +20 -0
  86. data/config/cucumber.yml +9 -0
  87. data/config/importmap.rb +4 -0
  88. data/config/initializers/inflections.rb +24 -0
  89. data/config/locales/en.yml +4 -0
  90. data/config/routes.rb +40 -0
  91. data/db/migrate/20220524130247_create_munificent_admin_user.rb +50 -0
  92. data/lib/munificent/admin/engine.rb +32 -0
  93. data/lib/munificent/admin/seeds.rb +19 -0
  94. data/lib/munificent/admin/version.rb +5 -0
  95. data/lib/munificent/admin.rb +7 -0
  96. data/lib/tasks/munificent/admin_tasks.rake +4 -0
  97. data/lib/tasks/munificent/cucumber.rake +75 -0
  98. data/lib/tasks/munificent/default.rake +32 -0
  99. metadata +354 -0
metadata ADDED
@@ -0,0 +1,354 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: munificent-admin
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Elliot Crosby-McCullough
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: authlogic
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '6.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '6.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cancancan
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dartsass-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.3'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: importmap-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: monetize
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.12'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.12'
83
+ - !ruby/object:Gem::Dependency
84
+ name: money-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.15'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.15'
97
+ - !ruby/object:Gem::Dependency
98
+ name: munificent
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: net-smtp
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.3'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.3'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 7.0.3
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 7.0.3
139
+ - !ruby/object:Gem::Dependency
140
+ name: redis
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '4.6'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '4.6'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rollbar
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '3.3'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.3'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rotp
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '6.2'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '6.2'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rqrcode
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.1'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.1'
195
+ - !ruby/object:Gem::Dependency
196
+ name: scrypt
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '3.0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '3.0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: sprockets-rails
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '3.4'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '3.4'
223
+ description:
224
+ email:
225
+ - elliot@smart-casual.com
226
+ executables: []
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - LICENCE
231
+ - README.md
232
+ - Rakefile
233
+ - app/abilities/munificent/admin/ability.rb
234
+ - app/abilities/munificent/admin/application_ability.rb
235
+ - app/assets/config/munificent_admin_manifest.js
236
+ - app/assets/javascripts/munificent_admin/application.js
237
+ - app/assets/stylesheets/munificent/admin/application.scss
238
+ - app/assets/stylesheets/munificent/admin/layout.scss
239
+ - app/assets/stylesheets/munificent/admin/records.scss
240
+ - app/controllers/munificent/admin/application_controller.rb
241
+ - app/controllers/munificent/admin/bundle_tiers_controller.rb
242
+ - app/controllers/munificent/admin/bundles_controller.rb
243
+ - app/controllers/munificent/admin/charities_controller.rb
244
+ - app/controllers/munificent/admin/dashboard_controller.rb
245
+ - app/controllers/munificent/admin/donations_controller.rb
246
+ - app/controllers/munificent/admin/donator_bundles_controller.rb
247
+ - app/controllers/munificent/admin/donators_controller.rb
248
+ - app/controllers/munificent/admin/fundraisers_controller.rb
249
+ - app/controllers/munificent/admin/games_controller.rb
250
+ - app/controllers/munificent/admin/otp_controller.rb
251
+ - app/controllers/munificent/admin/user_sessions_controller.rb
252
+ - app/controllers/munificent/admin/users_controller.rb
253
+ - app/form_builders/munificent/admin/form_builder.rb
254
+ - app/helpers/munificent/admin/application_helper.rb
255
+ - app/helpers/munificent/admin/form_helper.rb
256
+ - app/helpers/munificent/admin/layout_helper.rb
257
+ - app/helpers/munificent/admin/state_machine_helper.rb
258
+ - app/mailers/munificent/admin/application_mailer.rb
259
+ - app/mailers/munificent/admin/panic_mailer.rb
260
+ - app/models/concerns/authenticable.rb
261
+ - app/models/munificent/admin/application_record.rb
262
+ - app/models/munificent/admin/user.rb
263
+ - app/models/munificent/admin/user_session.rb
264
+ - app/presenters/munificent/admin/application_presenter.rb
265
+ - app/presenters/munificent/admin/user_presenter.rb
266
+ - app/presenters/munificent/bundle_presenter.rb
267
+ - app/presenters/munificent/bundle_tier_presenter.rb
268
+ - app/presenters/munificent/charity_presenter.rb
269
+ - app/presenters/munificent/donation_presenter.rb
270
+ - app/presenters/munificent/donator_bundle_presenter.rb
271
+ - app/presenters/munificent/donator_presenter.rb
272
+ - app/presenters/munificent/fundraiser_presenter.rb
273
+ - app/presenters/munificent/game_presenter.rb
274
+ - app/views/layouts/munificent/admin/application.html.erb
275
+ - app/views/munificent/admin/bundles/_form.html.erb
276
+ - app/views/munificent/admin/bundles/_tier_form.html.erb
277
+ - app/views/munificent/admin/bundles/edit.html.erb
278
+ - app/views/munificent/admin/bundles/index.html.erb
279
+ - app/views/munificent/admin/bundles/new.html.erb
280
+ - app/views/munificent/admin/bundles/show.html.erb
281
+ - app/views/munificent/admin/charities/_form.html.erb
282
+ - app/views/munificent/admin/charities/edit.html.erb
283
+ - app/views/munificent/admin/charities/index.html.erb
284
+ - app/views/munificent/admin/charities/new.html.erb
285
+ - app/views/munificent/admin/charities/show.html.erb
286
+ - app/views/munificent/admin/common/_record.html.erb
287
+ - app/views/munificent/admin/common/_records.html.erb
288
+ - app/views/munificent/admin/dashboard/index.html.erb
289
+ - app/views/munificent/admin/donations/index.html.erb
290
+ - app/views/munificent/admin/donator_bundles/index.html.erb
291
+ - app/views/munificent/admin/donators/index.html.erb
292
+ - app/views/munificent/admin/fundraisers/_form.html.erb
293
+ - app/views/munificent/admin/fundraisers/edit.html.erb
294
+ - app/views/munificent/admin/fundraisers/index.html.erb
295
+ - app/views/munificent/admin/fundraisers/new.html.erb
296
+ - app/views/munificent/admin/fundraisers/show.html.erb
297
+ - app/views/munificent/admin/games/_form.html.erb
298
+ - app/views/munificent/admin/games/csv_upload.html.erb
299
+ - app/views/munificent/admin/games/edit.html.erb
300
+ - app/views/munificent/admin/games/index.html.erb
301
+ - app/views/munificent/admin/games/new.html.erb
302
+ - app/views/munificent/admin/games/show.html.erb
303
+ - app/views/munificent/admin/otp/_input_form.html.erb
304
+ - app/views/munificent/admin/otp/input.html.erb
305
+ - app/views/munificent/admin/otp/setup.html.erb
306
+ - app/views/munificent/admin/panic_mailer/missing_key.html.erb
307
+ - app/views/munificent/admin/panic_mailer/missing_key.text.erb
308
+ - app/views/munificent/admin/user_sessions/new.html.erb
309
+ - app/views/munificent/admin/users/_form.html.erb
310
+ - app/views/munificent/admin/users/edit.html.erb
311
+ - app/views/munificent/admin/users/index.html.erb
312
+ - app/views/munificent/admin/users/new.html.erb
313
+ - app/views/munificent/admin/users/show.html.erb
314
+ - config/cucumber.yml
315
+ - config/importmap.rb
316
+ - config/initializers/inflections.rb
317
+ - config/locales/en.yml
318
+ - config/routes.rb
319
+ - db/migrate/20220524130247_create_munificent_admin_user.rb
320
+ - lib/munificent/admin.rb
321
+ - lib/munificent/admin/engine.rb
322
+ - lib/munificent/admin/seeds.rb
323
+ - lib/munificent/admin/version.rb
324
+ - lib/tasks/munificent/admin_tasks.rake
325
+ - lib/tasks/munificent/cucumber.rake
326
+ - lib/tasks/munificent/default.rake
327
+ homepage: https://github.com/SmartCasual/munificent-admin
328
+ licenses:
329
+ - CC-BY-NC-SA-4.0
330
+ metadata:
331
+ homepage_uri: https://github.com/SmartCasual/munificent-admin
332
+ source_code_uri: https://github.com/SmartCasual/munificent-admin
333
+ changelog_uri: https://github.com/SmartCasual/munificent-admin/blob/1.0.1/CHANGELOG.md
334
+ rubygems_mfa_required: 'true'
335
+ post_install_message:
336
+ rdoc_options: []
337
+ require_paths:
338
+ - lib
339
+ required_ruby_version: !ruby/object:Gem::Requirement
340
+ requirements:
341
+ - - ">="
342
+ - !ruby/object:Gem::Version
343
+ version: '3.1'
344
+ required_rubygems_version: !ruby/object:Gem::Requirement
345
+ requirements:
346
+ - - ">="
347
+ - !ruby/object:Gem::Version
348
+ version: '0'
349
+ requirements: []
350
+ rubygems_version: 3.3.7
351
+ signing_key:
352
+ specification_version: 4
353
+ summary: The admin section of Munificent
354
+ test_files: []