mumuki-laboratory 7.6.2 → 7.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +193 -2
  3. data/Rakefile +3 -0
  4. data/app/assets/javascripts/mumuki_laboratory/application.js +0 -1
  5. data/app/assets/javascripts/mumuki_laboratory/application/assets-loader.js +1 -1
  6. data/app/assets/javascripts/mumuki_laboratory/application/bridge.js +36 -10
  7. data/app/assets/javascripts/mumuki_laboratory/application/button.js +90 -1
  8. data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +1 -0
  9. data/app/assets/javascripts/mumuki_laboratory/application/custom-editor.js +46 -4
  10. data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +14 -13
  11. data/app/assets/javascripts/mumuki_laboratory/application/kids.js +73 -36
  12. data/app/assets/javascripts/mumuki_laboratory/application/progress.js +3 -0
  13. data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +51 -0
  14. data/app/assets/javascripts/mumuki_laboratory/application/submission.js +184 -35
  15. data/app/assets/stylesheets/mumuki_laboratory/application/_modules.scss +1 -0
  16. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +43 -5
  17. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +3 -3
  18. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +55 -0
  19. data/app/controllers/assets_controller.rb +2 -0
  20. data/app/controllers/concerns/with_authorization.rb +4 -0
  21. data/app/controllers/concerns/with_user_discussion_validation.rb +14 -0
  22. data/app/controllers/discussions_controller.rb +6 -14
  23. data/app/controllers/discussions_messages_controller.rb +10 -1
  24. data/app/controllers/exercise_solutions_controller.rb +4 -2
  25. data/app/helpers/application_helper.rb +9 -5
  26. data/app/helpers/discussions_helper.rb +37 -23
  27. data/app/helpers/exercise_input_helper.rb +1 -1
  28. data/app/helpers/icons_helper.rb +3 -3
  29. data/app/views/book_discussions/index.html.erb +3 -3
  30. data/app/views/discussions/_message.html.erb +20 -8
  31. data/app/views/discussions/index.html.erb +0 -1
  32. data/app/views/discussions/new.html.erb +33 -0
  33. data/app/views/discussions/show.html.erb +18 -46
  34. data/app/views/exercise_solutions/_contextualization_results_container.html.erb +1 -1
  35. data/app/views/exercise_solutions/_results_title.html.erb +2 -2
  36. data/app/views/exercises/_read_only.html.erb +33 -6
  37. data/app/views/layouts/_copyright.html.erb +1 -1
  38. data/app/views/layouts/_discussions.html.erb +21 -3
  39. data/app/views/layouts/_test_results.html.erb +1 -1
  40. data/app/views/layouts/exercise_inputs/editors/_custom.html.erb +1 -1
  41. data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
  42. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +1 -1
  43. data/app/views/layouts/exercise_inputs/layouts/_input_bottom.html.erb +1 -1
  44. data/app/views/layouts/exercise_inputs/layouts/_input_kindergarten.html.erb +40 -0
  45. data/app/views/layouts/exercise_inputs/layouts/{_input_kids.html.erb → _input_primary.html.erb} +1 -1
  46. data/app/views/layouts/exercise_inputs/layouts/_input_right.html.erb +1 -1
  47. data/app/views/layouts/modals/_kids_context.html.erb +1 -8
  48. data/app/views/user_mailer/1st_reminder.html.erb +1 -1
  49. data/app/views/user_mailer/1st_reminder.text.erb +1 -1
  50. data/app/views/user_mailer/2nd_reminder.html.erb +1 -1
  51. data/app/views/user_mailer/2nd_reminder.text.erb +1 -1
  52. data/app/views/user_mailer/3rd_reminder.html.erb +1 -1
  53. data/app/views/user_mailer/3rd_reminder.text.erb +1 -1
  54. data/app/views/user_mailer/no_submissions_reminder.html.erb +1 -1
  55. data/app/views/user_mailer/no_submissions_reminder.text.erb +1 -1
  56. data/config/routes.rb +2 -1
  57. data/lib/mumuki/laboratory/controllers/results_rendering.rb +1 -2
  58. data/lib/mumuki/laboratory/locales/en.yml +8 -2
  59. data/lib/mumuki/laboratory/locales/es-CL.yml +292 -0
  60. data/lib/mumuki/laboratory/locales/es.yml +7 -1
  61. data/lib/mumuki/laboratory/locales/pt.yml +8 -4
  62. data/lib/mumuki/laboratory/version.rb +1 -1
  63. data/spec/controllers/confirmations_controller_spec.rb +1 -1
  64. data/spec/controllers/discussions_messages_controller_spec.rb +73 -0
  65. data/spec/controllers/exercise_solutions_controller_spec.rb +41 -6
  66. data/spec/dummy/db/schema.rb +12 -1
  67. data/spec/features/discussion_flow_spec.rb +190 -0
  68. data/spec/features/exercise_flow_spec.rb +1 -1
  69. data/spec/features/menu_bar_spec.rb +88 -7
  70. data/spec/helpers/breadcrumbs_helper_spec.rb +1 -1
  71. data/spec/javascripts/bridge-spec.js +5 -0
  72. data/spec/javascripts/csrf-token-spec.js +7 -0
  73. data/spec/javascripts/elipsis-spec.js +25 -0
  74. data/spec/javascripts/results-renderers-spec.js +17 -0
  75. data/spec/javascripts/spec-helper.js +30 -0
  76. data/spec/javascripts/speech-bubble-renderer-spec.js +11 -0
  77. data/spec/javascripts/timeout-spec.js +5 -0
  78. data/spec/javascripts/timer-spec.js +5 -0
  79. data/spec/teaspoon_env.rb +187 -0
  80. metadata +34 -9
  81. data/app/views/layouts/modals/_new_discussion.html.erb +0 -27
  82. data/vendor/assets/javascripts/hotjar.js +0 -8
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: 7.6.2
4
+ version: 7.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-16 00:00:00.000000000 Z
11
+ date: 2020-08-31 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: 7.6.0
33
+ version: 7.7.3
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: 7.6.0
40
+ version: 7.7.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-bridge
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -358,6 +358,7 @@ files:
358
358
  - app/assets/javascripts/mumuki_laboratory/application/pin.js
359
359
  - app/assets/javascripts/mumuki_laboratory/application/popover.js
360
360
  - app/assets/javascripts/mumuki_laboratory/application/progress.js
361
+ - app/assets/javascripts/mumuki_laboratory/application/results-renderer.js
361
362
  - app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js
362
363
  - app/assets/javascripts/mumuki_laboratory/application/submission.js
363
364
  - app/assets/javascripts/mumuki_laboratory/application/timer.js
@@ -393,6 +394,7 @@ files:
393
394
  - app/assets/stylesheets/mumuki_laboratory/application/modules/_highlight.scss
394
395
  - app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss
395
396
  - app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss
397
+ - app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss
396
398
  - app/assets/stylesheets/mumuki_laboratory/application/modules/_modal.scss
397
399
  - app/assets/stylesheets/mumuki_laboratory/application/modules/_organization_chooser.scss
398
400
  - app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss
@@ -422,6 +424,7 @@ files:
422
424
  - app/controllers/concerns/users_controller_template.rb
423
425
  - app/controllers/concerns/with_authorization.rb
424
426
  - app/controllers/concerns/with_errors_filter.rb
427
+ - app/controllers/concerns/with_user_discussion_validation.rb
425
428
  - app/controllers/concerns/with_user_params.rb
426
429
  - app/controllers/discussions_controller.rb
427
430
  - app/controllers/discussions_messages_controller.rb
@@ -485,6 +488,7 @@ files:
485
488
  - app/views/discussions/_message_container.html.erb
486
489
  - app/views/discussions/_new_message.html.erb
487
490
  - app/views/discussions/index.html.erb
491
+ - app/views/discussions/new.html.erb
488
492
  - app/views/discussions/show.html.erb
489
493
  - app/views/errors/forbidden.html.erb
490
494
  - app/views/errors/gone.html.erb
@@ -547,7 +551,8 @@ files:
547
551
  - app/views/layouts/exercise_inputs/forms/_problem_form.html.erb
548
552
  - app/views/layouts/exercise_inputs/forms/_reading_form.html.erb
549
553
  - app/views/layouts/exercise_inputs/layouts/_input_bottom.html.erb
550
- - app/views/layouts/exercise_inputs/layouts/_input_kids.html.erb
554
+ - app/views/layouts/exercise_inputs/layouts/_input_kindergarten.html.erb
555
+ - app/views/layouts/exercise_inputs/layouts/_input_primary.html.erb
551
556
  - app/views/layouts/exercise_inputs/layouts/_input_right.html.erb
552
557
  - app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb
553
558
  - app/views/layouts/exercise_inputs/read_only_editors/_custom.html.erb
@@ -562,7 +567,6 @@ files:
562
567
  - app/views/layouts/modals/_kids_context.html.erb
563
568
  - app/views/layouts/modals/_kids_results.html.erb
564
569
  - app/views/layouts/modals/_kids_results_aborted.html.erb
565
- - app/views/layouts/modals/_new_discussion.html.erb
566
570
  - app/views/layouts/modals/_new_message.html.erb
567
571
  - app/views/lessons/show.html.erb
568
572
  - app/views/messages/errors.html.erb
@@ -600,6 +604,7 @@ files:
600
604
  - lib/mumuki/laboratory/extensions/request.rb
601
605
  - lib/mumuki/laboratory/locales/datetime.es.yml
602
606
  - lib/mumuki/laboratory/locales/en.yml
607
+ - lib/mumuki/laboratory/locales/es-CL.yml
603
608
  - lib/mumuki/laboratory/locales/es.yml
604
609
  - lib/mumuki/laboratory/locales/pt.yml
605
610
  - lib/mumuki/laboratory/locales/views.es.yml
@@ -629,6 +634,7 @@ files:
629
634
  - spec/controllers/confirmations_controller_spec.rb
630
635
  - spec/controllers/courses_api_controller_spec.rb
631
636
  - spec/controllers/discussions_controller_spec.rb
637
+ - spec/controllers/discussions_messages_controller_spec.rb
632
638
  - spec/controllers/exercise_solutions_controller_spec.rb
633
639
  - spec/controllers/guide_progress_controller_spec.rb
634
640
  - spec/controllers/invitations_controller_spec.rb
@@ -681,6 +687,7 @@ files:
681
687
  - spec/features/complements_flow_spec.rb
682
688
  - spec/features/disable_user_flow_spec.rb
683
689
  - spec/features/disabled_organization_flow_spec.rb
690
+ - spec/features/discussion_flow_spec.rb
684
691
  - spec/features/dynamic_exam_spec.rb
685
692
  - spec/features/exams_flow_spec.rb
686
693
  - spec/features/exercise_flow_spec.rb
@@ -710,10 +717,19 @@ files:
710
717
  - spec/helpers/test_results_rendering_spec.rb
711
718
  - spec/helpers/with_choices_spec.rb
712
719
  - spec/helpers/with_navigation_spec.rb
720
+ - spec/javascripts/bridge-spec.js
721
+ - spec/javascripts/csrf-token-spec.js
722
+ - spec/javascripts/elipsis-spec.js
723
+ - spec/javascripts/results-renderers-spec.js
724
+ - spec/javascripts/spec-helper.js
725
+ - spec/javascripts/speech-bubble-renderer-spec.js
726
+ - spec/javascripts/timeout-spec.js
727
+ - spec/javascripts/timer-spec.js
713
728
  - spec/login_helper.rb
714
729
  - spec/mailers/previews/user_mailer_preview.rb
715
730
  - spec/mailers/user_mailer_spec.rb
716
731
  - spec/spec_helper.rb
732
+ - spec/teaspoon_env.rb
717
733
  - vendor/assets/javascripts/analytics.js
718
734
  - vendor/assets/javascripts/codemirror-autorefresh.js
719
735
  - vendor/assets/javascripts/codemirror-modes/assembly_x86.js
@@ -750,7 +766,6 @@ files:
750
766
  - vendor/assets/javascripts/codemirror-modes/xml.min.js
751
767
  - vendor/assets/javascripts/codemirror-simple-mode.js
752
768
  - vendor/assets/javascripts/codemirror.min.js
753
- - vendor/assets/javascripts/hotjar.js
754
769
  - vendor/assets/javascripts/jquery-console.js
755
770
  - vendor/assets/javascripts/webcomponents-lite.js
756
771
  - vendor/assets/stylesheets/codemirror/codemirror.min.css
@@ -774,8 +789,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
774
789
  - !ruby/object:Gem::Version
775
790
  version: '0'
776
791
  requirements: []
777
- rubyforge_project:
778
- rubygems_version: 2.7.7
792
+ rubygems_version: 3.0.8
779
793
  signing_key:
780
794
  specification_version: 4
781
795
  summary: Code assement web application for the Mumuki Platform.
@@ -783,6 +797,7 @@ test_files:
783
797
  - spec/mailers/previews/user_mailer_preview.rb
784
798
  - spec/mailers/user_mailer_spec.rb
785
799
  - spec/spec_helper.rb
800
+ - spec/teaspoon_env.rb
786
801
  - spec/features/guide_reset_spec.rb
787
802
  - spec/features/complements_flow_spec.rb
788
803
  - spec/features/not_found_public_flow_spec.rb
@@ -797,6 +812,7 @@ test_files:
797
812
  - spec/features/home_private_flow_spec.rb
798
813
  - spec/features/lessons_flow_spec.rb
799
814
  - spec/features/dynamic_exam_spec.rb
815
+ - spec/features/discussion_flow_spec.rb
800
816
  - spec/features/not_found_private_flow_spec.rb
801
817
  - spec/features/progressive_tips_spec.rb
802
818
  - spec/features/exams_flow_spec.rb
@@ -859,6 +875,14 @@ test_files:
859
875
  - spec/api_helper.rb
860
876
  - spec/capybara_helper.rb
861
877
  - spec/evaluation_helper.rb
878
+ - spec/javascripts/bridge-spec.js
879
+ - spec/javascripts/speech-bubble-renderer-spec.js
880
+ - spec/javascripts/timeout-spec.js
881
+ - spec/javascripts/results-renderers-spec.js
882
+ - spec/javascripts/csrf-token-spec.js
883
+ - spec/javascripts/elipsis-spec.js
884
+ - spec/javascripts/timer-spec.js
885
+ - spec/javascripts/spec-helper.js
862
886
  - spec/controllers/discussions_controller_spec.rb
863
887
  - spec/controllers/chapters_controller_spec.rb
864
888
  - spec/controllers/students_api_controller_spec.rb
@@ -868,6 +892,7 @@ test_files:
868
892
  - spec/controllers/invitations_controller_spec.rb
869
893
  - spec/controllers/users_api_controller_spec.rb
870
894
  - spec/controllers/users_controller_spec.rb
895
+ - spec/controllers/discussions_messages_controller_spec.rb
871
896
  - spec/controllers/guide_progress_controller_spec.rb
872
897
  - spec/controllers/organizations_api_controller_spec.rb
873
898
  - spec/controllers/messages_controller_spec.rb
@@ -1,27 +0,0 @@
1
- <div class="modal fade new-discussion-modal" tabindex="-1" role="dialog" aria-hidden="true">
2
- <div class="modal-dialog">
3
- <%= form_for [@debatable, Discussion.new] do |f| %>
4
- <div class="modal-content">
5
- <div class="modal-header">
6
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
7
- <span aria-hidden="true">&times;</span>
8
- </button>
9
- <h3 class="text-left">Nueva Consulta</h3>
10
- </div>
11
- <div class="modal-body">
12
- <div class="container-fluid">
13
- <div class="row form-group">
14
- <div><%= f.text_field :title, class: 'form-control', placeholder: t(:title), required: true %></div>
15
- </div>
16
- <div class="row form-group">
17
- <div><%= f.text_area :description, class: 'form-control', placeholder: t(:description) %></div>
18
- </div>
19
- </div>
20
- </div>
21
- <div class="modal-footer">
22
- <button class="btn btn-success btn-block"> <%= t :send %> </button>
23
- </div>
24
- </div>
25
- <% end %>
26
- </div>
27
- </div>
@@ -1,8 +0,0 @@
1
- (function(h,o,t,j,a,r){
2
- h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
3
- h._hjSettings={hjid:646165,hjsv:6};
4
- a=o.getElementsByTagName('head')[0];
5
- r=o.createElement('script');r.async=1;
6
- r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
7
- a.appendChild(r);
8
- })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');