mumuki-laboratory 9.3.0 → 9.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +15 -0
- data/app/assets/javascripts/mumuki_laboratory/application/faqs.js +6 -6
- data/app/assets/javascripts/mumuki_laboratory/application/toast.js +12 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +0 -25
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +4 -3
- data/app/controllers/discussions_controller.rb +29 -2
- data/app/controllers/exam_authorization_requests_controller.rb +7 -1
- data/app/helpers/discussions_helper.rb +26 -2
- data/app/views/discussions/_description_message.html.erb +1 -1
- data/app/views/discussions/_message.html.erb +1 -1
- data/app/views/discussions/_new_message.html.erb +1 -1
- data/app/views/discussions/new.html.erb +1 -1
- data/app/views/discussions/show.html.erb +6 -0
- data/app/views/exam_authorization_requests/_approved.html.erb +1 -1
- data/app/views/exam_authorization_requests/_pending.html.erb +2 -2
- data/app/views/exam_registrations/show.html.erb +3 -2
- data/app/views/exercises/_read_only.html.erb +5 -6
- data/app/views/faqs/index.html.erb +1 -1
- data/app/views/layouts/_discussions.html.erb +3 -3
- data/app/views/layouts/_main.html.erb +4 -10
- data/app/views/layouts/_toast.html.erb +7 -0
- data/app/views/users/activity.html.erb +8 -6
- data/app/views/users/exam_authorizations.html.erb +1 -1
- data/config/routes.rb +2 -0
- data/lib/mumuki/laboratory/locales/en.yml +13 -5
- data/lib/mumuki/laboratory/locales/es-CL.yml +12 -3
- data/lib/mumuki/laboratory/locales/es.yml +12 -4
- data/lib/mumuki/laboratory/locales/pt.yml +12 -4
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/lib/tasks/exams.rake +15 -0
- data/spec/controllers/discussions_controller_spec.rb +42 -0
- data/spec/dummy/db/schema.rb +3 -3
- data/spec/features/discussion_flow_spec.rb +38 -14
- data/spec/features/user_activity_flow_spec.rb +30 -10
- data/spec/helpers/with_navigation_spec.rb +22 -0
- metadata +114 -112
@@ -131,5 +131,27 @@ describe WithStudentPathNavigation, organization_workspace: :test do
|
|
131
131
|
it { expect { next_button(exercise) }.to_not raise_error }
|
132
132
|
it { expect(next_button(exercise)).to be_nil }
|
133
133
|
end
|
134
|
+
|
135
|
+
context "when there are manual_evaluation exercises" do
|
136
|
+
let(:book) { create :book, topics: [topic] }
|
137
|
+
let(:topic) { create :topic, lessons: [lesson_1, lesson_2] }
|
138
|
+
let(:lesson_1) { create :lesson, exercises: [create(:exercise, manual_evaluation: true)] }
|
139
|
+
let(:lesson_2) { create :lesson, exercises: [regular_exercise] }
|
140
|
+
let(:regular_exercise) { create :exercise }
|
141
|
+
|
142
|
+
before { organization.switch!.reindex_usages! }
|
143
|
+
|
144
|
+
context 'on organization with prevent_manual_evaluation_content' do
|
145
|
+
let(:organization) { create :organization, prevent_manual_evaluation_content: true, book: book }
|
146
|
+
|
147
|
+
it { expect(next_button(lesson_2)).to be_nil }
|
148
|
+
end
|
149
|
+
|
150
|
+
context 'on organization without prevent_manual_evaluation_content' do
|
151
|
+
let(:organization) { create :organization, book: book }
|
152
|
+
|
153
|
+
it { expect(next_button(lesson_2)).to eq "<a class=\"btn btn-warning w-100\" role=\"button\" href=\"/lessons/#{lesson_1.friendly_name}\"><span class=\"fa5-text-r\">Next pending: #{lesson_1.name}</span><i class=\"fas fa-chevron-right\"></i></a>" }
|
154
|
+
end
|
155
|
+
end
|
134
156
|
end
|
135
157
|
end
|
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.
|
4
|
+
version: 9.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Bulgarelli
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-11 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.
|
33
|
+
version: 9.5.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.
|
40
|
+
version: 9.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mumukit-bridge
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -648,6 +648,7 @@ files:
|
|
648
648
|
- app/views/layouts/_terms_acceptance_disclaimer.html.erb
|
649
649
|
- app/views/layouts/_test_results.html.erb
|
650
650
|
- app/views/layouts/_timer.html.erb
|
651
|
+
- app/views/layouts/_toast.html.erb
|
651
652
|
- app/views/layouts/_user_menu.html.erb
|
652
653
|
- app/views/layouts/application.html.erb
|
653
654
|
- app/views/layouts/embedded.html.erb
|
@@ -755,6 +756,7 @@ files:
|
|
755
756
|
- lib/mumuki/laboratory/version.rb
|
756
757
|
- lib/tasks/assignments.rake
|
757
758
|
- lib/tasks/events.rake
|
759
|
+
- lib/tasks/exams.rake
|
758
760
|
- lib/tasks/messages.rake
|
759
761
|
- lib/tasks/users.rake
|
760
762
|
- public/422.html
|
@@ -939,7 +941,7 @@ homepage: https://mumuki.io
|
|
939
941
|
licenses:
|
940
942
|
- AGPL-3.0
|
941
943
|
metadata: {}
|
942
|
-
post_install_message:
|
944
|
+
post_install_message:
|
943
945
|
rdoc_options: []
|
944
946
|
require_paths:
|
945
947
|
- lib
|
@@ -955,138 +957,138 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
955
957
|
version: '0'
|
956
958
|
requirements: []
|
957
959
|
rubygems_version: 3.1.2
|
958
|
-
signing_key:
|
960
|
+
signing_key:
|
959
961
|
specification_version: 4
|
960
962
|
summary: Code assement web application for the Mumuki Platform.
|
961
963
|
test_files:
|
962
|
-
- spec/
|
964
|
+
- spec/controllers/users_controller_spec.rb
|
965
|
+
- spec/controllers/discussions_messages_controller_spec.rb
|
966
|
+
- spec/controllers/exercise_solutions_controller_spec.rb
|
967
|
+
- spec/controllers/certificates_controller_spec.rb
|
968
|
+
- spec/controllers/guide_progress_controller_spec.rb
|
969
|
+
- spec/controllers/users_api_controller_spec.rb
|
970
|
+
- spec/controllers/chapters_controller_spec.rb
|
971
|
+
- spec/controllers/exam_registrations_controller_spec.rb
|
972
|
+
- spec/controllers/messages_controller_spec.rb
|
973
|
+
- spec/controllers/courses_api_controller_spec.rb
|
974
|
+
- spec/controllers/invitations_controller_spec.rb
|
975
|
+
- spec/controllers/exam_authorization_requests_controller_spec.rb
|
976
|
+
- spec/controllers/confirmations_controller_spec.rb
|
977
|
+
- spec/controllers/api_clients_controller.rb
|
978
|
+
- spec/controllers/discussions_controller_spec.rb
|
979
|
+
- spec/controllers/organizations_api_controller_spec.rb
|
980
|
+
- spec/controllers/students_api_controller_spec.rb
|
981
|
+
- spec/capybara_helper.rb
|
982
|
+
- spec/evaluation_helper.rb
|
963
983
|
- spec/mailers/previews/user_mailer_preview.rb
|
984
|
+
- spec/mailers/user_mailer_spec.rb
|
964
985
|
- spec/spec_helper.rb
|
965
|
-
- spec/
|
966
|
-
- spec/
|
967
|
-
- spec/
|
968
|
-
- spec/
|
969
|
-
- spec/helpers/with_choices_spec.rb
|
970
|
-
- spec/helpers/exercise_input_helper_spec.rb
|
971
|
-
- spec/helpers/avatar_helper_spec.rb
|
972
|
-
- spec/helpers/with_navigation_spec.rb
|
973
|
-
- spec/helpers/certificate_helper_spec.rb
|
974
|
-
- spec/helpers/icons_helper_spec.rb
|
975
|
-
- spec/helpers/authors_helper_spec.rb
|
976
|
-
- spec/helpers/breadcrumbs_helper_spec.rb
|
977
|
-
- spec/helpers/user_activity_helper_spec.rb
|
978
|
-
- spec/features/guide_reset_spec.rb
|
986
|
+
- spec/api_helper.rb
|
987
|
+
- spec/features/not_found_public_flow_spec.rb
|
988
|
+
- spec/features/invitations_flow_spec.rb
|
989
|
+
- spec/features/immersive_redirection_spec.rb
|
979
990
|
- spec/features/runner_assets_spec.rb
|
980
|
-
- spec/features/disable_user_flow_spec.rb
|
981
|
-
- spec/features/topic_flow_spec.rb
|
982
|
-
- spec/features/complements_flow_spec.rb
|
983
991
|
- spec/features/certificate_programs_flow_spec.rb
|
984
|
-
- spec/features/not_found_private_flow_spec.rb
|
985
|
-
- spec/features/user_activity_flow_spec.rb
|
986
|
-
- spec/features/standard_flow_spec.rb
|
987
|
-
- spec/features/notifications_flow_spec.rb
|
988
|
-
- spec/features/exercise_flow_spec.rb
|
989
992
|
- spec/features/chapters_flow_spec.rb
|
990
993
|
- spec/features/links_flow_spec.rb
|
991
|
-
- spec/features/
|
992
|
-
- spec/features/
|
994
|
+
- spec/features/login_flow_spec.rb
|
995
|
+
- spec/features/standard_flow_spec.rb
|
996
|
+
- spec/features/complements_flow_spec.rb
|
997
|
+
- spec/features/profile_flow_spec.rb
|
993
998
|
- spec/features/progressive_tips_spec.rb
|
994
|
-
- spec/features/
|
999
|
+
- spec/features/exams_flow_spec.rb
|
1000
|
+
- spec/features/guide_reset_spec.rb
|
1001
|
+
- spec/features/disable_user_flow_spec.rb
|
995
1002
|
- spec/features/discussion_flow_spec.rb
|
996
|
-
- spec/features/
|
997
|
-
- spec/features/invitations_flow_spec.rb
|
1003
|
+
- spec/features/home_private_flow_spec.rb
|
998
1004
|
- spec/features/menu_bar_spec.rb
|
1005
|
+
- spec/features/exercise_flow_spec.rb
|
1006
|
+
- spec/features/topic_flow_spec.rb
|
999
1007
|
- spec/features/disabled_organization_flow_spec.rb
|
1000
|
-
- spec/features/
|
1001
|
-
- spec/features/
|
1008
|
+
- spec/features/notifications_flow_spec.rb
|
1009
|
+
- spec/features/user_activity_flow_spec.rb
|
1010
|
+
- spec/features/terms_flow_spec.rb
|
1002
1011
|
- spec/features/guides_flow_spec.rb
|
1003
|
-
- spec/features/
|
1004
|
-
- spec/features/
|
1005
|
-
- spec/features/
|
1006
|
-
- spec/features/
|
1007
|
-
- spec/
|
1008
|
-
- spec/
|
1009
|
-
- spec/
|
1010
|
-
- spec/
|
1011
|
-
- spec/
|
1012
|
-
- spec/
|
1013
|
-
- spec/
|
1014
|
-
- spec/
|
1015
|
-
- spec/
|
1016
|
-
- spec/
|
1017
|
-
- spec/
|
1018
|
-
- spec/
|
1019
|
-
- spec/
|
1020
|
-
- spec/
|
1021
|
-
- spec/
|
1022
|
-
- spec/
|
1023
|
-
- spec/
|
1024
|
-
- spec/
|
1025
|
-
- spec/
|
1026
|
-
- spec/
|
1027
|
-
- spec/
|
1028
|
-
- spec/
|
1012
|
+
- spec/features/lessons_flow_spec.rb
|
1013
|
+
- spec/features/home_public_flow_spec.rb
|
1014
|
+
- spec/features/not_found_private_flow_spec.rb
|
1015
|
+
- spec/features/dynamic_exam_spec.rb
|
1016
|
+
- spec/javascripts/spec-helper.js
|
1017
|
+
- spec/javascripts/results-renderers-spec.js
|
1018
|
+
- spec/javascripts/i18n-spec.js
|
1019
|
+
- spec/javascripts/timeout-spec.js
|
1020
|
+
- spec/javascripts/global-spec.js
|
1021
|
+
- spec/javascripts/csrf-token-spec.js
|
1022
|
+
- spec/javascripts/submissions-store-spec.js
|
1023
|
+
- spec/javascripts/events-spec.js
|
1024
|
+
- spec/javascripts/gamification-spec.js
|
1025
|
+
- spec/javascripts/sync-mode-spec.js
|
1026
|
+
- spec/javascripts/elipsis-spec.js
|
1027
|
+
- spec/javascripts/kids-button-spec.js
|
1028
|
+
- spec/javascripts/upload-spec.js
|
1029
|
+
- spec/javascripts/editors-spec.js
|
1030
|
+
- spec/javascripts/bridge-spec.js
|
1031
|
+
- spec/javascripts/exercise-spec.js
|
1032
|
+
- spec/javascripts/timer-spec.js
|
1033
|
+
- spec/javascripts/speech-bubble-renderer-spec.js
|
1034
|
+
- spec/helpers/breadcrumbs_helper_spec.rb
|
1035
|
+
- spec/helpers/email_helper_spec.rb
|
1036
|
+
- spec/helpers/authors_helper_spec.rb
|
1037
|
+
- spec/helpers/avatar_helper_spec.rb
|
1038
|
+
- spec/helpers/with_choices_spec.rb
|
1039
|
+
- spec/helpers/icons_helper_spec.rb
|
1040
|
+
- spec/helpers/with_navigation_spec.rb
|
1041
|
+
- spec/helpers/exercise_input_helper_spec.rb
|
1042
|
+
- spec/helpers/page_title_helper_spec.rb
|
1043
|
+
- spec/helpers/application_helper_spec.rb
|
1044
|
+
- spec/helpers/user_activity_helper_spec.rb
|
1045
|
+
- spec/helpers/certificate_helper_spec.rb
|
1046
|
+
- spec/helpers/test_results_rendering_spec.rb
|
1047
|
+
- spec/dummy/db/schema.rb
|
1048
|
+
- spec/dummy/db/seeds.rb
|
1049
|
+
- spec/dummy/config.ru
|
1029
1050
|
- spec/dummy/bin/yarn
|
1030
1051
|
- spec/dummy/bin/update
|
1031
|
-
- spec/dummy/bin/bundle
|
1032
|
-
- spec/dummy/bin/setup
|
1033
1052
|
- spec/dummy/bin/rake
|
1053
|
+
- spec/dummy/bin/setup
|
1054
|
+
- spec/dummy/bin/bundle
|
1034
1055
|
- spec/dummy/bin/rails
|
1035
|
-
- spec/dummy/config.
|
1056
|
+
- spec/dummy/config/rabbit.yml
|
1057
|
+
- spec/dummy/config/spring.rb
|
1058
|
+
- spec/dummy/config/puma.rb
|
1059
|
+
- spec/dummy/config/routes.rb
|
1060
|
+
- spec/dummy/config/boot.rb
|
1061
|
+
- spec/dummy/config/initializers/assets.rb
|
1062
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
1063
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
1064
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
1065
|
+
- spec/dummy/config/locales/en.yml
|
1066
|
+
- spec/dummy/config/secrets.yml
|
1067
|
+
- spec/dummy/config/cable.yml
|
1068
|
+
- spec/dummy/config/environment.rb
|
1069
|
+
- spec/dummy/config/environments/development.rb
|
1070
|
+
- spec/dummy/config/environments/test.rb
|
1071
|
+
- spec/dummy/config/database.yml
|
1072
|
+
- spec/dummy/config/application.rb
|
1036
1073
|
- spec/dummy/package.json
|
1037
|
-
- spec/dummy/
|
1074
|
+
- spec/dummy/Rakefile
|
1075
|
+
- spec/dummy/public/character/kibi/failure.svg
|
1038
1076
|
- spec/dummy/public/character/kibi/jump.svg
|
1039
1077
|
- spec/dummy/public/character/kibi/success_l.svg
|
1040
|
-
- spec/dummy/public/character/kibi/failure.svg
|
1041
1078
|
- spec/dummy/public/character/kibi/passed_with_warnings.svg
|
1042
|
-
- spec/dummy/public/character/kibi/context.svg
|
1043
1079
|
- spec/dummy/public/character/kibi/success2_l.svg
|
1080
|
+
- spec/dummy/public/character/kibi/context.svg
|
1044
1081
|
- spec/dummy/public/character/magnifying_glass/apparition.svg
|
1045
1082
|
- spec/dummy/public/character/magnifying_glass/loop.svg
|
1046
|
-
- spec/dummy/public/
|
1083
|
+
- spec/dummy/public/character/animations.json
|
1084
|
+
- spec/dummy/public/error/timeout_1.svg
|
1047
1085
|
- spec/dummy/public/error/timeout_2.svg
|
1086
|
+
- spec/dummy/public/error/500.svg
|
1087
|
+
- spec/dummy/public/error/403.svg
|
1048
1088
|
- spec/dummy/public/error/401.svg
|
1089
|
+
- spec/dummy/public/error/timeout_3.svg
|
1049
1090
|
- spec/dummy/public/error/404.svg
|
1050
1091
|
- spec/dummy/public/error/410.svg
|
1051
|
-
- spec/dummy/public/
|
1052
|
-
- spec/
|
1053
|
-
- spec/
|
1054
|
-
- spec/dummy/public/error/500.svg
|
1055
|
-
- spec/dummy/db/schema.rb
|
1056
|
-
- spec/dummy/db/seeds.rb
|
1057
|
-
- spec/dummy/Rakefile
|
1058
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
1059
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
1060
|
-
- spec/dummy/config/initializers/assets.rb
|
1061
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
1062
|
-
- spec/dummy/config/secrets.yml
|
1063
|
-
- spec/dummy/config/database.yml
|
1064
|
-
- spec/dummy/config/boot.rb
|
1065
|
-
- spec/dummy/config/locales/en.yml
|
1066
|
-
- spec/dummy/config/environment.rb
|
1067
|
-
- spec/dummy/config/application.rb
|
1068
|
-
- spec/dummy/config/spring.rb
|
1069
|
-
- spec/dummy/config/environments/development.rb
|
1070
|
-
- spec/dummy/config/environments/test.rb
|
1071
|
-
- spec/dummy/config/routes.rb
|
1072
|
-
- spec/dummy/config/puma.rb
|
1073
|
-
- spec/dummy/config/cable.yml
|
1074
|
-
- spec/dummy/config/rabbit.yml
|
1075
|
-
- spec/javascripts/bridge-spec.js
|
1076
|
-
- spec/javascripts/global-spec.js
|
1077
|
-
- spec/javascripts/gamification-spec.js
|
1078
|
-
- spec/javascripts/spec-helper.js
|
1079
|
-
- spec/javascripts/exercise-spec.js
|
1080
|
-
- spec/javascripts/submissions-store-spec.js
|
1081
|
-
- spec/javascripts/upload-spec.js
|
1082
|
-
- spec/javascripts/results-renderers-spec.js
|
1083
|
-
- spec/javascripts/kids-button-spec.js
|
1084
|
-
- spec/javascripts/events-spec.js
|
1085
|
-
- spec/javascripts/speech-bubble-renderer-spec.js
|
1086
|
-
- spec/javascripts/editors-spec.js
|
1087
|
-
- spec/javascripts/sync-mode-spec.js
|
1088
|
-
- spec/javascripts/timer-spec.js
|
1089
|
-
- spec/javascripts/csrf-token-spec.js
|
1090
|
-
- spec/javascripts/i18n-spec.js
|
1091
|
-
- spec/javascripts/elipsis-spec.js
|
1092
|
-
- spec/javascripts/timeout-spec.js
|
1092
|
+
- spec/dummy/public/medal/outline.svg
|
1093
|
+
- spec/teaspoon_env.rb
|
1094
|
+
- spec/login_helper.rb
|