mumuki-domain 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd3eb525947de7658551f36161b8f937d6d9e192b02c9f9a60f72e5170a612f4
4
- data.tar.gz: 1c2a08701b38e3aa25ce125739359500a727582c3d42ddf2f4ad7b3df537df36
3
+ metadata.gz: 65cc8458d5a6eb46f944a0c224903778449d0cfa900fad1856278d16ff3f7d79
4
+ data.tar.gz: bdc79b817c1735dd7e4b32f6bbcabcef7176721c7a56ef90d2b296118ccb1097
5
5
  SHA512:
6
- metadata.gz: 9cae5a11974987b65a5231351c7e2e51c6c05d9d11071f98a3ecf34fb5aadb909093d3fb2d1340e7d8ba78c778baf2504e74985d741b49d7c985652d848def3e
7
- data.tar.gz: 6e39bad09b6c1c4fe9afc57ddf8d77407253d9fe6e5c38fde08223d02c8d10710357b011b8009d553fadf1d106b4798247e9f09d5310dbf8f85e98e5c237dfb0
6
+ metadata.gz: 8931f3e98f68d3905de2a1f30d5e7e9e5b75789b781d88cc9958f7505283202cc4152086e940b2190e221f2383ab90dc52cf6067bea18e99e9707b812c7d743a
7
+ data.tar.gz: 3a8e83f95ead93a1661c35fe9eed79316b3911c10cbaab98b2cc9f4bdc4652b89454a27ac1a3b675bd3add5d556425c374265cc27073413325adbc92d467ffb9
data/app/models/guide.rb CHANGED
@@ -14,7 +14,7 @@ class Guide < Content
14
14
 
15
15
  enum type: [:learning, :practice]
16
16
 
17
- def clear_progress!(user, organization)
17
+ def clear_progress!(user, organization=Organization.current)
18
18
  transaction do
19
19
  exercises.each do |exercise|
20
20
  exercise.find_assignment_for(user, organization)&.destroy!
@@ -24,6 +24,7 @@ class Language < ApplicationRecord
24
24
  :layout_js_urls,
25
25
  :layout_shows_loading_content,
26
26
  :multifile,
27
+ :settings,
27
28
  :name,
28
29
  :output_content_type,
29
30
  :prompt,
@@ -0,0 +1,5 @@
1
+ class AddSettingsToLanguages < ActiveRecord::Migration[5.1]
2
+ def change
3
+ add_column :languages, :settings, :boolean, default: false
4
+ end
5
+ end
@@ -46,6 +46,7 @@ module Mumukit::Sync::Store
46
46
  queriable: @info.dig('features', 'query').present?,
47
47
  stateful_console: @info.dig('features', 'stateful').present?,
48
48
  multifile: @info.dig('features', 'multifile').present?,
49
+ settings: @info.dig('features', 'settings').present?,
49
50
  test_extension: @info.dig('test_framework', 'test_extension'),
50
51
  test_template: @info.dig('test_framework', 'template'),
51
52
  layout_js_urls: get_assets_for(:layout, 'js'),
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Domain
3
- VERSION = '7.0.0'
3
+ VERSION = '7.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-24 00:00:00.000000000 Z
11
+ date: 2019-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '1.0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: mumukit-login
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '7.0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '7.0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: pg
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -540,6 +554,7 @@ files:
540
554
  - db/migrate/20190530173142_add_organization_to_assignment.rb
541
555
  - db/migrate/20190702003600_add_loading_flags_to_language.rb
542
556
  - db/migrate/20190702182407_add_new_profile_fields.rb
557
+ - db/migrate/20190724190355_add_settings_to_languages.rb
543
558
  - lib/mumuki/domain.rb
544
559
  - lib/mumuki/domain/engine.rb
545
560
  - lib/mumuki/domain/evaluation.rb