domoscio_rails 0.3.4 → 0.3.8a
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 +93 -54
- data/lib/domoscio_rails/authorization_token.rb +4 -11
- 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 +3 -2
- data/lib/domoscio_rails/data/recommendation.rb +7 -0
- data/lib/domoscio_rails/data/student.rb +3 -2
- data/lib/domoscio_rails/errors.rb +1 -1
- data/lib/domoscio_rails/knowledge/knowledge_edge.rb +2 -3
- data/lib/domoscio_rails/knowledge/knowledge_graph.rb +2 -3
- data/lib/domoscio_rails/knowledge/knowledge_node.rb +2 -3
- data/lib/domoscio_rails/knowledge/knowledge_node_content.rb +3 -2
- data/lib/domoscio_rails/knowledge/knowledge_node_student.rb +1 -2
- data/lib/domoscio_rails/objective/objective.rb +3 -2
- data/lib/domoscio_rails/objective/objective_knowledge_node.rb +8 -4
- data/lib/domoscio_rails/objective/objective_knowledge_node_student.rb +9 -5
- data/lib/domoscio_rails/objective/objective_student.rb +3 -2
- data/lib/domoscio_rails/tag/tag.rb +3 -2
- data/lib/domoscio_rails/tag/tag_edge.rb +3 -2
- data/lib/domoscio_rails/tag/tag_set.rb +3 -2
- data/lib/domoscio_rails/tag/tagging.rb +3 -2
- 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 +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e594a08ade8e083ea0ab3e612e7134b857a9cc946a05ca3389ee5cc0a5d74b7d
|
4
|
+
data.tar.gz: 9ca19fbfbf9156600306929503d423e768b597c6101b683350978d1e8213f23f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fc507af97c64fb9451cacd1e79f7a0a19f02f02af6093a2ca61546144ac8055aaa69e2b54832f1aa8fca609db095bf67d615cedd0b05fca50e9bc01d4f11a25
|
7
|
+
data.tar.gz: cab7cb431f5776565767b22380755426a31d953f612bd8017f8676698924c682a1550b3fd166c258bcaa71bb26a32f38630bd4cd5c565d3f490b99f2ae72a478
|
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'
|
@@ -38,11 +39,11 @@ module DomoscioRails
|
|
38
39
|
|
39
40
|
# Refers to AdaptiveEngine Version
|
40
41
|
def version
|
41
|
-
@version
|
42
|
+
@version ||= 2
|
42
43
|
end
|
43
44
|
|
44
45
|
def root_url
|
45
|
-
@root_url
|
46
|
+
@root_url ||= ""
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
@@ -63,42 +64,44 @@ module DomoscioRails
|
|
63
64
|
# - +method+: HTTP method; lowercase symbol, e.g. :get, :post etc.
|
64
65
|
# - +url+: the part after Configuration#root_url
|
65
66
|
# - +params+: hash; entity data for creation, update etc.; will dump it by JSON and assign to Net::HTTPRequest#body
|
66
|
-
# - +filters+: hash; pagination params etc.; will encode it by URI and assign to URI#query
|
67
|
-
# - +headers+: hash; request_headers by default
|
68
|
-
# - +before_request_proc+: optional proc; will call it passing the Net::HTTPRequest instance just before Net::HTTPRequest#request
|
69
67
|
#
|
70
|
-
#
|
68
|
+
# Performs HTTP requests to Adaptive Engine
|
69
|
+
# On token issues, will try once to get a new token then will output a DomoscioRails::ReponseError with details
|
71
70
|
#
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
71
|
+
# Raises DomoscioRails::ResponseError on Adaptive Error Status
|
72
|
+
# Raises DomoscioRails::ProcessingError on Internal Error
|
73
|
+
#
|
74
|
+
def self.request(method, url, params={})
|
75
|
+
|
76
|
+
store_tokens, headers = request_headers
|
77
|
+
params.merge!({'per_page': 2000}) unless params[:per_page]
|
76
78
|
uri = api_uri(url)
|
77
|
-
|
78
|
-
|
79
|
-
return
|
79
|
+
|
80
|
+
response = DomoscioRails.send_request(uri, method, params, headers)
|
81
|
+
return response if response.kind_of? DomoscioRails::ProcessingError
|
82
|
+
|
80
83
|
begin
|
81
|
-
raise_http_failure(uri,
|
82
|
-
data = DomoscioRails::JSON.load(
|
83
|
-
DomoscioRails::AuthorizationToken::Manager.storage.store({access_token:
|
84
|
+
raise_http_failure(uri, response, params)
|
85
|
+
data = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body)
|
86
|
+
DomoscioRails::AuthorizationToken::Manager.storage.store({access_token: response['Accesstoken'], refresh_token: response['Refreshtoken']}) if store_tokens
|
84
87
|
rescue MultiJson::LoadError => exception
|
85
|
-
data = ProcessingError.new(uri, 500, exception,
|
88
|
+
data = ProcessingError.new(uri, 500, exception, response.body, params)
|
86
89
|
rescue ResponseError => exception
|
87
90
|
data = exception
|
88
91
|
end
|
89
92
|
|
90
|
-
if
|
91
|
-
pagetotal = (
|
93
|
+
if response['Total']
|
94
|
+
pagetotal = (response['Total'].to_i / response['Per-Page'].to_f).ceil
|
92
95
|
for j in 2..pagetotal
|
93
|
-
|
94
|
-
return
|
96
|
+
response = DomoscioRails.send_request(uri, method, params.merge({page: j}), headers)
|
97
|
+
return response if response.kind_of? DomoscioRails::ProcessingError
|
95
98
|
begin
|
96
|
-
raise_http_failure(uri,
|
97
|
-
body = DomoscioRails::JSON.load(
|
99
|
+
raise_http_failure(uri, response, params)
|
100
|
+
body = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body)
|
98
101
|
data += body
|
99
102
|
data.flatten!
|
100
103
|
rescue MultiJson::LoadError => exception
|
101
|
-
return ProcessingError.new(uri, 500, exception,
|
104
|
+
return ProcessingError.new(uri, 500, exception, response.body, params)
|
102
105
|
rescue ResponseError => exception
|
103
106
|
return exception
|
104
107
|
end
|
@@ -107,32 +110,51 @@ module DomoscioRails
|
|
107
110
|
data
|
108
111
|
end
|
109
112
|
|
110
|
-
|
113
|
+
private
|
114
|
+
|
115
|
+
# This function catches usual Http errors during calls
|
116
|
+
#
|
117
|
+
def self.send_request(uri, method, params, headers)
|
111
118
|
begin
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
before_request_proc.call(req) if before_request_proc
|
116
|
-
http.request req
|
117
|
-
end
|
119
|
+
response = perform_call(uri, method, params, headers)
|
120
|
+
response = retry_call_and_store_tokens(uri, method, params, headers) if ['401','403'].include? response.code
|
121
|
+
response
|
118
122
|
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNREFUSED, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => exception
|
119
|
-
ProcessingError.new(uri, 500, exception,
|
123
|
+
ProcessingError.new(uri, 500, exception, response)
|
120
124
|
end
|
121
125
|
end
|
122
126
|
|
123
|
-
|
124
|
-
|
125
|
-
def self.raise_http_failure(uri,
|
126
|
-
unless
|
127
|
-
if
|
127
|
+
# This helper will check the response status and build the correcponding DomoscioRails::ResponseError
|
128
|
+
#
|
129
|
+
def self.raise_http_failure(uri, response, params)
|
130
|
+
unless response.kind_of? Net::HTTPSuccess
|
131
|
+
if response.blank?
|
128
132
|
raise ResponseError.new(uri, 500, {error: {status: 500, message: 'AdaptiveEngine not available'}}, {}, params)
|
129
133
|
else
|
130
|
-
|
131
|
-
raise ResponseError.new(uri, res.code.to_i, body, res.body, params)
|
134
|
+
raise ResponseError.new(uri, response.code.to_i, DomoscioRails::JSON.load((response.body.nil? ? '' : response.body), :symbolize_keys => true), response.body, params)
|
132
135
|
end
|
133
136
|
end
|
134
137
|
end
|
135
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
|
157
|
+
|
136
158
|
def self.user_agent
|
137
159
|
@uname ||= get_uname
|
138
160
|
{
|
@@ -150,22 +172,39 @@ module DomoscioRails
|
|
150
172
|
'uname lookup failed'
|
151
173
|
end
|
152
174
|
|
175
|
+
# Process the token loading and analyze
|
176
|
+
# will return the processed headers and a token store flag
|
177
|
+
#
|
153
178
|
def self.request_headers
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
headers = {
|
164
|
-
'user_agent' => "#{DomoscioRails.user_agent}",
|
165
|
-
'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}",
|
166
|
-
'Content-Type' => 'application/json'
|
167
|
-
}
|
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]
|
168
188
|
end
|
169
|
-
|
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
|
+
}
|
170
209
|
end
|
171
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
|
@@ -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
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A LearningSession is basicly a group of events.
|
3
2
|
class LearningSession < Resource
|
4
|
-
|
3
|
+
|
5
4
|
include DomoscioRails::HTTPCalls::Create
|
6
5
|
include DomoscioRails::HTTPCalls::Fetch
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
include DomoscioRails::HTTPCalls::Util
|
8
9
|
|
9
10
|
end
|
10
11
|
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A company.
|
3
2
|
class Student < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
8
9
|
end
|
9
10
|
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,11 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A Knowledge Edge.
|
3
2
|
class KnowledgeEdge < Resource
|
4
|
-
|
3
|
+
|
5
4
|
include DomoscioRails::HTTPCalls::Create
|
6
5
|
include DomoscioRails::HTTPCalls::Fetch
|
7
|
-
include DomoscioRails::HTTPCalls::Update
|
8
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
9
8
|
|
10
9
|
end
|
11
10
|
end
|
@@ -1,11 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A Knowledge Graph.
|
3
2
|
class KnowledgeGraph < Resource
|
4
|
-
|
3
|
+
|
5
4
|
include DomoscioRails::HTTPCalls::Create
|
6
5
|
include DomoscioRails::HTTPCalls::Fetch
|
7
|
-
include DomoscioRails::HTTPCalls::Update
|
8
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
9
8
|
|
10
9
|
end
|
11
10
|
end
|
@@ -1,11 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A Knowledge Node.
|
3
2
|
class KnowledgeNode < Resource
|
4
|
-
|
3
|
+
|
5
4
|
include DomoscioRails::HTTPCalls::Create
|
6
5
|
include DomoscioRails::HTTPCalls::Fetch
|
7
|
-
include DomoscioRails::HTTPCalls::Update
|
8
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
9
8
|
|
10
9
|
end
|
11
10
|
end
|
@@ -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
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
8
9
|
end
|
9
10
|
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# An objective.
|
3
2
|
class Objective < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
8
9
|
end
|
9
10
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
class ObjectiveKnowledgeNode < Resource
|
3
|
+
|
4
|
+
include DomoscioRails::HTTPCalls::Create
|
5
|
+
include DomoscioRails::HTTPCalls::Fetch
|
6
|
+
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
6
9
|
end
|
10
|
+
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
class ObjectiveKnowledgeNodeStudent < Resource
|
3
|
+
|
4
|
+
include DomoscioRails::HTTPCalls::Create
|
5
|
+
include DomoscioRails::HTTPCalls::Fetch
|
6
|
+
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
9
|
+
end
|
10
|
+
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
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
8
|
include DomoscioRails::HTTPCalls::Util
|
9
|
+
|
9
10
|
end
|
10
11
|
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A Tag.
|
3
2
|
class Tag < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
8
9
|
end
|
9
10
|
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A TagEdge.
|
3
2
|
class TagEdge < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
8
9
|
end
|
9
10
|
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A TagSet.
|
3
2
|
class TagSet < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
8
9
|
end
|
9
10
|
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# A Tagging.
|
3
2
|
class Tagging < Resource
|
3
|
+
|
4
4
|
include DomoscioRails::HTTPCalls::Create
|
5
5
|
include DomoscioRails::HTTPCalls::Fetch
|
6
|
-
include DomoscioRails::HTTPCalls::Update
|
7
6
|
include DomoscioRails::HTTPCalls::Destroy
|
7
|
+
include DomoscioRails::HTTPCalls::Update
|
8
|
+
|
8
9
|
end
|
9
10
|
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.8a
|
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-05-01 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
|
@@ -78,9 +79,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
79
|
version: '0'
|
79
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
81
|
requirements:
|
81
|
-
- - "
|
82
|
+
- - ">"
|
82
83
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
84
|
+
version: 1.3.1
|
84
85
|
requirements: []
|
85
86
|
rubygems_version: 3.1.2
|
86
87
|
signing_key:
|