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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/domoscio_rails.rb +67 -90
  3. data/lib/domoscio_rails/authorization_token.rb +1 -4
  4. data/lib/domoscio_rails/{content → data}/content.rb +1 -0
  5. data/lib/domoscio_rails/{admin → data}/instance.rb +0 -0
  6. data/lib/domoscio_rails/{student → data}/student.rb +0 -0
  7. data/lib/domoscio_rails/errors.rb +14 -13
  8. data/lib/domoscio_rails/http_calls.rb +2 -12
  9. data/lib/domoscio_rails/{content → knowledge}/knowledge_node_content.rb +0 -0
  10. data/lib/domoscio_rails/{data → knowledge}/knowledge_node_student.rb +0 -0
  11. data/lib/domoscio_rails/{adaptative/predictive → objective}/objective.rb +0 -0
  12. data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_knowledge_node.rb +0 -0
  13. data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_knowledge_node_student.rb +1 -2
  14. data/lib/domoscio_rails/{adaptative/predictive → objective}/objective_student.rb +0 -0
  15. data/lib/domoscio_rails/resource.rb +1 -4
  16. data/lib/domoscio_rails/{metadata → tag}/tag.rb +0 -0
  17. data/lib/domoscio_rails/{metadata → tag}/tag_edge.rb +0 -0
  18. data/lib/domoscio_rails/{metadata → tag}/tag_set.rb +0 -0
  19. data/lib/domoscio_rails/{metadata → tag}/tagging.rb +0 -0
  20. data/lib/domoscio_rails/version.rb +2 -2
  21. metadata +16 -27
  22. data/lib/domoscio_rails/adaptative/deterministic/path_rule.rb +0 -10
  23. data/lib/domoscio_rails/adaptative/deterministic/rule_condition.rb +0 -9
  24. data/lib/domoscio_rails/adaptative/deterministic/rule_input.rb +0 -9
  25. data/lib/domoscio_rails/adaptative/deterministic/rule_output.rb +0 -9
  26. data/lib/domoscio_rails/adaptative/recommendation.rb +0 -7
  27. data/lib/domoscio_rails/data/result.rb +0 -10
  28. data/lib/domoscio_rails/metadata/delta_object.rb +0 -6
  29. data/lib/domoscio_rails/path/learning_path.rb +0 -6
  30. data/lib/domoscio_rails/student/student_cluster.rb +0 -6
  31. data/lib/domoscio_rails/utils/alerts_util.rb +0 -6
  32. data/lib/tasks/domoscio_rails_tasks.rake +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80036d711a50e0323cbd9f9fa260ebc9c9c6d194060f68b8be05d2ee7eab4206
4
- data.tar.gz: 944991129c4a01704a0b24776d605ff926f408b48e17e998b1a525bcf43a469b
3
+ metadata.gz: b7cabe98aeb3d48cbe9e3221c798052ca22e9838641b0f0eb5c814651b56b86e
4
+ data.tar.gz: add23b57f3520e3c63c943beb1e915b3ca75f82ff1a015048079342c2f9ba981
5
5
  SHA512:
6
- metadata.gz: ae6d858a4ca54802ff2504ee268fcacf8915cc45832fad48ba59c70daf1f49567112f5647b68dded5ab0056cef403cb77e52e9a06f341fc52f9ee45d52babd98
7
- data.tar.gz: 01f77a383197e1e91b4b4c196d40098b44fec5a60eb2ec87a06ed34bde89633053000799b2920200d38b3b14266dda6e64cba292b34fdd726d54a4f1feb4109f
6
+ metadata.gz: 641267c7319ab1653ceb738267fa8f4faa2705d13d19f0e139c95b6f862c33eaedb23c4d0ae47bde11dd37ba7dbf2a423d63976b61e699ae1fdca0855030e403
7
+ data.tar.gz: 0db98990280a8ea3eb7d4ed485f02e5a0117127c03b8474220740d247ebd307e64161e1ead8200dc4235b22dc822e389d19c24326c0123dfa1aa4a813a443ae7
@@ -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/adaptative/deterministic/path_rule'
16
- require 'domoscio_rails/adaptative/deterministic/rule_input'
17
- require 'domoscio_rails/adaptative/deterministic/rule_output'
18
- require 'domoscio_rails/adaptative/deterministic/rule_condition'
19
- require 'domoscio_rails/adaptative/predictive/objective'
20
- require 'domoscio_rails/adaptative/predictive/objective_student'
21
- require 'domoscio_rails/adaptative/predictive/objective_knowledge_node'
22
- require 'domoscio_rails/adaptative/predictive/objective_knowledge_node_student'
23
- require 'domoscio_rails/adaptative/recommendation'
24
- require 'domoscio_rails/path/learning_path'
25
- require 'domoscio_rails/content/content'
26
- require 'domoscio_rails/content/knowledge_node_content'
27
- require 'domoscio_rails/student/student'
28
- require 'domoscio_rails/student/student_cluster'
29
- require 'domoscio_rails/knowledge/knowledge_graph'
30
- require 'domoscio_rails/knowledge/knowledge_edge'
31
- require 'domoscio_rails/knowledge/knowledge_node'
32
- require 'domoscio_rails/metadata/tag'
33
- require 'domoscio_rails/metadata/tagging'
34
- require 'domoscio_rails/metadata/tag_set'
35
- require 'domoscio_rails/metadata/tag_edge'
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 :preproduction, :test, :dev, :root_url, :client_id, :client_passphrase, :temp_dir, :disabled, :version
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 || 1
41
+ @version || 2
68
42
  end
69
43
 
70
44
  def root_url
71
- if @preproduction == true
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
- unless (res.kind_of? Net::HTTPClientError) || (res.kind_of? Net::HTTPServerError)
119
- DomoscioRails::AuthorizationToken::Manager.storage.store({access_token: res['Accesstoken'], refresh_token: res['Refreshtoken']})
120
- end
121
- rescue MultiJson::LoadError
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
- params = params.merge({page: j})
130
- res = DomoscioRails.send_request(uri, method, params, headers, before_request_proc)
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
- data += DomoscioRails::JSON.load(res.body.nil? ? '' : res.body)
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
- data = {}
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
- res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http| # , use_ssl: uri.scheme == 'https') do |http|
148
- req = Net::HTTP::const_get(method.capitalize).new(uri.request_uri, headers)
149
- req.body = DomoscioRails::JSON.dump(params)
150
- before_request_proc.call(req) if before_request_proc
151
- http.request req
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' => "DomoscioRails V2 RubyBindings/#{DomoscioRails::VERSION}",
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' => "DomoscioRails V2 RubyBindings/#{DomoscioRails::VERSION}",
188
- 'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}",#"#{auth_token['token_type']} #{auth_token['access_token']}",
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 if @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
@@ -5,5 +5,6 @@ module DomoscioRails
5
5
  include DomoscioRails::HTTPCalls::Fetch
6
6
  include DomoscioRails::HTTPCalls::Update
7
7
  include DomoscioRails::HTTPCalls::Destroy
8
+ include DomoscioRails::HTTPCalls::Util
8
9
  end
9
10
  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
- # Thrown from any MangoPay API call whenever
10
- # it returns response with HTTP code != 200.
6
+ # Error Message from AdaptiveEngine
11
7
  class ResponseError < Error
12
-
13
- attr_reader :request_url, :code, :details
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
- def message; @details['Message']; end
21
- def type; @details['Type']; end
22
- def errors; @details['errors']; end
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(id_or_filters = nil)
44
- id, filters = DomoscioRails::HTTPCalls::Fetch.parse_id_or_filters(id_or_filters)
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
@@ -1,7 +1,6 @@
1
1
  module DomoscioRails
2
- # An objective knowledge node student.
3
2
  class ObjectiveKnowledgeNodeStudent < Resource
4
3
  include DomoscioRails::HTTPCalls::Fetch
5
4
  include DomoscioRails::HTTPCalls::Update
6
5
  end
7
- end
6
+ end
@@ -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.2.24"
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.2.24
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: 2020-11-04 00:00:00.000000000 Z
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/content/content.rb
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/knowledge_node_student.rb
42
+ - lib/domoscio_rails/data/instance.rb
54
43
  - lib/domoscio_rails/data/learning_session.rb
55
- - lib/domoscio_rails/data/result.rb
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/metadata/delta_object.rb
63
- - lib/domoscio_rails/metadata/tag.rb
64
- - lib/domoscio_rails/metadata/tag_edge.rb
65
- - lib/domoscio_rails/metadata/tag_set.rb
66
- - lib/domoscio_rails/metadata/tagging.rb
67
- - lib/domoscio_rails/path/learning_path.rb
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/student/student.rb
70
- - lib/domoscio_rails/student/student_cluster.rb
71
- - lib/domoscio_rails/utils/alerts_util.rb
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.1.2
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
@@ -1,9 +0,0 @@
1
- module DomoscioRails
2
- # A RuleCondition.
3
- class RuleCondition < Resource
4
- include DomoscioRails::HTTPCalls::Create
5
- include DomoscioRails::HTTPCalls::Fetch
6
- include DomoscioRails::HTTPCalls::Update
7
- include DomoscioRails::HTTPCalls::Destroy
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module DomoscioRails
2
- # A RuleInput.
3
- class RuleInput < Resource
4
- include DomoscioRails::HTTPCalls::Create
5
- include DomoscioRails::HTTPCalls::Fetch
6
- include DomoscioRails::HTTPCalls::Update
7
- include DomoscioRails::HTTPCalls::Destroy
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module DomoscioRails
2
- # A RuleOutput.
3
- class RuleOutput < Resource
4
- include DomoscioRails::HTTPCalls::Create
5
- include DomoscioRails::HTTPCalls::Fetch
6
- include DomoscioRails::HTTPCalls::Update
7
- include DomoscioRails::HTTPCalls::Destroy
8
- end
9
- end
@@ -1,7 +0,0 @@
1
- module DomoscioRails
2
- # A Recommandation.
3
- class Recommendation < Resource
4
- include DomoscioRails::HTTPCalls::Fetch
5
- include DomoscioRails::HTTPCalls::Destroy
6
- end
7
- end
@@ -1,10 +0,0 @@
1
- module DomoscioRails
2
- # A Student Result on a KnowledgeNode.
3
- class Result < Resource
4
-
5
- include DomoscioRails::HTTPCalls::Create
6
- include DomoscioRails::HTTPCalls::Fetch
7
- include DomoscioRails::HTTPCalls::Destroy
8
-
9
- end
10
- end
@@ -1,6 +0,0 @@
1
- module DomoscioRails
2
- # A delta object.
3
- class DeltaObject < Resource
4
- include DomoscioRails::HTTPCalls::Fetch
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- module DomoscioRails
2
- # A LearningPath.
3
- class LearningPath < Resource
4
- include DomoscioRails::HTTPCalls::Fetch
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- module DomoscioRails
2
- # A student cluster.
3
- class StudentCluster < Resource
4
- include DomoscioRails::HTTPCalls::Fetch
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- module DomoscioRails
2
- # A company.
3
- class AlertsUtil < Resource
4
- include DomoscioRails::HTTPCalls::Util
5
- end
6
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :domoscio_rails do
3
- # # Task goes here
4
- # end