domoscio_rails 0.2.24 → 0.3.5
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 +67 -90
- data/lib/domoscio_rails/authorization_token.rb +1 -4
- 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 +14 -13
- 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 +1 -2
- data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_student.rb +0 -0
- data/lib/domoscio_rails/resource.rb +1 -4
- 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 +2 -2
- metadata +16 -27
- 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
- data/lib/tasks/domoscio_rails_tasks.rake +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7cabe98aeb3d48cbe9e3221c798052ca22e9838641b0f0eb5c814651b56b86e
|
4
|
+
data.tar.gz: add23b57f3520e3c63c943beb1e915b3ca75f82ff1a015048079342c2f9ba981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 641267c7319ab1653ceb738267fa8f4faa2705d13d19f0e139c95b6f862c33eaedb23c4d0ae47bde11dd37ba7dbf2a423d63976b61e699ae1fdca0855030e403
|
7
|
+
data.tar.gz: 0db98990280a8ea3eb7d4ed485f02e5a0117127c03b8474220740d247ebd307e64161e1ead8200dc4235b22dc822e389d19c24326c0123dfa1aa4a813a443ae7
|
data/lib/domoscio_rails.rb
CHANGED
@@ -2,83 +2,47 @@
|
|
2
2
|
require 'net/https'
|
3
3
|
require 'cgi/util'
|
4
4
|
require 'multi_json'
|
5
|
-
|
6
5
|
# helpers
|
7
6
|
require 'domoscio_rails/version'
|
8
7
|
require 'domoscio_rails/json'
|
9
8
|
require 'domoscio_rails/errors'
|
10
9
|
require 'domoscio_rails/authorization_token'
|
11
|
-
|
12
10
|
# resources
|
13
11
|
require 'domoscio_rails/http_calls'
|
14
12
|
require 'domoscio_rails/resource'
|
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
|
-
require 'domoscio_rails/
|
35
|
-
require 'domoscio_rails/
|
36
|
-
require 'domoscio_rails/data/knowledge_node_student'
|
37
|
-
require 'domoscio_rails/data/event'
|
38
|
-
require 'domoscio_rails/data/learning_session'
|
39
|
-
require 'domoscio_rails/utils/review_util'
|
40
|
-
require 'domoscio_rails/utils/gameplay_util'
|
41
|
-
require 'domoscio_rails/utils/alerts_util'
|
42
|
-
require 'domoscio_rails/utils/recommendation_util'
|
43
|
-
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'
|
44
34
|
|
45
35
|
module DomoscioRails
|
46
|
-
|
47
36
|
class Configuration
|
48
|
-
attr_accessor :
|
49
|
-
|
50
|
-
def disabled
|
51
|
-
@disabled || false
|
52
|
-
end
|
53
|
-
|
54
|
-
def preproduction
|
55
|
-
@preproduction || false
|
56
|
-
end
|
57
|
-
|
58
|
-
def test
|
59
|
-
@test || false
|
60
|
-
end
|
61
|
-
|
62
|
-
def dev
|
63
|
-
@dev || false
|
64
|
-
end
|
37
|
+
attr_accessor :root_url, :client_id, :client_passphrase, :temp_dir, :version
|
65
38
|
|
39
|
+
# Refers to AdaptiveEngine Version
|
66
40
|
def version
|
67
|
-
@version ||
|
41
|
+
@version || 2
|
68
42
|
end
|
69
43
|
|
70
44
|
def root_url
|
71
|
-
|
72
|
-
if @test == true
|
73
|
-
@root_url || "https://staging.adaptive-engine.domoscio.com"
|
74
|
-
elsif @dev == true
|
75
|
-
@root_url || "https://preprod.adaptive-engine.domoscio.com"
|
76
|
-
else
|
77
|
-
@root_url || "https://adaptive-engine.domoscio.com"
|
78
|
-
end
|
79
|
-
else
|
80
|
-
@root_url || "http://localhost:3001"
|
81
|
-
end
|
45
|
+
@root_url || ""
|
82
46
|
end
|
83
47
|
end
|
84
48
|
|
@@ -107,56 +71,70 @@ module DomoscioRails
|
|
107
71
|
#
|
108
72
|
def self.request(method, url, params={}, filters={}, headers = request_headers, before_request_proc = nil)
|
109
73
|
return false if @disabled
|
74
|
+
# sets a default page size to 2k
|
75
|
+
params.merge!({'per_page': 2000}) unless params[:per_page]
|
110
76
|
uri = api_uri(url)
|
111
77
|
uri.query = URI.encode_www_form(filters) unless filters.empty?
|
112
|
-
|
113
78
|
res = DomoscioRails.send_request(uri, method, params, headers, before_request_proc)
|
114
|
-
|
115
|
-
# decode json data
|
79
|
+
return res if res.kind_of? DomoscioRails::ProcessingError
|
116
80
|
begin
|
81
|
+
raise_http_failure(uri, res, params)
|
117
82
|
data = DomoscioRails::JSON.load(res.body.nil? ? '' : res.body)
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
rescue
|
122
|
-
data =
|
83
|
+
DomoscioRails::AuthorizationToken::Manager.storage.store({access_token: res['Accesstoken'], refresh_token: res['Refreshtoken']})
|
84
|
+
rescue MultiJson::LoadError => exception
|
85
|
+
data = ProcessingError.new(uri, 500, exception, res.body, params)
|
86
|
+
rescue ResponseError => exception
|
87
|
+
data = exception
|
123
88
|
end
|
124
89
|
|
125
90
|
if res['Total'] && !filters[:page]
|
126
91
|
pagetotal = (res['Total'].to_i / res['Per-Page'].to_f).ceil
|
127
|
-
|
128
92
|
for j in 2..pagetotal
|
129
|
-
|
130
|
-
res
|
131
|
-
|
132
|
-
# decode json data
|
93
|
+
res = DomoscioRails.send_request(uri, method, params.merge({page: j}), headers, before_request_proc)
|
94
|
+
return res if res.kind_of? DomoscioRails::ProcessingError
|
133
95
|
begin
|
134
|
-
|
96
|
+
raise_http_failure(uri, res, params)
|
97
|
+
body = DomoscioRails::JSON.load(res.body.nil? ? '' : res.body)
|
98
|
+
data += body
|
135
99
|
data.flatten!
|
136
|
-
rescue MultiJson::LoadError
|
137
|
-
|
100
|
+
rescue MultiJson::LoadError => exception
|
101
|
+
return ProcessingError.new(uri, 500, exception, res.body, params)
|
102
|
+
rescue ResponseError => exception
|
103
|
+
return exception
|
138
104
|
end
|
139
|
-
|
140
105
|
end
|
141
106
|
end
|
142
107
|
data
|
143
108
|
end
|
144
109
|
|
145
|
-
|
146
110
|
def self.send_request(uri, method, params, headers, before_request_proc)
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
111
|
+
begin
|
112
|
+
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
|
113
|
+
req = Net::HTTP::const_get(method.capitalize).new(uri.request_uri, headers)
|
114
|
+
req.body = DomoscioRails::JSON.dump(params)
|
115
|
+
before_request_proc.call(req) if before_request_proc
|
116
|
+
http.request req
|
117
|
+
end
|
118
|
+
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNREFUSED, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => exception
|
119
|
+
ProcessingError.new(uri, 500, exception, res)
|
152
120
|
end
|
153
121
|
end
|
154
122
|
|
155
123
|
private
|
156
124
|
|
125
|
+
def self.raise_http_failure(uri, res, params)
|
126
|
+
unless res.kind_of? Net::HTTPSuccess
|
127
|
+
if res.blank?
|
128
|
+
raise ResponseError.new(uri, 500, {error: {status: 500, message: 'AdaptiveEngine not available'}}, {}, params)
|
129
|
+
else
|
130
|
+
body = DomoscioRails::JSON.load((res.body.nil? ? '' : res.body), :symbolize_keys => true)
|
131
|
+
raise ResponseError.new(uri, res.code.to_i, body, res.body, params)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
157
136
|
def self.user_agent
|
158
137
|
@uname ||= get_uname
|
159
|
-
|
160
138
|
{
|
161
139
|
bindings_version: DomoscioRails::VERSION,
|
162
140
|
lang: 'ruby',
|
@@ -174,21 +152,20 @@ module DomoscioRails
|
|
174
152
|
|
175
153
|
def self.request_headers
|
176
154
|
auth_token = DomoscioRails::AuthorizationToken::Manager.get_token
|
177
|
-
|
178
155
|
if !auth_token.is_a? String
|
179
156
|
headers = {
|
180
|
-
'user_agent' => "
|
157
|
+
'user_agent' => "#{DomoscioRails.user_agent}",
|
181
158
|
'AccessToken' => "#{auth_token[:access_token]}",
|
182
159
|
'RefreshToken' => "#{auth_token[:refresh_token]}",
|
183
160
|
'Content-Type' => 'application/json'
|
184
161
|
}
|
185
162
|
else
|
186
163
|
headers = {
|
187
|
-
'user_agent' => "
|
188
|
-
'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}"
|
164
|
+
'user_agent' => "#{DomoscioRails.user_agent}",
|
165
|
+
'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}",
|
189
166
|
'Content-Type' => 'application/json'
|
190
167
|
}
|
191
168
|
end
|
192
169
|
headers
|
193
170
|
end
|
194
|
-
end
|
171
|
+
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
module DomoscioRails
|
2
2
|
module AuthorizationToken
|
3
|
-
|
4
3
|
class Manager
|
5
|
-
|
6
4
|
class << self
|
7
5
|
def storage
|
8
6
|
@@storage ||= FileStorage.new
|
@@ -19,7 +17,6 @@ module DomoscioRails
|
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
22
|
-
|
23
20
|
class StaticStorage
|
24
21
|
def get
|
25
22
|
@@token ||= nil
|
@@ -63,7 +60,7 @@ module DomoscioRails
|
|
63
60
|
end
|
64
61
|
|
65
62
|
def file_path
|
66
|
-
@temp_dir = DomoscioRails.configuration.temp_dir
|
63
|
+
@temp_dir = DomoscioRails.configuration.temp_dir
|
67
64
|
File.join(@temp_dir, "DomoscioRails.AuthorizationToken.FileStore.tmp")
|
68
65
|
end
|
69
66
|
end
|
File without changes
|
File without changes
|
@@ -1,24 +1,25 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
|
3
2
|
# Generic error superclass for MangoPay specific errors.
|
4
|
-
# Currently never instantiated directly.
|
5
|
-
# Currently only single subclass used.
|
6
3
|
class Error < StandardError
|
7
4
|
end
|
8
5
|
|
9
|
-
#
|
10
|
-
# it returns response with HTTP code != 200.
|
6
|
+
# Error Message from AdaptiveEngine
|
11
7
|
class ResponseError < Error
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
def initialize(request_url, code, details)
|
16
|
-
@request_url, @code, @details = request_url, code, details
|
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
|
17
11
|
super(message) if message
|
18
12
|
end
|
13
|
+
def message; @details.is_a?(Hash) ? @details.dig(:error, :message) : @details; end
|
14
|
+
end
|
19
15
|
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
# ProcessingError from DomoscioRails
|
17
|
+
class ProcessingError < Error
|
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
|
+
super(message) if message
|
22
|
+
end
|
23
|
+
def message; @details.message; end
|
23
24
|
end
|
24
25
|
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
|
File without changes
|
@@ -1,16 +1,13 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
# @abstract
|
3
2
|
class Resource
|
4
3
|
class << self
|
5
4
|
def class_name
|
6
5
|
name.split('::')[-1]
|
7
6
|
end
|
8
|
-
|
9
7
|
def url(id = nil, util_name = nil, on_self = nil )
|
10
8
|
if self == Resource
|
11
9
|
raise NotImplementedError.new('Resource is an abstract class. Do not use it directly.')
|
12
10
|
end
|
13
|
-
|
14
11
|
build_url = "/v#{DomoscioRails.configuration.version}/instances/#{DomoscioRails.configuration.client_id}"
|
15
12
|
if !on_self
|
16
13
|
build_url << "/#{class_name.underscore}s"
|
@@ -25,4 +22,4 @@ module DomoscioRails
|
|
25
22
|
end
|
26
23
|
end
|
27
24
|
end
|
28
|
-
end
|
25
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module DomoscioRails
|
2
|
-
VERSION = "0.
|
3
|
-
end
|
2
|
+
VERSION = "0.3.5"
|
3
|
+
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.
|
4
|
+
version: 0.3.5
|
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-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -36,44 +36,33 @@ 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
|
75
65
|
- lib/domoscio_rails/version.rb
|
76
|
-
- lib/tasks/domoscio_rails_tasks.rake
|
77
66
|
homepage: http://www.domoscio.com
|
78
67
|
licenses:
|
79
68
|
- MIT
|
@@ -93,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
82
|
- !ruby/object:Gem::Version
|
94
83
|
version: '0'
|
95
84
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.0.8
|
97
86
|
signing_key:
|
98
87
|
specification_version: 4
|
99
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
|