mumuki-domain 6.6.2 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/models/concerns/with_discussion_creation/subscription.rb +2 -2
- data/app/models/discussion.rb +1 -0
- data/app/models/language.rb +1 -1
- data/db/migrate/20190506180102_add_multifile_to_languages.rb +5 -0
- data/lib/mumuki/domain/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28c43b8e126a27ea8992e7947c0fb24cb3a5afb5a5fa48a1ea93e43d06978ff7
|
|
4
|
+
data.tar.gz: f119ada3c07e1fb57806e4734ef45387b56f151042f3d011250fb7c1d6e4578a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59f09fd69a686d1947e2edd3e9c68cc304453d36aa10e9416d4b4c5dfa99141fa71534a88c10eec8a34fd500ad154ef68d048723f68ccd1979f9ca8e3478e016
|
|
7
|
+
data.tar.gz: 2ecb4c190fa5d6aaef4204abdac571e8e56497f5a50646bed2624dae54263ce95620673967db065a2a268658e74a4350441efebd792bc4d81260e9264229cd91
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@ module WithDiscussionCreation::Subscription
|
|
|
3
3
|
|
|
4
4
|
included do
|
|
5
5
|
has_many :subscriptions
|
|
6
|
-
has_many :watched_discussions, through: :subscriptions, source: :discussion
|
|
6
|
+
has_many :watched_discussions, -> { order(created_at: :desc) }, through: :subscriptions, source: :discussion
|
|
7
7
|
organic_on :watched_discussions
|
|
8
8
|
end
|
|
9
9
|
|
|
@@ -16,7 +16,7 @@ module WithDiscussionCreation::Subscription
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def subscribe_to!(discussion)
|
|
19
|
-
watched_discussions << discussion
|
|
19
|
+
watched_discussions << discussion unless subscribed_to? discussion
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def unsubscribe_to!(discussion)
|
data/app/models/discussion.rb
CHANGED
data/app/models/language.rb
CHANGED
|
@@ -67,7 +67,7 @@ class Language < ApplicationRecord
|
|
|
67
67
|
def to_resource_h
|
|
68
68
|
as_json(only: %i(comment_type devicon editor_css_urls editor_html_urls editor_js_urls
|
|
69
69
|
extension feedback highlight_mode layout_css_urls layout_html_urls
|
|
70
|
-
layout_js_urls name output_content_type prompt queriable runner_url
|
|
70
|
+
layout_js_urls multifile name output_content_type prompt queriable runner_url
|
|
71
71
|
stateful_console test_extension test_template triable visible_success_output)).symbolize_keys
|
|
72
72
|
end
|
|
73
73
|
|
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: 6.
|
|
4
|
+
version: 6.7.0
|
|
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-05-
|
|
11
|
+
date: 2019-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -537,6 +537,7 @@ files:
|
|
|
537
537
|
- db/migrate/20190312152901_add_content_fk.rb
|
|
538
538
|
- db/migrate/20190326152631_add_settings_to_content.rb
|
|
539
539
|
- db/migrate/20190404181724_add_organization_to_discussion.rb
|
|
540
|
+
- db/migrate/20190506180102_add_multifile_to_languages.rb
|
|
540
541
|
- lib/mumuki/domain.rb
|
|
541
542
|
- lib/mumuki/domain/engine.rb
|
|
542
543
|
- lib/mumuki/domain/evaluation.rb
|