hackathon_manager 0.13.12 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/hackathon_manager/manage/application.js +0 -2
  3. data/app/assets/javascripts/hackathon_manager/manage/lib/datatables.js +3 -3
  4. data/app/assets/javascripts/hackathon_manager/vendor/datatables.min.js +89 -74
  5. data/app/assets/stylesheets/hackathon_manager/datatables.min.css +3 -3
  6. data/app/assets/stylesheets/hackathon_manager/manage.sass +3 -3
  7. data/app/controllers/manage/admins_controller.rb +1 -0
  8. data/app/controllers/manage/configs_controller.rb +31 -3
  9. data/app/controllers/manage/questionnaires_controller.rb +3 -3
  10. data/app/controllers/questionnaires_controller.rb +1 -1
  11. data/app/controllers/rsvps_controller.rb +1 -1
  12. data/app/mailers/application_mailer.rb +1 -1
  13. data/app/mailers/mailer.rb +2 -2
  14. data/app/models/hackathon_config.rb +7 -0
  15. data/app/models/questionnaire.rb +1 -1
  16. data/app/models/user.rb +2 -0
  17. data/app/views/application/_questionnaire_summary.html.haml +1 -1
  18. data/app/views/bus_lists/show.html.haml +2 -2
  19. data/app/views/devise/registrations/new.html.haml +5 -5
  20. data/app/views/devise/sessions/new.html.haml +1 -1
  21. data/app/views/layouts/hackathon_manager/_header.html.haml +2 -2
  22. data/app/views/layouts/hackathon_manager/application.html.haml +3 -3
  23. data/app/views/layouts/mailer.html.erb +1 -1
  24. data/app/views/layouts/manage/application.html.haml +6 -6
  25. data/app/views/mailer/bus_captain_confirmation_email.html.erb +3 -3
  26. data/app/views/mailer/incomplete_reminder_email.html.erb +2 -2
  27. data/app/views/manage/configs/edit.html.haml +17 -0
  28. data/app/views/manage/configs/index.html.haml +34 -0
  29. data/app/views/manage/messages/_form.html.haml +1 -1
  30. data/app/views/manage/questionnaires/_form.html.haml +4 -4
  31. data/app/views/manage/questionnaires/_overview.html.haml +1 -1
  32. data/app/views/questionnaires/_form.html.haml +6 -6
  33. data/app/views/questionnaires/new.html.haml +1 -1
  34. data/app/views/questionnaires/show.html.haml +6 -6
  35. data/app/views/rsvps/show.html.haml +3 -3
  36. data/config/app.yml +33 -0
  37. data/config/initializers/devise.rb +1 -1
  38. data/config/locales/en.yml +24 -0
  39. data/config/routes.rb +1 -2
  40. data/db/migrate/20190216203450_create_settings.rb +17 -0
  41. data/db/seed_messages/questionnaire--accepted.md +1 -1
  42. data/db/seed_messages/questionnaire--pending.md +1 -1
  43. data/db/seed_messages/questionnaire--rsvp_confirmed.md +1 -1
  44. data/lib/hackathon_manager.rb +1 -13
  45. data/lib/hackathon_manager/engine.rb +1 -13
  46. data/lib/hackathon_manager/version.rb +1 -1
  47. metadata +26 -9
  48. data/app/views/manage/configs/show.html.haml +0 -27
  49. data/config/initializers/0_hackathon.rb +0 -3
@@ -24,18 +24,6 @@ module HackathonManager
24
24
  ]
25
25
  end
26
26
 
27
- # Watch hackathon.yml for changes & reload
28
- initializer "hackathon_manager.watch_hackathon_config", after: :load_config_initializers do |app|
29
- hackathon_config_reloader = app.config.file_watcher.new(['config/hackathon.yml']) do
30
- HackathonManager.reload_config(app)
31
- end
32
-
33
- app.reloaders << hackathon_config_reloader
34
-
35
- # Reload renderers in dev when files change
36
- app.config.to_prepare { hackathon_config_reloader.execute_if_updated }
37
- end
38
-
39
27
  # Initializer to combine this engines static assets with the static assets of the hosting site.
40
28
  initializer "static assets" do |app|
41
29
  app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
@@ -55,7 +43,7 @@ module HackathonManager
55
43
  stored_location = stored_location_for(resource)
56
44
  if stored_location
57
45
  stored_location
58
- elsif current_user.admin?
46
+ elsif current_user.admin? || current_user.admin_limited_access?
59
47
  manage_root_path
60
48
  elsif current_user.questionnaire.nil?
61
49
  new_questionnaires_path
@@ -1,3 +1,3 @@
1
1
  module HackathonManager
2
- VERSION = '0.13.12'.freeze
2
+ VERSION = '0.14.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackathon_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.12
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Olivera
@@ -240,14 +240,14 @@ dependencies:
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: '2.1'
243
+ version: '3.0'
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: '2.1'
250
+ version: '3.0'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: groupdate
253
253
  requirement: !ruby/object:Gem::Requirement
@@ -318,6 +318,20 @@ dependencies:
318
318
  - - ">="
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
+ - !ruby/object:Gem::Dependency
322
+ name: rails-settings-cached
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - "~>"
326
+ - !ruby/object:Gem::Version
327
+ version: 0.7.2
328
+ type: :runtime
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - "~>"
333
+ - !ruby/object:Gem::Version
334
+ version: 0.7.2
321
335
  - !ruby/object:Gem::Dependency
322
336
  name: sass-rails
323
337
  requirement: !ruby/object:Gem::Requirement
@@ -394,14 +408,14 @@ dependencies:
394
408
  requirements:
395
409
  - - "~>"
396
410
  - !ruby/object:Gem::Version
397
- version: '4.2'
411
+ version: '6.0'
398
412
  type: :runtime
399
413
  prerelease: false
400
414
  version_requirements: !ruby/object:Gem::Requirement
401
415
  requirements:
402
416
  - - "~>"
403
417
  - !ruby/object:Gem::Version
404
- version: '4.2'
418
+ version: '6.0'
405
419
  - !ruby/object:Gem::Dependency
406
420
  name: uglifier
407
421
  requirement: !ruby/object:Gem::Requirement
@@ -422,14 +436,14 @@ dependencies:
422
436
  requirements:
423
437
  - - "~>"
424
438
  - !ruby/object:Gem::Version
425
- version: 4.1.1
439
+ version: 4.3.1
426
440
  type: :runtime
427
441
  prerelease: false
428
442
  version_requirements: !ruby/object:Gem::Requirement
429
443
  requirements:
430
444
  - - "~>"
431
445
  - !ruby/object:Gem::Version
432
- version: 4.1.1
446
+ version: 4.3.1
433
447
  - !ruby/object:Gem::Dependency
434
448
  name: blazer
435
449
  requirement: !ruby/object:Gem::Requirement
@@ -556,6 +570,7 @@ files:
556
570
  - app/models/bus_list.rb
557
571
  - app/models/deletable_attachment.rb
558
572
  - app/models/fips.rb
573
+ - app/models/hackathon_config.rb
559
574
  - app/models/message.rb
560
575
  - app/models/message_recipient_query.rb
561
576
  - app/models/questionnaire.rb
@@ -604,7 +619,8 @@ files:
604
619
  - app/views/manage/bus_lists/show.html.haml
605
620
  - app/views/manage/checkins/index.html.haml
606
621
  - app/views/manage/checkins/show.html.haml
607
- - app/views/manage/configs/show.html.haml
622
+ - app/views/manage/configs/edit.html.haml
623
+ - app/views/manage/configs/index.html.haml
608
624
  - app/views/manage/dashboard/index.html.haml
609
625
  - app/views/manage/dashboard/map_data.tsv.erb
610
626
  - app/views/manage/messages/_form.html.haml
@@ -647,8 +663,8 @@ files:
647
663
  - app/views/questionnaires/show.html.haml
648
664
  - app/views/rsvps/show.html.haml
649
665
  - app/workers/bulk_message_worker.rb
666
+ - config/app.yml
650
667
  - config/blazer.yml
651
- - config/initializers/0_hackathon.rb
652
668
  - config/initializers/ajax_datatables_rails.rb
653
669
  - config/initializers/chartkick.rb
654
670
  - config/initializers/devise.rb
@@ -716,6 +732,7 @@ files:
716
732
  - db/migrate/20190118204143_add_role_to_users.rb
717
733
  - db/migrate/20190125021648_change_questionnaire_dietary_special_needs_string_to_text.rb
718
734
  - db/migrate/20190213233902_add_prevent_duplicate_band_events_to_trackable_tags.rb
735
+ - db/migrate/20190216203450_create_settings.rb
719
736
  - db/schools.csv
720
737
  - db/seed_messages/questionnaire--accepted.md
721
738
  - db/seed_messages/questionnaire--denied.md
@@ -1,27 +0,0 @@
1
- = render "layouts/manage/page_title", title: "Hackathon Configuration"
2
-
3
- .row
4
- .col-lg-6.mb-3
5
- .card
6
- .card-body
7
- %h5.card-title Hackathon Manager Config
8
- %h6.card-subtitle.mb-2.text-muted
9
- Hackathon Manager configuration can be changed in the source code at
10
- %code config/hackathon.yml
11
- \.
12
- %hr
13
- - Rails.configuration.hackathon.keys.each do |key|
14
- %p
15
- %b #{key}:
16
- %pre= Rails.configuration.hackathon[key]
17
-
18
- .col-lg-6.mb-3
19
- .card
20
- .card-body
21
- %h5.card-title Environment Variables
22
- %h6.card-subtitle.mb-2.text-muted
23
- Environment variables are configured on the production server.
24
- %hr
25
- %p
26
- %b AWS S3 Bucket for Resumes:
27
- %pre= ENV['AWS_BUCKET'] || '[No value]'
@@ -1,3 +0,0 @@
1
- Rails.application.configure do
2
- HackathonManager.reload_config(Rails.application)
3
- end