mumuki-laboratory 9.12.1 → 9.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/app/controllers/application_controller.rb +7 -3
  4. data/app/controllers/book_controller.rb +6 -0
  5. data/app/controllers/chapters_controller.rb +9 -0
  6. data/app/controllers/discussions_controller.rb +9 -0
  7. data/app/controllers/exercises_controller.rb +5 -0
  8. data/app/controllers/faqs_controller.rb +4 -0
  9. data/app/controllers/lessons_controller.rb +9 -0
  10. data/app/controllers/users_controller.rb +4 -0
  11. data/app/helpers/concerns/with_student_path_navigation.rb +1 -1
  12. data/app/helpers/content_view_helper.rb +8 -0
  13. data/app/helpers/discussions_helper.rb +1 -1
  14. data/app/helpers/links_helper.rb +5 -1
  15. data/app/helpers/menu_bar_helper.rb +2 -3
  16. data/app/helpers/overlapped_buttons_helper.rb +2 -1
  17. data/app/views/book/show.html.erb +16 -7
  18. data/app/views/chapters/show.html.erb +1 -0
  19. data/app/views/discussions/_new_message.html.erb +1 -1
  20. data/app/views/discussions/show.html.erb +5 -5
  21. data/app/views/exercise_solutions/_results.html.erb +1 -1
  22. data/app/views/guides/_guide.html.erb +2 -2
  23. data/app/views/layouts/_progress_bar.html.erb +1 -0
  24. data/app/views/layouts/_progress_listing.html.erb +1 -0
  25. data/app/views/layouts/application.html.erb +4 -0
  26. data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
  27. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +6 -2
  28. data/app/views/layouts/exercise_inputs/read_only_editors/_hidden.html.erb +0 -0
  29. data/app/views/layouts/exercise_inputs/read_only_editors/_upload.html.erb +0 -0
  30. data/lib/mumuki/laboratory/controllers.rb +1 -0
  31. data/lib/mumuki/laboratory/controllers/authorization.rb +5 -1
  32. data/lib/mumuki/laboratory/controllers/validate_access_mode.rb +15 -0
  33. data/lib/mumuki/laboratory/version.rb +1 -1
  34. data/spec/features/menu_bar_spec.rb +3 -2
  35. data/spec/features/not_found_private_flow_spec.rb +1 -1
  36. data/spec/features/read_only_flow_spec.rb +920 -0
  37. metadata +13 -14
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.13.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-08-19 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.13.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.13.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
@@ -1009,6 +1007,7 @@ test_files:
1009
1007
  - spec/features/notifications_flow_spec.rb
1010
1008
  - spec/features/terms_flow_spec.rb
1011
1009
  - spec/features/home_private_flow_spec.rb
1010
+ - spec/features/read_only_flow_spec.rb
1012
1011
  - spec/features/runner_assets_spec.rb
1013
1012
  - spec/features/topic_flow_spec.rb
1014
1013
  - spec/features/complements_flow_spec.rb