domoscio_rails 0.3.1 → 0.3.6a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/domoscio_rails.rb +122 -109
- data/lib/domoscio_rails/authorization_token.rb +4 -11
- data/lib/domoscio_rails/{content → data}/content.rb +1 -0
- data/lib/domoscio_rails/{admin → data}/instance.rb +0 -0
- data/lib/domoscio_rails/{student → data}/student.rb +0 -0
- data/lib/domoscio_rails/errors.rb +8 -8
- data/lib/domoscio_rails/http_calls.rb +2 -12
- data/lib/domoscio_rails/{content → knowledge}/knowledge_node_content.rb +0 -0
- data/lib/domoscio_rails/{data → knowledge}/knowledge_node_student.rb +0 -0
- data/lib/domoscio_rails/{adaptative/predictive → objective}/objective.rb +0 -0
- data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_knowledge_node.rb +0 -0
- data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_knowledge_node_student.rb +0 -0
- data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_student.rb +0 -0
- data/lib/domoscio_rails/{metadata → tag}/tag.rb +0 -0
- data/lib/domoscio_rails/{metadata → tag}/tag_edge.rb +0 -0
- data/lib/domoscio_rails/{metadata → tag}/tag_set.rb +0 -0
- data/lib/domoscio_rails/{metadata → tag}/tagging.rb +0 -0
- data/lib/domoscio_rails/version.rb +1 -1
- metadata +18 -28
- data/lib/domoscio_rails/adaptative/deterministic/path_rule.rb +0 -10
- data/lib/domoscio_rails/adaptative/deterministic/rule_condition.rb +0 -9
- data/lib/domoscio_rails/adaptative/deterministic/rule_input.rb +0 -9
- data/lib/domoscio_rails/adaptative/deterministic/rule_output.rb +0 -9
- data/lib/domoscio_rails/adaptative/recommendation.rb +0 -7
- data/lib/domoscio_rails/data/result.rb +0 -10
- data/lib/domoscio_rails/metadata/delta_object.rb +0 -6
- data/lib/domoscio_rails/path/learning_path.rb +0 -6
- data/lib/domoscio_rails/student/student_cluster.rb +0 -6
- data/lib/domoscio_rails/utils/alerts_util.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bbf2ea22b36b20eadb110276e6a4ade7486229737fd774a7bd2661cd11d369d
|
4
|
+
data.tar.gz: 20499ce3dfc249579446b59a04baec31bf6a8ce7594098a419be5f93979265a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78bdd7a85f07abec406fc8d5715b461cd17a6772e14c0ad357e5dcf44b66f76195d0ba18b007e535d6a0ffc77c44a5b9e3276f3d66fd291ee295c68342caef7e
|
7
|
+
data.tar.gz: fe4cf096c7a3378451f6c5cb5f037ad4dacc613f18f0acb862f1d9fdeda26c0ff0fce42f3b12583df22ee5f881ca5ce49ef8737f9bd3e3c1be0c1752521de88f
|
data/lib/domoscio_rails.rb
CHANGED
@@ -10,71 +10,39 @@ require 'domoscio_rails/authorization_token'
|
|
10
10
|
# resources
|
11
11
|
require 'domoscio_rails/http_calls'
|
12
12
|
require 'domoscio_rails/resource'
|
13
|
-
require 'domoscio_rails/
|
14
|
-
require 'domoscio_rails/
|
15
|
-
require 'domoscio_rails/
|
16
|
-
require 'domoscio_rails/
|
17
|
-
require 'domoscio_rails/
|
18
|
-
require 'domoscio_rails/
|
19
|
-
require 'domoscio_rails/
|
20
|
-
require 'domoscio_rails/
|
21
|
-
require 'domoscio_rails/
|
22
|
-
require 'domoscio_rails/
|
23
|
-
require 'domoscio_rails/
|
24
|
-
require 'domoscio_rails/
|
25
|
-
require 'domoscio_rails/
|
26
|
-
require 'domoscio_rails/
|
27
|
-
require 'domoscio_rails/
|
28
|
-
require 'domoscio_rails/
|
29
|
-
require 'domoscio_rails/
|
30
|
-
require 'domoscio_rails/
|
31
|
-
require 'domoscio_rails/
|
32
|
-
require 'domoscio_rails/
|
33
|
-
require 'domoscio_rails/
|
34
|
-
|
35
|
-
require 'domoscio_rails/data/event'
|
36
|
-
require 'domoscio_rails/data/learning_session'
|
37
|
-
require 'domoscio_rails/utils/review_util'
|
38
|
-
require 'domoscio_rails/utils/gameplay_util'
|
39
|
-
require 'domoscio_rails/utils/alerts_util'
|
40
|
-
require 'domoscio_rails/utils/recommendation_util'
|
41
|
-
require 'domoscio_rails/metadata/delta_object'
|
13
|
+
require 'domoscio_rails/data/content.rb'
|
14
|
+
require 'domoscio_rails/data/event.rb'
|
15
|
+
require 'domoscio_rails/data/instance.rb'
|
16
|
+
require 'domoscio_rails/data/learning_session.rb'
|
17
|
+
require 'domoscio_rails/data/student.rb'
|
18
|
+
require 'domoscio_rails/knowledge/knowledge_edge.rb'
|
19
|
+
require 'domoscio_rails/knowledge/knowledge_graph.rb'
|
20
|
+
require 'domoscio_rails/knowledge/knowledge_node_content.rb'
|
21
|
+
require 'domoscio_rails/knowledge/knowledge_node_student.rb'
|
22
|
+
require 'domoscio_rails/knowledge/knowledge_node.rb'
|
23
|
+
require 'domoscio_rails/objective/objective_knowledge_node_student.rb'
|
24
|
+
require 'domoscio_rails/objective/objective_knowledge_node.rb'
|
25
|
+
require 'domoscio_rails/objective/objective_student.rb'
|
26
|
+
require 'domoscio_rails/objective/objective.rb'
|
27
|
+
require 'domoscio_rails/tag/tag_edge.rb'
|
28
|
+
require 'domoscio_rails/tag/tag_set.rb'
|
29
|
+
require 'domoscio_rails/tag/tag.rb'
|
30
|
+
require 'domoscio_rails/tag/tagging.rb'
|
31
|
+
require 'domoscio_rails/utils/gameplay_util.rb'
|
32
|
+
require 'domoscio_rails/utils/recommendation_util.rb'
|
33
|
+
require 'domoscio_rails/utils/review_util.rb'
|
34
|
+
|
42
35
|
module DomoscioRails
|
43
36
|
class Configuration
|
44
|
-
attr_accessor :
|
45
|
-
|
46
|
-
def disabled
|
47
|
-
@disabled || false
|
48
|
-
end
|
49
|
-
|
50
|
-
def preproduction
|
51
|
-
@preproduction || false
|
52
|
-
end
|
53
|
-
|
54
|
-
def test
|
55
|
-
@test || false
|
56
|
-
end
|
57
|
-
|
58
|
-
def dev
|
59
|
-
@dev || false
|
60
|
-
end
|
37
|
+
attr_accessor :root_url, :client_id, :client_passphrase, :temp_dir, :version
|
61
38
|
|
39
|
+
# Refers to AdaptiveEngine Version
|
62
40
|
def version
|
63
|
-
@version
|
41
|
+
@version ||= 2
|
64
42
|
end
|
65
43
|
|
66
44
|
def root_url
|
67
|
-
|
68
|
-
if @test == true
|
69
|
-
@root_url || "https://staging.adaptive-engine.domoscio.com"
|
70
|
-
elsif @dev == true
|
71
|
-
@root_url || "https://preprod.adaptive-engine.domoscio.com"
|
72
|
-
else
|
73
|
-
@root_url || "https://adaptive-engine.domoscio.com"
|
74
|
-
end
|
75
|
-
else
|
76
|
-
@root_url || "http://localhost:3001"
|
77
|
-
end
|
45
|
+
@root_url ||= ""
|
78
46
|
end
|
79
47
|
end
|
80
48
|
|
@@ -95,46 +63,44 @@ module DomoscioRails
|
|
95
63
|
# - +method+: HTTP method; lowercase symbol, e.g. :get, :post etc.
|
96
64
|
# - +url+: the part after Configuration#root_url
|
97
65
|
# - +params+: hash; entity data for creation, update etc.; will dump it by JSON and assign to Net::HTTPRequest#body
|
98
|
-
# - +filters+: hash; pagination params etc.; will encode it by URI and assign to URI#query
|
99
|
-
# - +headers+: hash; request_headers by default
|
100
|
-
# - +before_request_proc+: optional proc; will call it passing the Net::HTTPRequest instance just before Net::HTTPRequest#request
|
101
66
|
#
|
102
|
-
#
|
67
|
+
# Performs HTTP requests to Adaptive Engine
|
68
|
+
# On token issues, will try once to get a new token then will output a DomoscioRails::ReponseError with details
|
103
69
|
#
|
104
|
-
|
105
|
-
|
70
|
+
# Raises DomoscioRails::ResponseError on Adaptive Error Status
|
71
|
+
# Raises DomoscioRails::ProcessingError on Internal Error
|
72
|
+
#
|
73
|
+
def self.request(method, url, params={})
|
74
|
+
|
75
|
+
store_tokens, headers = request_headers
|
76
|
+
params.merge!({'per_page': 2000}) unless params[:per_page]
|
106
77
|
uri = api_uri(url)
|
107
|
-
|
108
|
-
|
109
|
-
return
|
78
|
+
|
79
|
+
response = DomoscioRails.send_request(uri, method, params, headers)
|
80
|
+
return response if response.kind_of? DomoscioRails::ProcessingError
|
81
|
+
|
110
82
|
begin
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
end
|
115
|
-
data = DomoscioRails::JSON.load(res.body.nil? ? '' : res.body)
|
116
|
-
DomoscioRails::AuthorizationToken::Manager.storage.store({access_token: res['Accesstoken'], refresh_token: res['Refreshtoken']})
|
83
|
+
raise_http_failure(uri, response, params)
|
84
|
+
data = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body)
|
85
|
+
DomoscioRails::AuthorizationToken::Manager.storage.store({access_token: response['Accesstoken'], refresh_token: response['Refreshtoken']}) if store_tokens
|
117
86
|
rescue MultiJson::LoadError => exception
|
118
|
-
data = ProcessingError.new(uri, 500, exception,
|
87
|
+
data = ProcessingError.new(uri, 500, exception, response.body, params)
|
119
88
|
rescue ResponseError => exception
|
120
89
|
data = exception
|
121
90
|
end
|
122
91
|
|
123
|
-
if
|
124
|
-
pagetotal = (
|
92
|
+
if response['Total']
|
93
|
+
pagetotal = (response['Total'].to_i / response['Per-Page'].to_f).ceil
|
125
94
|
for j in 2..pagetotal
|
126
|
-
|
127
|
-
return
|
95
|
+
response = DomoscioRails.send_request(uri, method, params.merge({page: j}), headers)
|
96
|
+
return response if response.kind_of? DomoscioRails::ProcessingError
|
128
97
|
begin
|
129
|
-
|
130
|
-
|
131
|
-
raise ResponseError.new(uri, res.code.to_i, body, res.body)
|
132
|
-
end
|
133
|
-
body = DomoscioRails::JSON.load(res.body.nil? ? '' : res.body)
|
98
|
+
raise_http_failure(uri, response, params)
|
99
|
+
body = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body)
|
134
100
|
data += body
|
135
101
|
data.flatten!
|
136
102
|
rescue MultiJson::LoadError => exception
|
137
|
-
return ProcessingError.new(uri, 500, exception,
|
103
|
+
return ProcessingError.new(uri, 500, exception, response.body, params)
|
138
104
|
rescue ResponseError => exception
|
139
105
|
return exception
|
140
106
|
end
|
@@ -143,20 +109,51 @@ module DomoscioRails
|
|
143
109
|
data
|
144
110
|
end
|
145
111
|
|
146
|
-
|
112
|
+
private
|
113
|
+
|
114
|
+
# This function catches usual Http errors during calls
|
115
|
+
#
|
116
|
+
def self.send_request(uri, method, params, headers)
|
147
117
|
begin
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
before_request_proc.call(req) if before_request_proc
|
152
|
-
http.request req
|
153
|
-
end
|
118
|
+
response = perform_call(uri, method, params, headers)
|
119
|
+
response = retry_call_and_store_tokens(uri, method, params, headers) if ['401','403'].include? response.code
|
120
|
+
response
|
154
121
|
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNREFUSED, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => exception
|
155
|
-
ProcessingError.new(uri, 500, exception,
|
122
|
+
ProcessingError.new(uri, 500, exception, response)
|
156
123
|
end
|
157
124
|
end
|
158
125
|
|
159
|
-
|
126
|
+
# This helper will check the response status and build the correcponding DomoscioRails::ResponseError
|
127
|
+
#
|
128
|
+
def self.raise_http_failure(uri, response, params)
|
129
|
+
unless response.kind_of? Net::HTTPSuccess
|
130
|
+
if response.blank?
|
131
|
+
raise ResponseError.new(uri, 500, {error: {status: 500, message: 'AdaptiveEngine not available'}}, {}, params)
|
132
|
+
else
|
133
|
+
body = {error: {status: response.code, message: DomoscioRails::JSON.load((response.body.nil? ? '' : response.body), :symbolize_keys => true)}}
|
134
|
+
raise ResponseError.new(uri, response.code.to_i, body, response.body, params)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# Actual HTTP call is performed here
|
140
|
+
#
|
141
|
+
def self.perform_call(uri, method, params, headers)
|
142
|
+
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
|
143
|
+
req = Net::HTTP::const_get(method.capitalize).new(uri.request_uri, headers)
|
144
|
+
req.body = DomoscioRails::JSON.dump(params)
|
145
|
+
http.request req
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# This method is called when AdaptiveEngine returns tokens errors
|
150
|
+
# Action on those errors is to retry and request new tokens, those new token are then stored
|
151
|
+
def self.retry_call_and_store_tokens(uri, method, params, headers)
|
152
|
+
headers = request_new_tokens
|
153
|
+
response = perform_call(uri, method, params, headers)
|
154
|
+
DomoscioRails::AuthorizationToken::Manager.storage.store({access_token: response['Accesstoken'], refresh_token: response['Refreshtoken']})
|
155
|
+
response
|
156
|
+
end
|
160
157
|
|
161
158
|
def self.user_agent
|
162
159
|
@uname ||= get_uname
|
@@ -175,23 +172,39 @@ module DomoscioRails
|
|
175
172
|
'uname lookup failed'
|
176
173
|
end
|
177
174
|
|
175
|
+
# Process the token loading and analyze
|
176
|
+
# will return the processed headers and a token store flag
|
177
|
+
#
|
178
178
|
def self.request_headers
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
else
|
189
|
-
headers = {
|
190
|
-
'user_agent' => "#{DomoscioRails.user_agent}",
|
191
|
-
'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}",
|
192
|
-
'Content-Type' => 'application/json'
|
193
|
-
}
|
179
|
+
begin
|
180
|
+
auth_token = DomoscioRails::AuthorizationToken::Manager.get_token
|
181
|
+
if auth_token && auth_token[:access_token] && auth_token[:refresh_token]
|
182
|
+
[false, send_current_tokens(auth_token)]
|
183
|
+
else
|
184
|
+
[true, request_new_tokens]
|
185
|
+
end
|
186
|
+
rescue SyntaxError, StandardError
|
187
|
+
[true, request_new_tokens]
|
194
188
|
end
|
195
|
-
|
189
|
+
end
|
190
|
+
|
191
|
+
# If stored token successfully loaded we build the header with them
|
192
|
+
#
|
193
|
+
def self.send_current_tokens(auth_token)
|
194
|
+
{
|
195
|
+
'user_agent' => "#{DomoscioRails.user_agent}",
|
196
|
+
'AccessToken' => "#{auth_token[:access_token]}",
|
197
|
+
'RefreshToken' => "#{auth_token[:refresh_token]}",
|
198
|
+
'Content-Type' => 'application/json'
|
199
|
+
}
|
200
|
+
end
|
201
|
+
|
202
|
+
# If we cant find tokens of they are corrupted / expired, then we set headers to request new ones
|
203
|
+
def self.request_new_tokens
|
204
|
+
{
|
205
|
+
'user_agent' => "#{DomoscioRails.user_agent}",
|
206
|
+
'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}",
|
207
|
+
'Content-Type' => 'application/json'
|
208
|
+
}
|
196
209
|
end
|
197
210
|
end
|
@@ -11,9 +11,7 @@ module DomoscioRails
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def get_token
|
14
|
-
|
15
|
-
token = DomoscioRails.configuration.client_passphrase if token.nil?
|
16
|
-
token
|
14
|
+
storage.get
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|
@@ -29,13 +27,9 @@ module DomoscioRails
|
|
29
27
|
|
30
28
|
class FileStorage
|
31
29
|
require 'yaml'
|
32
|
-
@temp_dir
|
33
30
|
|
34
|
-
def initialize
|
35
|
-
|
36
|
-
if !@temp_dir
|
37
|
-
raise "Path to temporary folder is not defined"
|
38
|
-
end
|
31
|
+
def initialize
|
32
|
+
raise "Path to temporary folder is not defined" unless DomoscioRails.configuration.temp_dir
|
39
33
|
end
|
40
34
|
|
41
35
|
def get
|
@@ -60,8 +54,7 @@ module DomoscioRails
|
|
60
54
|
end
|
61
55
|
|
62
56
|
def file_path
|
63
|
-
|
64
|
-
File.join(@temp_dir, "DomoscioRails.AuthorizationToken.FileStore.tmp")
|
57
|
+
File.join(DomoscioRails.configuration.temp_dir, "DomoscioRails.AuthorizationToken.FileStore.tmp")
|
65
58
|
end
|
66
59
|
end
|
67
60
|
end
|
File without changes
|
File without changes
|
@@ -5,19 +5,19 @@ module DomoscioRails
|
|
5
5
|
|
6
6
|
# Error Message from AdaptiveEngine
|
7
7
|
class ResponseError < Error
|
8
|
-
attr_reader :request_url, :code, :details, :body
|
9
|
-
def initialize(request_url, code, details, body)
|
10
|
-
@request_url, @code, @details, @body = request_url, code, details, body
|
8
|
+
attr_reader :request_url, :code, :details, :body, :request_params
|
9
|
+
def initialize(request_url, code, details = {}, body = nil, request_params = {})
|
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.dig(:error, :message)
|
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
|
17
17
|
class ProcessingError < Error
|
18
|
-
attr_reader :request_url, :code, :details, :body
|
19
|
-
def initialize(request_url, code, details, body)
|
20
|
-
@request_url, @code, @details, @body = request_url, code, details, body
|
18
|
+
attr_reader :request_url, :code, :details, :body, :request_params
|
19
|
+
def initialize(request_url, code, details = {}, body = nil, request_params = {})
|
20
|
+
@request_url, @code, @details, @body, @request_params = request_url, code, details, body, request_params
|
21
21
|
super(message) if message
|
22
22
|
end
|
23
23
|
def message; @details.message; end
|
@@ -8,7 +8,6 @@ module DomoscioRails
|
|
8
8
|
DomoscioRails.request(:post, url(id), params)
|
9
9
|
end
|
10
10
|
end
|
11
|
-
|
12
11
|
def self.included(base)
|
13
12
|
base.extend(ClassMethods)
|
14
13
|
end
|
@@ -20,7 +19,6 @@ module DomoscioRails
|
|
20
19
|
DomoscioRails.request(:put, url(id), params)
|
21
20
|
end
|
22
21
|
end
|
23
|
-
|
24
22
|
def self.included(base)
|
25
23
|
base.extend(ClassMethods)
|
26
24
|
end
|
@@ -32,7 +30,6 @@ module DomoscioRails
|
|
32
30
|
DomoscioRails.request(:put, url(nil, nil, true), params)
|
33
31
|
end
|
34
32
|
end
|
35
|
-
|
36
33
|
def self.included(base)
|
37
34
|
base.extend(ClassMethods)
|
38
35
|
end
|
@@ -40,19 +37,14 @@ module DomoscioRails
|
|
40
37
|
|
41
38
|
module Fetch
|
42
39
|
module ClassMethods
|
43
|
-
def fetch(
|
44
|
-
|
45
|
-
response = DomoscioRails.request(:get, url(id), {}, filters)
|
40
|
+
def fetch(id = nil, params = {})
|
41
|
+
DomoscioRails.request(:get, url(id), params)
|
46
42
|
end
|
47
43
|
end
|
48
44
|
|
49
45
|
def self.included(base)
|
50
46
|
base.extend(ClassMethods)
|
51
47
|
end
|
52
|
-
|
53
|
-
def self.parse_id_or_filters(id_or_filters = nil)
|
54
|
-
id_or_filters.is_a?(Hash) ? [nil, id_or_filters] : [id_or_filters, {}]
|
55
|
-
end
|
56
48
|
end
|
57
49
|
|
58
50
|
module Destroy
|
@@ -81,7 +73,5 @@ module DomoscioRails
|
|
81
73
|
base.extend(ClassMethods)
|
82
74
|
end
|
83
75
|
end
|
84
|
-
|
85
|
-
|
86
76
|
end
|
87
77
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_knowledge_node_student.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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.6a
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoit Praly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -36,39 +36,29 @@ files:
|
|
36
36
|
- Rakefile
|
37
37
|
- lib/domoscio_rails.rb
|
38
38
|
- lib/domoscio_rails.tbz
|
39
|
-
- lib/domoscio_rails/adaptative/deterministic/path_rule.rb
|
40
|
-
- lib/domoscio_rails/adaptative/deterministic/rule_condition.rb
|
41
|
-
- lib/domoscio_rails/adaptative/deterministic/rule_input.rb
|
42
|
-
- lib/domoscio_rails/adaptative/deterministic/rule_output.rb
|
43
|
-
- lib/domoscio_rails/adaptative/predictive/objective.rb
|
44
|
-
- lib/domoscio_rails/adaptative/predictive/objective_knowledge_node.rb
|
45
|
-
- lib/domoscio_rails/adaptative/predictive/objective_knowledge_node_student.rb
|
46
|
-
- lib/domoscio_rails/adaptative/predictive/objective_student.rb
|
47
|
-
- lib/domoscio_rails/adaptative/recommendation.rb
|
48
|
-
- lib/domoscio_rails/admin/instance.rb
|
49
39
|
- lib/domoscio_rails/authorization_token.rb
|
50
|
-
- lib/domoscio_rails/
|
51
|
-
- lib/domoscio_rails/content/knowledge_node_content.rb
|
40
|
+
- lib/domoscio_rails/data/content.rb
|
52
41
|
- lib/domoscio_rails/data/event.rb
|
53
|
-
- lib/domoscio_rails/data/
|
42
|
+
- lib/domoscio_rails/data/instance.rb
|
54
43
|
- lib/domoscio_rails/data/learning_session.rb
|
55
|
-
- lib/domoscio_rails/data/
|
44
|
+
- lib/domoscio_rails/data/student.rb
|
56
45
|
- lib/domoscio_rails/errors.rb
|
57
46
|
- lib/domoscio_rails/http_calls.rb
|
58
47
|
- lib/domoscio_rails/json.rb
|
59
48
|
- lib/domoscio_rails/knowledge/knowledge_edge.rb
|
60
49
|
- lib/domoscio_rails/knowledge/knowledge_graph.rb
|
61
50
|
- lib/domoscio_rails/knowledge/knowledge_node.rb
|
62
|
-
- lib/domoscio_rails/
|
63
|
-
- lib/domoscio_rails/
|
64
|
-
- lib/domoscio_rails/
|
65
|
-
- lib/domoscio_rails/
|
66
|
-
- lib/domoscio_rails/
|
67
|
-
- lib/domoscio_rails/
|
51
|
+
- lib/domoscio_rails/knowledge/knowledge_node_content.rb
|
52
|
+
- lib/domoscio_rails/knowledge/knowledge_node_student.rb
|
53
|
+
- lib/domoscio_rails/objective/objective.rb
|
54
|
+
- lib/domoscio_rails/objective/objective_knowledge_node.rb
|
55
|
+
- lib/domoscio_rails/objective/objective_knowledge_node_student.rb
|
56
|
+
- lib/domoscio_rails/objective/objective_student.rb
|
68
57
|
- lib/domoscio_rails/resource.rb
|
69
|
-
- lib/domoscio_rails/
|
70
|
-
- lib/domoscio_rails/
|
71
|
-
- lib/domoscio_rails/
|
58
|
+
- lib/domoscio_rails/tag/tag.rb
|
59
|
+
- lib/domoscio_rails/tag/tag_edge.rb
|
60
|
+
- lib/domoscio_rails/tag/tag_set.rb
|
61
|
+
- lib/domoscio_rails/tag/tagging.rb
|
72
62
|
- lib/domoscio_rails/utils/gameplay_util.rb
|
73
63
|
- lib/domoscio_rails/utils/recommendation_util.rb
|
74
64
|
- lib/domoscio_rails/utils/review_util.rb
|
@@ -88,11 +78,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
78
|
version: '0'
|
89
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
80
|
requirements:
|
91
|
-
- - "
|
81
|
+
- - ">"
|
92
82
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
83
|
+
version: 1.3.1
|
94
84
|
requirements: []
|
95
|
-
rubygems_version: 3.0.
|
85
|
+
rubygems_version: 3.0.8
|
96
86
|
signing_key:
|
97
87
|
specification_version: 4
|
98
88
|
summary: Summary of DomoscioRails.
|
@@ -1,10 +0,0 @@
|
|
1
|
-
module DomoscioRails
|
2
|
-
# A PathRule.
|
3
|
-
class PathRule < Resource
|
4
|
-
include DomoscioRails::HTTPCalls::Create
|
5
|
-
include DomoscioRails::HTTPCalls::Fetch
|
6
|
-
include DomoscioRails::HTTPCalls::Update
|
7
|
-
include DomoscioRails::HTTPCalls::Destroy
|
8
|
-
include DomoscioRails::HTTPCalls::Util
|
9
|
-
end
|
10
|
-
end
|