mumuki-laboratory 9.12.1 → 9.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/app/assets/javascripts/mumuki_laboratory/application/codemirror-builder.js +9 -0
  4. data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +5 -4
  5. data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +6 -5
  6. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_breadcrumb.scss +11 -0
  7. data/app/controllers/application_controller.rb +15 -4
  8. data/app/controllers/book_controller.rb +6 -0
  9. data/app/controllers/chapters_controller.rb +9 -0
  10. data/app/controllers/discussions_controller.rb +20 -9
  11. data/app/controllers/exam_authorization_requests_controller.rb +1 -1
  12. data/app/controllers/exercise_solutions_controller.rb +1 -1
  13. data/app/controllers/exercises_controller.rb +5 -0
  14. data/app/controllers/faqs_controller.rb +4 -0
  15. data/app/controllers/lessons_controller.rb +9 -0
  16. data/app/controllers/users_controller.rb +8 -1
  17. data/app/helpers/concerns/with_student_path_navigation.rb +1 -1
  18. data/app/helpers/content_view_helper.rb +8 -0
  19. data/app/helpers/discussions_helper.rb +1 -1
  20. data/app/helpers/editor_helper.rb +5 -0
  21. data/app/helpers/exam_registration_helper.rb +1 -1
  22. data/app/helpers/links_helper.rb +5 -1
  23. data/app/helpers/menu_bar_helper.rb +2 -3
  24. data/app/helpers/overlapped_buttons_helper.rb +2 -1
  25. data/app/views/book/show.html.erb +16 -7
  26. data/app/views/chapters/show.html.erb +1 -0
  27. data/app/views/discussions/_new_message.html.erb +2 -2
  28. data/app/views/discussions/show.html.erb +5 -5
  29. data/app/views/exam_authorization_requests/_pending.html.erb +12 -5
  30. data/app/views/exam_registrations/show.html.erb +11 -9
  31. data/app/views/exercise_solutions/_results.html.erb +1 -1
  32. data/app/views/guides/_guide.html.erb +2 -2
  33. data/app/views/layouts/_progress_bar.html.erb +1 -0
  34. data/app/views/layouts/_progress_listing.html.erb +1 -0
  35. data/app/views/layouts/application.html.erb +11 -0
  36. data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
  37. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +6 -2
  38. data/app/views/layouts/exercise_inputs/read_only_editors/_hidden.html.erb +0 -0
  39. data/app/views/layouts/exercise_inputs/read_only_editors/_upload.html.erb +0 -0
  40. data/lib/mumuki/laboratory/controllers/authorization.rb +5 -1
  41. data/lib/mumuki/laboratory/controllers/validate_access_mode.rb +15 -0
  42. data/lib/mumuki/laboratory/controllers.rb +1 -0
  43. data/lib/mumuki/laboratory/locales/en.yml +1 -0
  44. data/lib/mumuki/laboratory/locales/es-CL.yml +7 -4
  45. data/lib/mumuki/laboratory/locales/es.yml +7 -4
  46. data/lib/mumuki/laboratory/locales/pt.yml +1 -0
  47. data/lib/mumuki/laboratory/version.rb +1 -1
  48. data/spec/features/menu_bar_spec.rb +3 -2
  49. data/spec/features/not_found_private_flow_spec.rb +1 -1
  50. data/spec/features/read_only_flow_spec.rb +933 -0
  51. metadata +127 -128
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.12.1
4
+ version: 9.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-12 00:00:00.000000000 Z
11
+ date: 2021-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 9.12.0
33
+ version: 9.14.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 9.12.0
40
+ version: 9.14.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-bridge
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '7.6'
61
+ version: '7.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '7.6'
68
+ version: '7.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mumukit-nuntius
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '7.8'
89
+ version: '7.11'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '7.8'
96
+ version: '7.11'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mumukit-content-type
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -353,9 +353,6 @@ dependencies:
353
353
  - - "~>"
354
354
  - !ruby/object:Gem::Version
355
355
  version: '2.0'
356
- - - "<"
357
- - !ruby/object:Gem::Version
358
- version: '2.2'
359
356
  type: :development
360
357
  prerelease: false
361
358
  version_requirements: !ruby/object:Gem::Requirement
@@ -363,9 +360,6 @@ dependencies:
363
360
  - - "~>"
364
361
  - !ruby/object:Gem::Version
365
362
  version: '2.0'
366
- - - "<"
367
- - !ruby/object:Gem::Version
368
- version: '2.2'
369
363
  - !ruby/object:Gem::Dependency
370
364
  name: webdrivers
371
365
  requirement: !ruby/object:Gem::Requirement
@@ -679,10 +673,12 @@ files:
679
673
  - app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb
680
674
  - app/views/layouts/exercise_inputs/read_only_editors/_custom.html.erb
681
675
  - app/views/layouts/exercise_inputs/read_only_editors/_free_form.html.erb
676
+ - app/views/layouts/exercise_inputs/read_only_editors/_hidden.html.erb
682
677
  - app/views/layouts/exercise_inputs/read_only_editors/_multiple_choice.html.erb
683
678
  - app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb
684
679
  - app/views/layouts/exercise_inputs/read_only_editors/_single_choice.html.erb
685
680
  - app/views/layouts/exercise_inputs/read_only_editors/_text.erb
681
+ - app/views/layouts/exercise_inputs/read_only_editors/_upload.html.erb
686
682
  - app/views/layouts/mailer.html.erb
687
683
  - app/views/layouts/mailer.text.erb
688
684
  - app/views/layouts/modals/_avatar_picker.html.erb
@@ -762,6 +758,7 @@ files:
762
758
  - lib/mumuki/laboratory/controllers/nested_in_exercise.rb
763
759
  - lib/mumuki/laboratory/controllers/notifications.rb
764
760
  - lib/mumuki/laboratory/controllers/results_rendering.rb
761
+ - lib/mumuki/laboratory/controllers/validate_access_mode.rb
765
762
  - lib/mumuki/laboratory/engine.rb
766
763
  - lib/mumuki/laboratory/events/events.rb
767
764
  - lib/mumuki/laboratory/extensions.rb
@@ -877,6 +874,7 @@ files:
877
874
  - spec/features/notifications_flow_spec.rb
878
875
  - spec/features/profile_flow_spec.rb
879
876
  - spec/features/progressive_tips_spec.rb
877
+ - spec/features/read_only_flow_spec.rb
880
878
  - spec/features/runner_assets_spec.rb
881
879
  - spec/features/standard_flow_spec.rb
882
880
  - spec/features/terms_flow_spec.rb
@@ -982,134 +980,135 @@ signing_key:
982
980
  specification_version: 4
983
981
  summary: Code assement web application for the Mumuki Platform.
984
982
  test_files:
985
- - spec/capybara_helper.rb
983
+ - spec/evaluation_helper.rb
986
984
  - spec/api_helper.rb
987
- - spec/features/lessons_flow_spec.rb
988
- - spec/features/login_flow_spec.rb
989
- - spec/features/exercise_flow_spec.rb
990
- - spec/features/immersive_redirection_spec.rb
991
- - spec/features/disabled_organization_flow_spec.rb
992
- - spec/features/discussion_flow_spec.rb
993
- - spec/features/menu_bar_spec.rb
994
- - spec/features/invitations_flow_spec.rb
985
+ - spec/features/exams_flow_spec.rb
995
986
  - spec/features/standard_flow_spec.rb
996
- - spec/features/not_found_public_flow_spec.rb
987
+ - spec/features/guides_flow_spec.rb
988
+ - spec/features/dynamic_exam_spec.rb
989
+ - spec/features/disabled_organization_flow_spec.rb
990
+ - spec/features/user_activity_flow_spec.rb
997
991
  - spec/features/home_public_flow_spec.rb
998
- - spec/features/chapters_flow_spec.rb
992
+ - spec/features/read_only_flow_spec.rb
993
+ - spec/features/home_private_flow_spec.rb
994
+ - spec/features/immersive_redirection_spec.rb
995
+ - spec/features/progressive_tips_spec.rb
996
+ - spec/features/login_flow_spec.rb
997
+ - spec/features/exercise_flow_spec.rb
999
998
  - spec/features/disable_user_flow_spec.rb
1000
- - spec/features/links_flow_spec.rb
1001
- - spec/features/certificate_programs_flow_spec.rb
1002
- - spec/features/exams_flow_spec.rb
1003
- - spec/features/user_activity_flow_spec.rb
1004
- - spec/features/guide_reset_spec.rb
1005
- - spec/features/dynamic_exam_spec.rb
999
+ - spec/features/menu_bar_spec.rb
1006
1000
  - spec/features/not_found_private_flow_spec.rb
1007
- - spec/features/guides_flow_spec.rb
1008
- - spec/features/profile_flow_spec.rb
1001
+ - spec/features/guide_reset_spec.rb
1009
1002
  - spec/features/notifications_flow_spec.rb
1010
- - spec/features/terms_flow_spec.rb
1011
- - spec/features/home_private_flow_spec.rb
1012
- - spec/features/runner_assets_spec.rb
1013
- - spec/features/topic_flow_spec.rb
1003
+ - spec/features/lessons_flow_spec.rb
1004
+ - spec/features/chapters_flow_spec.rb
1005
+ - spec/features/profile_flow_spec.rb
1014
1006
  - spec/features/complements_flow_spec.rb
1015
- - spec/features/progressive_tips_spec.rb
1016
- - spec/helpers/breadcrumbs_helper_spec.rb
1017
- - spec/helpers/certificate_helper_spec.rb
1018
- - spec/helpers/avatar_helper_spec.rb
1019
- - spec/helpers/with_navigation_spec.rb
1020
- - spec/helpers/authors_helper_spec.rb
1021
- - spec/helpers/with_choices_spec.rb
1022
- - spec/helpers/icons_helper_spec.rb
1023
- - spec/helpers/email_helper_spec.rb
1024
- - spec/helpers/exercise_input_helper_spec.rb
1025
- - spec/helpers/user_activity_helper_spec.rb
1026
- - spec/helpers/test_results_rendering_spec.rb
1027
- - spec/helpers/application_helper_spec.rb
1028
- - spec/helpers/page_title_helper_spec.rb
1029
- - spec/evaluation_helper.rb
1030
- - spec/dummy/Rakefile
1031
- - spec/dummy/package.json
1032
- - spec/dummy/bin/setup
1033
- - spec/dummy/bin/bundle
1034
- - spec/dummy/bin/yarn
1035
- - spec/dummy/bin/rake
1036
- - spec/dummy/bin/rails
1037
- - spec/dummy/bin/update
1038
- - spec/dummy/public/error/timeout_2.svg
1039
- - spec/dummy/public/error/timeout_3.svg
1040
- - spec/dummy/public/error/timeout_1.svg
1041
- - spec/dummy/public/error/500.svg
1042
- - spec/dummy/public/error/403.svg
1043
- - spec/dummy/public/error/401.svg
1044
- - spec/dummy/public/error/410.svg
1045
- - spec/dummy/public/error/404.svg
1046
- - spec/dummy/public/character/magnifying_glass/loop.svg
1047
- - spec/dummy/public/character/magnifying_glass/apparition.svg
1048
- - spec/dummy/public/character/kibi/success_l.svg
1049
- - spec/dummy/public/character/kibi/failure.svg
1050
- - spec/dummy/public/character/kibi/jump.svg
1051
- - spec/dummy/public/character/kibi/passed_with_warnings.svg
1052
- - spec/dummy/public/character/kibi/success2_l.svg
1053
- - spec/dummy/public/character/kibi/context.svg
1054
- - spec/dummy/public/character/animations.json
1055
- - spec/dummy/public/medal/outline.svg
1056
- - spec/dummy/db/schema.rb
1057
- - spec/dummy/db/seeds.rb
1058
- - spec/dummy/config.ru
1059
- - spec/dummy/config/secrets.yml
1060
- - spec/dummy/config/puma.rb
1061
- - spec/dummy/config/boot.rb
1062
- - spec/dummy/config/locales/en.yml
1063
- - spec/dummy/config/environment.rb
1064
- - spec/dummy/config/initializers/assets.rb
1065
- - spec/dummy/config/initializers/wrap_parameters.rb
1066
- - spec/dummy/config/initializers/cookies_serializer.rb
1067
- - spec/dummy/config/initializers/filter_parameter_logging.rb
1068
- - spec/dummy/config/database.yml
1069
- - spec/dummy/config/routes.rb
1070
- - spec/dummy/config/spring.rb
1071
- - spec/dummy/config/rabbit.yml
1072
- - spec/dummy/config/environments/development.rb
1073
- - spec/dummy/config/environments/test.rb
1074
- - spec/dummy/config/application.rb
1075
- - spec/dummy/config/cable.yml
1076
- - spec/teaspoon_env.rb
1077
- - spec/controllers/exercise_solutions_controller_spec.rb
1078
- - spec/controllers/exam_authorization_requests_controller_spec.rb
1079
- - spec/controllers/discussions_controller_spec.rb
1080
- - spec/controllers/guide_progress_controller_spec.rb
1081
- - spec/controllers/users_controller_spec.rb
1082
- - spec/controllers/courses_api_controller_spec.rb
1083
- - spec/controllers/chapters_controller_spec.rb
1084
- - spec/controllers/users_api_controller_spec.rb
1085
- - spec/controllers/exam_registrations_controller_spec.rb
1086
- - spec/controllers/students_api_controller_spec.rb
1087
- - spec/controllers/confirmations_controller_spec.rb
1088
- - spec/controllers/api_clients_controller.rb
1089
- - spec/controllers/certificates_controller_spec.rb
1090
- - spec/controllers/invitations_controller_spec.rb
1091
- - spec/controllers/discussions_messages_controller_spec.rb
1092
- - spec/controllers/messages_controller_spec.rb
1093
- - spec/controllers/organizations_api_controller_spec.rb
1094
- - spec/javascripts/elipsis-spec.js
1095
- - spec/javascripts/bridge-spec.js
1007
+ - spec/features/not_found_public_flow_spec.rb
1008
+ - spec/features/certificate_programs_flow_spec.rb
1009
+ - spec/features/topic_flow_spec.rb
1010
+ - spec/features/links_flow_spec.rb
1011
+ - spec/features/runner_assets_spec.rb
1012
+ - spec/features/invitations_flow_spec.rb
1013
+ - spec/features/discussion_flow_spec.rb
1014
+ - spec/features/terms_flow_spec.rb
1015
+ - spec/capybara_helper.rb
1016
+ - spec/javascripts/gamification-spec.js
1017
+ - spec/javascripts/upload-spec.js
1018
+ - spec/javascripts/timer-spec.js
1096
1019
  - spec/javascripts/timeout-spec.js
1020
+ - spec/javascripts/elipsis-spec.js
1021
+ - spec/javascripts/editors-spec.js
1022
+ - spec/javascripts/speech-bubble-renderer-spec.js
1097
1023
  - spec/javascripts/results-renderers-spec.js
1024
+ - spec/javascripts/sync-mode-spec.js
1025
+ - spec/javascripts/i18n-spec.js
1098
1026
  - spec/javascripts/submissions-store-spec.js
1099
1027
  - spec/javascripts/kids-button-spec.js
1100
- - spec/javascripts/speech-bubble-renderer-spec.js
1101
- - spec/javascripts/sync-mode-spec.js
1028
+ - spec/javascripts/exercise-spec.js
1029
+ - spec/javascripts/global-spec.js
1030
+ - spec/javascripts/bridge-spec.js
1102
1031
  - spec/javascripts/events-spec.js
1103
- - spec/javascripts/editors-spec.js
1104
1032
  - spec/javascripts/spec-helper.js
1105
- - spec/javascripts/gamification-spec.js
1106
- - spec/javascripts/i18n-spec.js
1107
- - spec/javascripts/upload-spec.js
1108
- - spec/javascripts/timer-spec.js
1109
- - spec/javascripts/global-spec.js
1110
- - spec/javascripts/exercise-spec.js
1111
1033
  - spec/javascripts/csrf-token-spec.js
1112
1034
  - spec/login_helper.rb
1113
1035
  - spec/spec_helper.rb
1114
- - spec/mailers/previews/user_mailer_preview.rb
1036
+ - spec/controllers/exam_authorization_requests_controller_spec.rb
1037
+ - spec/controllers/api_clients_controller.rb
1038
+ - spec/controllers/exercise_solutions_controller_spec.rb
1039
+ - spec/controllers/discussions_controller_spec.rb
1040
+ - spec/controllers/exam_registrations_controller_spec.rb
1041
+ - spec/controllers/organizations_api_controller_spec.rb
1042
+ - spec/controllers/certificates_controller_spec.rb
1043
+ - spec/controllers/discussions_messages_controller_spec.rb
1044
+ - spec/controllers/users_controller_spec.rb
1045
+ - spec/controllers/invitations_controller_spec.rb
1046
+ - spec/controllers/guide_progress_controller_spec.rb
1047
+ - spec/controllers/users_api_controller_spec.rb
1048
+ - spec/controllers/students_api_controller_spec.rb
1049
+ - spec/controllers/confirmations_controller_spec.rb
1050
+ - spec/controllers/messages_controller_spec.rb
1051
+ - spec/controllers/chapters_controller_spec.rb
1052
+ - spec/controllers/courses_api_controller_spec.rb
1115
1053
  - spec/mailers/user_mailer_spec.rb
1054
+ - spec/mailers/previews/user_mailer_preview.rb
1055
+ - spec/teaspoon_env.rb
1056
+ - spec/dummy/bin/update
1057
+ - spec/dummy/bin/yarn
1058
+ - spec/dummy/bin/rake
1059
+ - spec/dummy/bin/bundle
1060
+ - spec/dummy/bin/setup
1061
+ - spec/dummy/bin/rails
1062
+ - spec/dummy/config/cable.yml
1063
+ - spec/dummy/config/boot.rb
1064
+ - spec/dummy/config/secrets.yml
1065
+ - spec/dummy/config/routes.rb
1066
+ - spec/dummy/config/environments/test.rb
1067
+ - spec/dummy/config/environments/development.rb
1068
+ - spec/dummy/config/locales/en.yml
1069
+ - spec/dummy/config/initializers/cookies_serializer.rb
1070
+ - spec/dummy/config/initializers/wrap_parameters.rb
1071
+ - spec/dummy/config/initializers/assets.rb
1072
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
1073
+ - spec/dummy/config/application.rb
1074
+ - spec/dummy/config/spring.rb
1075
+ - spec/dummy/config/database.yml
1076
+ - spec/dummy/config/environment.rb
1077
+ - spec/dummy/config/rabbit.yml
1078
+ - spec/dummy/config/puma.rb
1079
+ - spec/dummy/Rakefile
1080
+ - spec/dummy/db/schema.rb
1081
+ - spec/dummy/db/seeds.rb
1082
+ - spec/dummy/public/character/kibi/success_l.svg
1083
+ - spec/dummy/public/character/kibi/failure.svg
1084
+ - spec/dummy/public/character/kibi/context.svg
1085
+ - spec/dummy/public/character/kibi/jump.svg
1086
+ - spec/dummy/public/character/kibi/success2_l.svg
1087
+ - spec/dummy/public/character/kibi/passed_with_warnings.svg
1088
+ - spec/dummy/public/character/animations.json
1089
+ - spec/dummy/public/character/magnifying_glass/loop.svg
1090
+ - spec/dummy/public/character/magnifying_glass/apparition.svg
1091
+ - spec/dummy/public/medal/outline.svg
1092
+ - spec/dummy/public/error/timeout_2.svg
1093
+ - spec/dummy/public/error/410.svg
1094
+ - spec/dummy/public/error/timeout_3.svg
1095
+ - spec/dummy/public/error/500.svg
1096
+ - spec/dummy/public/error/403.svg
1097
+ - spec/dummy/public/error/timeout_1.svg
1098
+ - spec/dummy/public/error/404.svg
1099
+ - spec/dummy/public/error/401.svg
1100
+ - spec/dummy/config.ru
1101
+ - spec/dummy/package.json
1102
+ - spec/helpers/with_choices_spec.rb
1103
+ - spec/helpers/email_helper_spec.rb
1104
+ - spec/helpers/test_results_rendering_spec.rb
1105
+ - spec/helpers/authors_helper_spec.rb
1106
+ - spec/helpers/with_navigation_spec.rb
1107
+ - spec/helpers/certificate_helper_spec.rb
1108
+ - spec/helpers/page_title_helper_spec.rb
1109
+ - spec/helpers/user_activity_helper_spec.rb
1110
+ - spec/helpers/application_helper_spec.rb
1111
+ - spec/helpers/breadcrumbs_helper_spec.rb
1112
+ - spec/helpers/icons_helper_spec.rb
1113
+ - spec/helpers/exercise_input_helper_spec.rb
1114
+ - spec/helpers/avatar_helper_spec.rb