mumuki-laboratory 7.6.2 → 7.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +203 -2
- data/Rakefile +9 -0
- data/app/assets/javascripts/mumuki_laboratory/application.js +0 -1
- data/app/assets/javascripts/mumuki_laboratory/application/alias-modes.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/assets-loader.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/bridge.js +82 -47
- data/app/assets/javascripts/mumuki_laboratory/application/button.js +90 -1
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror-builder.js +28 -25
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +8 -9
- data/app/assets/javascripts/mumuki_laboratory/application/confirmation.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/console.js +41 -43
- data/app/assets/javascripts/mumuki_laboratory/application/csrf-token.js +9 -12
- data/app/assets/javascripts/mumuki_laboratory/application/custom-editor.js +46 -8
- data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +15 -16
- data/app/assets/javascripts/mumuki_laboratory/application/editors.js +104 -0
- data/app/assets/javascripts/mumuki_laboratory/application/elipsis.js +5 -4
- data/app/assets/javascripts/mumuki_laboratory/application/exercise.js +32 -0
- data/app/assets/javascripts/mumuki_laboratory/application/inputs.js +4 -2
- data/app/assets/javascripts/mumuki_laboratory/application/interval.js +2 -4
- data/app/assets/javascripts/mumuki_laboratory/application/kids.js +74 -37
- data/app/assets/javascripts/mumuki_laboratory/application/load-analytics.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/load-error-svg.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/messages.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +3 -6
- data/app/assets/javascripts/mumuki_laboratory/application/pin.js +3 -5
- data/app/assets/javascripts/mumuki_laboratory/application/progress.js +27 -6
- data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +60 -0
- data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +12 -5
- data/app/assets/javascripts/mumuki_laboratory/application/submission.js +122 -55
- data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +93 -0
- data/app/assets/javascripts/mumuki_laboratory/application/sync-mode.js +75 -0
- data/app/assets/javascripts/mumuki_laboratory/application/timer.js +5 -6
- data/app/assets/javascripts/mumuki_laboratory/application/tooltip.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/upload.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/user.js +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/_modules.scss +1 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +43 -5
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_gs-board.scss +3 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +3 -4
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +55 -0
- data/app/controllers/application_controller.rb +1 -0
- data/app/controllers/assets_controller.rb +2 -0
- data/app/controllers/concerns/with_authorization.rb +4 -0
- data/app/controllers/concerns/with_user_discussion_validation.rb +14 -0
- data/app/controllers/discussions_controller.rb +6 -14
- data/app/controllers/discussions_messages_controller.rb +10 -1
- data/app/controllers/exercise_solutions_controller.rb +4 -2
- data/app/helpers/application_helper.rb +9 -5
- data/app/helpers/discussions_helper.rb +37 -23
- data/app/helpers/exercise_input_helper.rb +1 -1
- data/app/helpers/{locale_helper.rb → globals_helper.rb} +6 -2
- data/app/helpers/icons_helper.rb +3 -3
- data/app/mailers/user_mailer.rb +24 -11
- data/app/views/book/show.html.erb +1 -1
- data/app/views/book_discussions/index.html.erb +3 -3
- data/app/views/discussions/_message.html.erb +20 -8
- data/app/views/discussions/index.html.erb +0 -1
- data/app/views/discussions/new.html.erb +33 -0
- data/app/views/discussions/show.html.erb +18 -46
- data/app/views/exercise_solutions/_contextualization_results_container.html.erb +1 -1
- data/app/views/exercise_solutions/_results_title.html.erb +2 -2
- data/app/views/exercises/_read_only.html.erb +33 -6
- data/app/views/exercises/show.html.erb +2 -0
- data/app/views/layouts/_copyright.html.erb +1 -1
- data/app/views/layouts/_discussions.html.erb +21 -3
- data/app/views/layouts/_main.html.erb +1 -2
- data/app/views/layouts/_progress.html.erb +1 -1
- data/app/views/layouts/_progress_bar.html.erb +7 -1
- data/app/views/layouts/_test_results.html.erb +1 -1
- data/app/views/layouts/application.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/editors/_custom.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/layouts/_input_bottom.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/layouts/_input_kindergarten.html.erb +40 -0
- data/app/views/layouts/exercise_inputs/layouts/{_input_kids.html.erb → _input_primary.html.erb} +1 -1
- data/app/views/layouts/exercise_inputs/layouts/_input_right.html.erb +1 -1
- data/app/views/layouts/modals/_kids_context.html.erb +1 -8
- data/app/views/user_mailer/1st_reminder.html.erb +1 -1
- data/app/views/user_mailer/1st_reminder.text.erb +1 -1
- data/app/views/user_mailer/2nd_reminder.html.erb +1 -1
- data/app/views/user_mailer/2nd_reminder.text.erb +1 -1
- data/app/views/user_mailer/3rd_reminder.html.erb +1 -1
- data/app/views/user_mailer/3rd_reminder.text.erb +1 -1
- data/app/views/user_mailer/no_submissions_reminder.html.erb +1 -1
- data/app/views/user_mailer/no_submissions_reminder.text.erb +1 -1
- data/config/routes.rb +2 -1
- data/lib/mumuki/laboratory/controllers.rb +1 -0
- data/lib/mumuki/laboratory/controllers/incognito_mode.rb +28 -0
- data/lib/mumuki/laboratory/controllers/results_rendering.rb +1 -2
- data/lib/mumuki/laboratory/locales/en.yml +14 -6
- data/lib/mumuki/laboratory/locales/es-CL.yml +292 -0
- data/lib/mumuki/laboratory/locales/es.yml +13 -5
- data/lib/mumuki/laboratory/locales/pt.yml +12 -6
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/controllers/confirmations_controller_spec.rb +1 -1
- data/spec/controllers/discussions_messages_controller_spec.rb +73 -0
- data/spec/controllers/exercise_solutions_controller_spec.rb +41 -6
- data/spec/dummy/db/schema.rb +13 -1
- data/spec/features/chapter_spec.rb +17 -0
- data/spec/features/discussion_flow_spec.rb +190 -0
- data/spec/features/exercise_flow_spec.rb +48 -3
- data/spec/features/home_public_flow_spec.rb +16 -0
- data/spec/features/menu_bar_spec.rb +88 -7
- data/spec/helpers/breadcrumbs_helper_spec.rb +1 -1
- data/spec/javascripts/bridge-spec.js +5 -0
- data/spec/javascripts/csrf-token-spec.js +7 -0
- data/spec/javascripts/editors-spec.js +54 -0
- data/spec/javascripts/elipsis-spec.js +25 -0
- data/spec/javascripts/exercise-spec.js +22 -0
- data/spec/javascripts/global-spec.js +6 -0
- data/spec/javascripts/results-renderers-spec.js +17 -0
- data/spec/javascripts/spec-helper.js +34 -0
- data/spec/javascripts/speech-bubble-renderer-spec.js +11 -0
- data/spec/javascripts/submissions-store-spec.js +44 -0
- data/spec/javascripts/sync-mode-spec.js +15 -0
- data/spec/javascripts/timeout-spec.js +5 -0
- data/spec/javascripts/timer-spec.js +5 -0
- data/spec/mailers/user_mailer_spec.rb +18 -3
- data/spec/teaspoon_env.rb +193 -0
- metadata +50 -11
- data/app/helpers/version_helper.rb +0 -5
- data/app/views/layouts/modals/_new_discussion.html.erb +0 -27
- data/vendor/assets/javascripts/hotjar.js +0 -8
@@ -0,0 +1,193 @@
|
|
1
|
+
unless defined?(Rails)
|
2
|
+
ENV["RAILS_ROOT"] = File.expand_path("../dummy", __FILE__)
|
3
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
4
|
+
end
|
5
|
+
|
6
|
+
# Enable this line for more verbose debugging
|
7
|
+
# Selenium::WebDriver.logger.level = :debug
|
8
|
+
|
9
|
+
Teaspoon.configure do |config|
|
10
|
+
# Determines where the Teaspoon routes will be mounted. Changing this to "/jasmine" would allow you to browse to
|
11
|
+
# `http://localhost:3000/jasmine` to run your tests.
|
12
|
+
config.mount_at = "/teaspoon"
|
13
|
+
|
14
|
+
# Specifies the root where Teaspoon will look for files. If you're testing an engine using a dummy application it can
|
15
|
+
# be useful to set this to your engines root (e.g. `Teaspoon::Engine.root`).
|
16
|
+
# Note: Defaults to `Rails.root` if nil.
|
17
|
+
config.root = Mumuki::Laboratory::Engine.root
|
18
|
+
|
19
|
+
# Paths that will be appended to the Rails assets paths
|
20
|
+
# Note: Relative to `config.root`.
|
21
|
+
config.asset_paths = ["spec/javascripts", "spec/javascripts/stylesheets"]
|
22
|
+
|
23
|
+
# Fixtures are rendered through a controller, which allows using HAML, RABL/JBuilder, etc. Files in these paths will
|
24
|
+
# be rendered as fixtures.
|
25
|
+
config.fixture_paths = ["spec/javascripts/fixtures"]
|
26
|
+
|
27
|
+
# SUITES
|
28
|
+
#
|
29
|
+
# You can modify the default suite configuration and create new suites here. Suites are isolated from one another.
|
30
|
+
#
|
31
|
+
# When defining a suite you can provide a name and a block. If the name is left blank, :default is assumed. You can
|
32
|
+
# omit various directives and the ones defined in the default suite will be used.
|
33
|
+
#
|
34
|
+
# To run a specific suite
|
35
|
+
# - in the browser: http://localhost/teaspoon/[suite_name]
|
36
|
+
# - with the rake task: rake teaspoon suite=[suite_name]
|
37
|
+
# - with the cli: teaspoon --suite=[suite_name]
|
38
|
+
config.suite do |suite|
|
39
|
+
# Specify the framework you would like to use. This allows you to select versions, and will do some basic setup for
|
40
|
+
# you -- which you can override with the directives below. This should be specified first, as it can override other
|
41
|
+
# directives.
|
42
|
+
# Note: If no version is specified, the latest is assumed.
|
43
|
+
#
|
44
|
+
# Versions: 1.3.1, 2.0.3, 2.1.3, 2.2.0, 2.2.1, 2.3.4
|
45
|
+
suite.use_framework :jasmine, "2.3.4"
|
46
|
+
|
47
|
+
# Specify a file matcher as a regular expression and all matching files will be loaded when the suite is run. These
|
48
|
+
# files need to be within an asset path. You can add asset paths using the `config.asset_paths`.
|
49
|
+
suite.matcher = "{spec/javascripts,app/assets}/**/*-spec.{js,js.coffee,coffee}"
|
50
|
+
|
51
|
+
# Load additional JS files, but requiring them in your spec helper is the preferred way to do this.
|
52
|
+
#suite.javascripts = []
|
53
|
+
|
54
|
+
# You can include your own stylesheets if you want to change how Teaspoon looks.
|
55
|
+
# Note: Spec related CSS can and should be loaded using fixtures.
|
56
|
+
#suite.stylesheets = ["teaspoon"]
|
57
|
+
|
58
|
+
# This suites spec helper, which can require additional support files. This file is loaded before any of your test
|
59
|
+
# files are loaded.
|
60
|
+
suite.helper = "spec-helper"
|
61
|
+
|
62
|
+
# Partial to be rendered in the head tag of the runner. You can use the provided ones or define your own by creating
|
63
|
+
# a `_boot.html.erb` in your fixtures path, and adjust the config to `"/boot"` for instance.
|
64
|
+
#
|
65
|
+
# Available: boot, boot_require_js
|
66
|
+
suite.boot_partial = "boot"
|
67
|
+
|
68
|
+
# Partial to be rendered in the body tag of the runner. You can define your own to create a custom body structure.
|
69
|
+
suite.body_partial = "body"
|
70
|
+
|
71
|
+
# Hooks allow you to use `Teaspoon.hook("fixtures")` before, after, or during your spec run. This will make a
|
72
|
+
# synchronous Ajax request to the server that will call all of the blocks you've defined for that hook name.
|
73
|
+
#suite.hook :fixtures, &proc{}
|
74
|
+
|
75
|
+
# Determine whether specs loaded into the test harness should be embedded as individual script tags or concatenated
|
76
|
+
# into a single file. Similar to Rails' asset `debug: true` and `config.assets.debug = true` options. By default,
|
77
|
+
# Teaspoon expands all assets to provide more valuable stack traces that reference individual source files.
|
78
|
+
#suite.expand_assets = true
|
79
|
+
|
80
|
+
# Non-.js file extensions Teaspoon should consider JavaScript files
|
81
|
+
#suite.js_extensions = [/(\.js)?.coffee/, /(\.js)?.es6/, ".es6.js"]
|
82
|
+
end
|
83
|
+
|
84
|
+
# Example suite. Since we're just filtering to files already within the root test/javascripts, these files will also
|
85
|
+
# be run in the default suite -- but can be focused into a more specific suite.
|
86
|
+
#config.suite :targeted do |suite|
|
87
|
+
# suite.matcher = "spec/javascripts/targeted/*_spec.{js,js.coffee,coffee}"
|
88
|
+
#end
|
89
|
+
|
90
|
+
# CONSOLE RUNNER SPECIFIC
|
91
|
+
#
|
92
|
+
# These configuration directives are applicable only when running via the rake task or command line interface. These
|
93
|
+
# directives can be overridden using the command line interface arguments or with ENV variables when using the rake
|
94
|
+
# task.
|
95
|
+
#
|
96
|
+
# Command Line Interface:
|
97
|
+
# teaspoon --driver=phantomjs --server-port=31337 --fail-fast=true --format=junit --suite=my_suite /spec/file_spec.js
|
98
|
+
#
|
99
|
+
# Rake:
|
100
|
+
# teaspoon DRIVER=phantomjs SERVER_PORT=31337 FAIL_FAST=true FORMATTERS=junit suite=my_suite
|
101
|
+
|
102
|
+
# Specify which headless driver to use. Supports PhantomJS, Selenium Webdriver and BrowserStack Webdriver.
|
103
|
+
#
|
104
|
+
# Available: :phantomjs, :selenium, :browserstack, :capybara_webkit
|
105
|
+
# PhantomJS: https://github.com/modeset/teaspoon/wiki/Using-PhantomJS
|
106
|
+
# Selenium Webdriver: https://github.com/modeset/teaspoon/wiki/Using-Selenium-WebDriver
|
107
|
+
# BrowserStack Webdriver: https://github.com/modeset/teaspoon/wiki/Using-BrowserStack-WebDriver
|
108
|
+
# Capybara Webkit: https://github.com/modeset/teaspoon/wiki/Using-Capybara-Webkit
|
109
|
+
# config.driver = :capybara_webkit
|
110
|
+
config.driver = :selenium
|
111
|
+
config.driver_options = {
|
112
|
+
client_driver: :firefox,
|
113
|
+
selenium_options: {
|
114
|
+
options: Selenium::WebDriver::Firefox::Options.new(log_level: :warn)
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
# Specify the timeout for the driver. Specs are expected to complete within this time frame or the run will be
|
119
|
+
# considered a failure. This is to avoid issues that can arise where tests stall.
|
120
|
+
#config.driver_timeout = 180
|
121
|
+
|
122
|
+
# Specify a server to use with Rack (e.g. thin, mongrel). If nil is provided Rack::Server is used.
|
123
|
+
#config.server = nil
|
124
|
+
|
125
|
+
# Specify a host to run on a specific host, otherwise Teaspoon will use 127.0.0.1.
|
126
|
+
#config.server_host = nil
|
127
|
+
|
128
|
+
# Specify a port to run on a specific port, otherwise Teaspoon will use a random available port.
|
129
|
+
#config.server_port = nil
|
130
|
+
|
131
|
+
# Timeout for starting the server in seconds. If your server is slow to start you may have to bump this, or you may
|
132
|
+
# want to lower this if you know it shouldn't take long to start.
|
133
|
+
#config.server_timeout = 20
|
134
|
+
|
135
|
+
# Force Teaspoon to fail immediately after a failing suite. Can be useful to make Teaspoon fail early if you have
|
136
|
+
# several suites, but in environments like CI this may not be desirable.
|
137
|
+
#config.fail_fast = true
|
138
|
+
|
139
|
+
# Specify the formatters to use when outputting the results.
|
140
|
+
# Note: Output files can be specified by using `"junit>/path/to/output.xml"`.
|
141
|
+
#
|
142
|
+
# Available: :dot, :clean, :documentation, :json, :junit, :pride, :rspec_html, :snowday, :swayze_or_oprah, :tap, :tap_y, :teamcity
|
143
|
+
config.formatters = [:documentation]
|
144
|
+
|
145
|
+
# Specify if you want color output from the formatters.
|
146
|
+
#config.color = true
|
147
|
+
|
148
|
+
# Teaspoon pipes all console[log/debug/error] to $stdout. This is useful to catch places where you've forgotten to
|
149
|
+
# remove them, but in verbose applications this may not be desirable.
|
150
|
+
#config.suppress_log = false
|
151
|
+
|
152
|
+
# COVERAGE REPORTS / THRESHOLD ASSERTIONS
|
153
|
+
#
|
154
|
+
# Coverage reports requires Istanbul (https://github.com/gotwarlost/istanbul) to add instrumentation to your code and
|
155
|
+
# display coverage statistics.
|
156
|
+
#
|
157
|
+
# Coverage configurations are similar to suites. You can define several, and use different ones under different
|
158
|
+
# conditions.
|
159
|
+
#
|
160
|
+
# To run with a specific coverage configuration
|
161
|
+
# - with the rake task: rake teaspoon USE_COVERAGE=[coverage_name]
|
162
|
+
# - with the cli: teaspoon --coverage=[coverage_name]
|
163
|
+
|
164
|
+
# Specify that you always want a coverage configuration to be used. Otherwise, specify that you want coverage
|
165
|
+
# on the CLI.
|
166
|
+
# Set this to "true" or the name of your coverage config.
|
167
|
+
#config.use_coverage = nil
|
168
|
+
|
169
|
+
# You can have multiple coverage configs by passing a name to config.coverage.
|
170
|
+
# e.g. config.coverage :ci do |coverage|
|
171
|
+
# The default coverage config name is :default.
|
172
|
+
config.coverage do |coverage|
|
173
|
+
# Which coverage reports Istanbul should generate. Correlates directly to what Istanbul supports.
|
174
|
+
#
|
175
|
+
# Available: text-summary, text, html, lcov, lcovonly, cobertura, teamcity
|
176
|
+
#coverage.reports = ["text-summary", "html"]
|
177
|
+
|
178
|
+
# The path that the coverage should be written to - when there's an artifact to write to disk.
|
179
|
+
# Note: Relative to `config.root`.
|
180
|
+
#coverage.output_path = "coverage"
|
181
|
+
|
182
|
+
# Assets to be ignored when generating coverage reports. Accepts an array of filenames or regular expressions. The
|
183
|
+
# default excludes assets from vendor, gems and support libraries.
|
184
|
+
#coverage.ignore = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}]
|
185
|
+
|
186
|
+
# Various thresholds requirements can be defined, and those thresholds will be checked at the end of a run. If any
|
187
|
+
# aren't met the run will fail with a message. Thresholds can be defined as a percentage (0-100), or nil.
|
188
|
+
#coverage.statements = nil
|
189
|
+
#coverage.functions = nil
|
190
|
+
#coverage.branches = nil
|
191
|
+
#coverage.lines = nil
|
192
|
+
end
|
193
|
+
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: 7.
|
4
|
+
version: 7.8.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: 2020-
|
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.
|
33
|
+
version: 7.8.1
|
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.
|
40
|
+
version: 7.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mumukit-bridge
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -344,7 +344,9 @@ files:
|
|
344
344
|
- app/assets/javascripts/mumuki_laboratory/application/csrf-token.js
|
345
345
|
- app/assets/javascripts/mumuki_laboratory/application/custom-editor.js
|
346
346
|
- app/assets/javascripts/mumuki_laboratory/application/discussions.js
|
347
|
+
- app/assets/javascripts/mumuki_laboratory/application/editors.js
|
347
348
|
- app/assets/javascripts/mumuki_laboratory/application/elipsis.js
|
349
|
+
- app/assets/javascripts/mumuki_laboratory/application/exercise.js
|
348
350
|
- app/assets/javascripts/mumuki_laboratory/application/free-form.js
|
349
351
|
- app/assets/javascripts/mumuki_laboratory/application/inputs.js
|
350
352
|
- app/assets/javascripts/mumuki_laboratory/application/interval.js
|
@@ -358,8 +360,11 @@ files:
|
|
358
360
|
- app/assets/javascripts/mumuki_laboratory/application/pin.js
|
359
361
|
- app/assets/javascripts/mumuki_laboratory/application/popover.js
|
360
362
|
- app/assets/javascripts/mumuki_laboratory/application/progress.js
|
363
|
+
- app/assets/javascripts/mumuki_laboratory/application/results-renderer.js
|
361
364
|
- app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js
|
362
365
|
- app/assets/javascripts/mumuki_laboratory/application/submission.js
|
366
|
+
- app/assets/javascripts/mumuki_laboratory/application/submissions-store.js
|
367
|
+
- app/assets/javascripts/mumuki_laboratory/application/sync-mode.js
|
363
368
|
- app/assets/javascripts/mumuki_laboratory/application/timer.js
|
364
369
|
- app/assets/javascripts/mumuki_laboratory/application/tooltip.js
|
365
370
|
- app/assets/javascripts/mumuki_laboratory/application/upload.js
|
@@ -393,6 +398,7 @@ files:
|
|
393
398
|
- app/assets/stylesheets/mumuki_laboratory/application/modules/_highlight.scss
|
394
399
|
- app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss
|
395
400
|
- app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss
|
401
|
+
- app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss
|
396
402
|
- app/assets/stylesheets/mumuki_laboratory/application/modules/_modal.scss
|
397
403
|
- app/assets/stylesheets/mumuki_laboratory/application/modules/_organization_chooser.scss
|
398
404
|
- app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss
|
@@ -422,6 +428,7 @@ files:
|
|
422
428
|
- app/controllers/concerns/users_controller_template.rb
|
423
429
|
- app/controllers/concerns/with_authorization.rb
|
424
430
|
- app/controllers/concerns/with_errors_filter.rb
|
431
|
+
- app/controllers/concerns/with_user_discussion_validation.rb
|
425
432
|
- app/controllers/concerns/with_user_params.rb
|
426
433
|
- app/controllers/discussions_controller.rb
|
427
434
|
- app/controllers/discussions_messages_controller.rb
|
@@ -458,9 +465,9 @@ files:
|
|
458
465
|
- app/helpers/editor_tabs_helper.rb
|
459
466
|
- app/helpers/email_helper.rb
|
460
467
|
- app/helpers/exercise_input_helper.rb
|
468
|
+
- app/helpers/globals_helper.rb
|
461
469
|
- app/helpers/icons_helper.rb
|
462
470
|
- app/helpers/links_helper.rb
|
463
|
-
- app/helpers/locale_helper.rb
|
464
471
|
- app/helpers/menu_bar_helper.rb
|
465
472
|
- app/helpers/messages_helper.rb
|
466
473
|
- app/helpers/multiple_file_editor_helper.rb
|
@@ -472,7 +479,6 @@ files:
|
|
472
479
|
- app/helpers/progress_bar_helper.rb
|
473
480
|
- app/helpers/progress_helper.rb
|
474
481
|
- app/helpers/runner_assets_helper.rb
|
475
|
-
- app/helpers/version_helper.rb
|
476
482
|
- app/mailers/application_mailer.rb
|
477
483
|
- app/mailers/user_mailer.rb
|
478
484
|
- app/views/appendixes/show.html.erb
|
@@ -485,6 +491,7 @@ files:
|
|
485
491
|
- app/views/discussions/_message_container.html.erb
|
486
492
|
- app/views/discussions/_new_message.html.erb
|
487
493
|
- app/views/discussions/index.html.erb
|
494
|
+
- app/views/discussions/new.html.erb
|
488
495
|
- app/views/discussions/show.html.erb
|
489
496
|
- app/views/errors/forbidden.html.erb
|
490
497
|
- app/views/errors/gone.html.erb
|
@@ -547,7 +554,8 @@ files:
|
|
547
554
|
- app/views/layouts/exercise_inputs/forms/_problem_form.html.erb
|
548
555
|
- app/views/layouts/exercise_inputs/forms/_reading_form.html.erb
|
549
556
|
- app/views/layouts/exercise_inputs/layouts/_input_bottom.html.erb
|
550
|
-
- app/views/layouts/exercise_inputs/layouts/
|
557
|
+
- app/views/layouts/exercise_inputs/layouts/_input_kindergarten.html.erb
|
558
|
+
- app/views/layouts/exercise_inputs/layouts/_input_primary.html.erb
|
551
559
|
- app/views/layouts/exercise_inputs/layouts/_input_right.html.erb
|
552
560
|
- app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb
|
553
561
|
- app/views/layouts/exercise_inputs/read_only_editors/_custom.html.erb
|
@@ -562,7 +570,6 @@ files:
|
|
562
570
|
- app/views/layouts/modals/_kids_context.html.erb
|
563
571
|
- app/views/layouts/modals/_kids_results.html.erb
|
564
572
|
- app/views/layouts/modals/_kids_results_aborted.html.erb
|
565
|
-
- app/views/layouts/modals/_new_discussion.html.erb
|
566
573
|
- app/views/layouts/modals/_new_message.html.erb
|
567
574
|
- app/views/lessons/show.html.erb
|
568
575
|
- app/views/messages/errors.html.erb
|
@@ -591,6 +598,7 @@ files:
|
|
591
598
|
- lib/mumuki/laboratory/controllers/dynamic_errors.rb
|
592
599
|
- lib/mumuki/laboratory/controllers/embedded_mode.rb
|
593
600
|
- lib/mumuki/laboratory/controllers/exercise_seed.rb
|
601
|
+
- lib/mumuki/laboratory/controllers/incognito_mode.rb
|
594
602
|
- lib/mumuki/laboratory/controllers/nested_in_exercise.rb
|
595
603
|
- lib/mumuki/laboratory/controllers/notifications.rb
|
596
604
|
- lib/mumuki/laboratory/controllers/results_rendering.rb
|
@@ -600,6 +608,7 @@ files:
|
|
600
608
|
- lib/mumuki/laboratory/extensions/request.rb
|
601
609
|
- lib/mumuki/laboratory/locales/datetime.es.yml
|
602
610
|
- lib/mumuki/laboratory/locales/en.yml
|
611
|
+
- lib/mumuki/laboratory/locales/es-CL.yml
|
603
612
|
- lib/mumuki/laboratory/locales/es.yml
|
604
613
|
- lib/mumuki/laboratory/locales/pt.yml
|
605
614
|
- lib/mumuki/laboratory/locales/views.es.yml
|
@@ -629,6 +638,7 @@ files:
|
|
629
638
|
- spec/controllers/confirmations_controller_spec.rb
|
630
639
|
- spec/controllers/courses_api_controller_spec.rb
|
631
640
|
- spec/controllers/discussions_controller_spec.rb
|
641
|
+
- spec/controllers/discussions_messages_controller_spec.rb
|
632
642
|
- spec/controllers/exercise_solutions_controller_spec.rb
|
633
643
|
- spec/controllers/guide_progress_controller_spec.rb
|
634
644
|
- spec/controllers/invitations_controller_spec.rb
|
@@ -681,6 +691,7 @@ files:
|
|
681
691
|
- spec/features/complements_flow_spec.rb
|
682
692
|
- spec/features/disable_user_flow_spec.rb
|
683
693
|
- spec/features/disabled_organization_flow_spec.rb
|
694
|
+
- spec/features/discussion_flow_spec.rb
|
684
695
|
- spec/features/dynamic_exam_spec.rb
|
685
696
|
- spec/features/exams_flow_spec.rb
|
686
697
|
- spec/features/exercise_flow_spec.rb
|
@@ -710,10 +721,24 @@ files:
|
|
710
721
|
- spec/helpers/test_results_rendering_spec.rb
|
711
722
|
- spec/helpers/with_choices_spec.rb
|
712
723
|
- spec/helpers/with_navigation_spec.rb
|
724
|
+
- spec/javascripts/bridge-spec.js
|
725
|
+
- spec/javascripts/csrf-token-spec.js
|
726
|
+
- spec/javascripts/editors-spec.js
|
727
|
+
- spec/javascripts/elipsis-spec.js
|
728
|
+
- spec/javascripts/exercise-spec.js
|
729
|
+
- spec/javascripts/global-spec.js
|
730
|
+
- spec/javascripts/results-renderers-spec.js
|
731
|
+
- spec/javascripts/spec-helper.js
|
732
|
+
- spec/javascripts/speech-bubble-renderer-spec.js
|
733
|
+
- spec/javascripts/submissions-store-spec.js
|
734
|
+
- spec/javascripts/sync-mode-spec.js
|
735
|
+
- spec/javascripts/timeout-spec.js
|
736
|
+
- spec/javascripts/timer-spec.js
|
713
737
|
- spec/login_helper.rb
|
714
738
|
- spec/mailers/previews/user_mailer_preview.rb
|
715
739
|
- spec/mailers/user_mailer_spec.rb
|
716
740
|
- spec/spec_helper.rb
|
741
|
+
- spec/teaspoon_env.rb
|
717
742
|
- vendor/assets/javascripts/analytics.js
|
718
743
|
- vendor/assets/javascripts/codemirror-autorefresh.js
|
719
744
|
- vendor/assets/javascripts/codemirror-modes/assembly_x86.js
|
@@ -750,7 +775,6 @@ files:
|
|
750
775
|
- vendor/assets/javascripts/codemirror-modes/xml.min.js
|
751
776
|
- vendor/assets/javascripts/codemirror-simple-mode.js
|
752
777
|
- vendor/assets/javascripts/codemirror.min.js
|
753
|
-
- vendor/assets/javascripts/hotjar.js
|
754
778
|
- vendor/assets/javascripts/jquery-console.js
|
755
779
|
- vendor/assets/javascripts/webcomponents-lite.js
|
756
780
|
- vendor/assets/stylesheets/codemirror/codemirror.min.css
|
@@ -774,8 +798,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
774
798
|
- !ruby/object:Gem::Version
|
775
799
|
version: '0'
|
776
800
|
requirements: []
|
777
|
-
|
778
|
-
rubygems_version: 2.7.7
|
801
|
+
rubygems_version: 3.0.8
|
779
802
|
signing_key:
|
780
803
|
specification_version: 4
|
781
804
|
summary: Code assement web application for the Mumuki Platform.
|
@@ -783,6 +806,7 @@ test_files:
|
|
783
806
|
- spec/mailers/previews/user_mailer_preview.rb
|
784
807
|
- spec/mailers/user_mailer_spec.rb
|
785
808
|
- spec/spec_helper.rb
|
809
|
+
- spec/teaspoon_env.rb
|
786
810
|
- spec/features/guide_reset_spec.rb
|
787
811
|
- spec/features/complements_flow_spec.rb
|
788
812
|
- spec/features/not_found_public_flow_spec.rb
|
@@ -797,6 +821,7 @@ test_files:
|
|
797
821
|
- spec/features/home_private_flow_spec.rb
|
798
822
|
- spec/features/lessons_flow_spec.rb
|
799
823
|
- spec/features/dynamic_exam_spec.rb
|
824
|
+
- spec/features/discussion_flow_spec.rb
|
800
825
|
- spec/features/not_found_private_flow_spec.rb
|
801
826
|
- spec/features/progressive_tips_spec.rb
|
802
827
|
- spec/features/exams_flow_spec.rb
|
@@ -859,6 +884,19 @@ test_files:
|
|
859
884
|
- spec/api_helper.rb
|
860
885
|
- spec/capybara_helper.rb
|
861
886
|
- spec/evaluation_helper.rb
|
887
|
+
- spec/javascripts/bridge-spec.js
|
888
|
+
- spec/javascripts/exercise-spec.js
|
889
|
+
- spec/javascripts/global-spec.js
|
890
|
+
- spec/javascripts/speech-bubble-renderer-spec.js
|
891
|
+
- spec/javascripts/timeout-spec.js
|
892
|
+
- spec/javascripts/results-renderers-spec.js
|
893
|
+
- spec/javascripts/csrf-token-spec.js
|
894
|
+
- spec/javascripts/elipsis-spec.js
|
895
|
+
- spec/javascripts/timer-spec.js
|
896
|
+
- spec/javascripts/editors-spec.js
|
897
|
+
- spec/javascripts/spec-helper.js
|
898
|
+
- spec/javascripts/submissions-store-spec.js
|
899
|
+
- spec/javascripts/sync-mode-spec.js
|
862
900
|
- spec/controllers/discussions_controller_spec.rb
|
863
901
|
- spec/controllers/chapters_controller_spec.rb
|
864
902
|
- spec/controllers/students_api_controller_spec.rb
|
@@ -868,6 +906,7 @@ test_files:
|
|
868
906
|
- spec/controllers/invitations_controller_spec.rb
|
869
907
|
- spec/controllers/users_api_controller_spec.rb
|
870
908
|
- spec/controllers/users_controller_spec.rb
|
909
|
+
- spec/controllers/discussions_messages_controller_spec.rb
|
871
910
|
- spec/controllers/guide_progress_controller_spec.rb
|
872
911
|
- spec/controllers/organizations_api_controller_spec.rb
|
873
912
|
- 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">×</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>
|