domoscio_rails 0.3.6 → 0.3.7
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/lib/domoscio_rails.rb +2 -1
- data/lib/domoscio_rails/data/content.rb +2 -1
- data/lib/domoscio_rails/data/event.rb +0 -1
- data/lib/domoscio_rails/data/instance.rb +2 -1
- data/lib/domoscio_rails/data/learning_session.rb +0 -1
- data/lib/domoscio_rails/data/recommendation.rb +7 -0
- data/lib/domoscio_rails/data/student.rb +2 -1
- data/lib/domoscio_rails/errors.rb +1 -1
- data/lib/domoscio_rails/knowledge/knowledge_edge.rb +0 -1
- data/lib/domoscio_rails/knowledge/knowledge_graph.rb +0 -1
- data/lib/domoscio_rails/knowledge/knowledge_node.rb +0 -1
- data/lib/domoscio_rails/knowledge/knowledge_node_content.rb +2 -1
- data/lib/domoscio_rails/knowledge/knowledge_node_student.rb +0 -1
- data/lib/domoscio_rails/objective/objective.rb +2 -1
- data/lib/domoscio_rails/objective/objective_knowledge_node.rb +5 -4
- data/lib/domoscio_rails/objective/objective_knowledge_node_student.rb +7 -5
- data/lib/domoscio_rails/objective/objective_student.rb +2 -1
- data/lib/domoscio_rails/tag/tag.rb +2 -1
- data/lib/domoscio_rails/tag/tag_edge.rb +2 -1
- data/lib/domoscio_rails/tag/tag_set.rb +2 -1
- data/lib/domoscio_rails/tag/tagging.rb +2 -1
- data/lib/domoscio_rails/utils/gameplay_util.rb +2 -1
- data/lib/domoscio_rails/utils/recommendation_util.rb +6 -5
- data/lib/domoscio_rails/utils/review_util.rb +2 -1
- data/lib/domoscio_rails/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: 5a6ede945677291ef1b7b413edacef90ff3a034ffb948d4b5a48e2dfe6a821cd
|
4
|
+
data.tar.gz: 4cda4d1cd0c511238ca8eb12611e0457f99bcca2ea9f7c2d7b4fab2f266b2ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c4e6fabcc01564dcec6f42d71d63cc45be20eb51d88f23b912ddb1f6bf4043e60b4e331489d9ca482cea7aa7db2a1b9a8b66c733b209cf383197322a876d1f9
|
7
|
+
data.tar.gz: 7a4e192e653f1014d435c1cae554c8a2d5412c30c8bb36ca25b45d95e2819da5d3037771ad068cde95ca292acfb5c539119c1f45783c39f0e1484cf9cf46194a
|
data/lib/domoscio_rails.rb
CHANGED
@@ -13,6 +13,7 @@ require 'domoscio_rails/resource'
|
|
13
13
|
require 'domoscio_rails/data/content.rb'
|
14
14
|
require 'domoscio_rails/data/event.rb'
|
15
15
|
require 'domoscio_rails/data/instance.rb'
|
16
|
+
require 'domoscio_rails/data/recommendation.rb'
|
16
17
|
require 'domoscio_rails/data/learning_session.rb'
|
17
18
|
require 'domoscio_rails/data/student.rb'
|
18
19
|
require 'domoscio_rails/knowledge/knowledge_edge.rb'
|
@@ -130,7 +131,7 @@ module DomoscioRails
|
|
130
131
|
if response.blank?
|
131
132
|
raise ResponseError.new(uri, 500, {error: {status: 500, message: 'AdaptiveEngine not available'}}, {}, params)
|
132
133
|
else
|
133
|
-
body = DomoscioRails::JSON.load((response.body.nil? ? '' : response.body), :symbolize_keys => true)
|
134
|
+
body = {error: {status: response.code, message: DomoscioRails::JSON.load((response.body.nil? ? '' : response.body), :symbolize_keys => true)}}
|
134
135
|
raise ResponseError.new(uri, response.code.to_i, body, response.body, params)
|
135
136
|
end
|
136
137
|
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A Content.
|
3
2
|
class Content < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
6
|
include DomoscioRails::HTTPCalls::Update
|
7
7
|
include DomoscioRails::HTTPCalls::Destroy
|
8
8
|
include DomoscioRails::HTTPCalls::Util
|
9
|
+
|
9
10
|
end
|
10
11
|
end
|
@@ -10,7 +10,7 @@ module DomoscioRails
|
|
10
10
|
@request_url, @code, @details, @body, @request_params = request_url, code, details, body, request_params
|
11
11
|
super(message) if message
|
12
12
|
end
|
13
|
-
def message; @details.is_a?(Hash) ? @details.dig(:error, :message) : @details; end
|
13
|
+
def message; (@details.is_a?(Hash) && @details[:error].is_a?(Hash)) ? @details.dig(:error, :message) : @details; end
|
14
14
|
end
|
15
15
|
|
16
16
|
# ProcessingError from DomoscioRails
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A KnowledgeNodeContent.
|
3
2
|
class KnowledgeNodeContent < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
6
|
include DomoscioRails::HTTPCalls::Update
|
7
7
|
include DomoscioRails::HTTPCalls::Destroy
|
8
|
+
|
8
9
|
end
|
9
10
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
class ObjectiveKnowledgeNodeStudent < Resource
|
3
|
+
|
4
|
+
include DomoscioRails::HTTPCalls::Fetch
|
5
|
+
include DomoscioRails::HTTPCalls::Update
|
6
|
+
|
7
|
+
end
|
8
|
+
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# An objective student.
|
3
2
|
class ObjectiveStudent < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
6
|
include DomoscioRails::HTTPCalls::Update
|
7
7
|
include DomoscioRails::HTTPCalls::Destroy
|
8
8
|
include DomoscioRails::HTTPCalls::Util
|
9
|
+
|
9
10
|
end
|
10
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: domoscio_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoit Praly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- lib/domoscio_rails/data/event.rb
|
42
42
|
- lib/domoscio_rails/data/instance.rb
|
43
43
|
- lib/domoscio_rails/data/learning_session.rb
|
44
|
+
- lib/domoscio_rails/data/recommendation.rb
|
44
45
|
- lib/domoscio_rails/data/student.rb
|
45
46
|
- lib/domoscio_rails/errors.rb
|
46
47
|
- lib/domoscio_rails/http_calls.rb
|