domoscio_rails 0.4.1 → 0.4.5
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/data/student_group.rb +8 -0
- data/lib/domoscio_rails/objective/learning_program.rb +8 -0
- data/lib/domoscio_rails/objective/learning_program_student.rb +9 -0
- data/lib/domoscio_rails/objective/objective.rb +1 -0
- data/lib/domoscio_rails/objective/subscription.rb +8 -0
- data/lib/domoscio_rails/scorm/scorm.rb +5 -0
- data/lib/domoscio_rails/version.rb +1 -1
- data/lib/domoscio_rails.rb +12 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12f7caee1406f22da61753a940e728fb23ab5b72881be2b9ebb870cad8b378f7
|
4
|
+
data.tar.gz: 1871d210f8a2626cf8910cdfbae4dcff912f6120ab14a7f52c19b01fb3421b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 917fad865ac84b56dc507399726f74f57fb791acac5f9d376616a69e51bc9af357f5d515180657c349f6f521c8c1b4391c2e353c4e5e6c5fdf1242fdd8e3ad1e
|
7
|
+
data.tar.gz: 81da6575de8e6798791d27b848de00e51f287650189e49f18fcb543e2f04f91bdb9f2ca884588358194466c6aba302201a2202250d086a9f308834698a3230d8
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module DomoscioRails
|
2
|
+
class LearningProgramStudent < Resource
|
3
|
+
include DomoscioRails::HTTPCalls::Create
|
4
|
+
include DomoscioRails::HTTPCalls::Fetch
|
5
|
+
include DomoscioRails::HTTPCalls::Destroy
|
6
|
+
include DomoscioRails::HTTPCalls::Update
|
7
|
+
include DomoscioRails::HTTPCalls::Util
|
8
|
+
end
|
9
|
+
end
|
data/lib/domoscio_rails.rb
CHANGED
@@ -15,15 +15,19 @@ require 'domoscio_rails/data/instance'
|
|
15
15
|
require 'domoscio_rails/data/recommendation'
|
16
16
|
require 'domoscio_rails/data/learning_session'
|
17
17
|
require 'domoscio_rails/data/student'
|
18
|
+
require 'domoscio_rails/data/student_group'
|
18
19
|
require 'domoscio_rails/knowledge/knowledge_edge'
|
19
20
|
require 'domoscio_rails/knowledge/knowledge_graph'
|
20
21
|
require 'domoscio_rails/knowledge/knowledge_node_content'
|
21
22
|
require 'domoscio_rails/knowledge/knowledge_node_student'
|
22
23
|
require 'domoscio_rails/knowledge/knowledge_node'
|
24
|
+
require 'domoscio_rails/objective/learning_program_student'
|
25
|
+
require 'domoscio_rails/objective/learning_program'
|
23
26
|
require 'domoscio_rails/objective/objective_knowledge_node_student'
|
24
27
|
require 'domoscio_rails/objective/objective_knowledge_node'
|
25
28
|
require 'domoscio_rails/objective/objective_student'
|
26
29
|
require 'domoscio_rails/objective/objective'
|
30
|
+
require 'domoscio_rails/objective/subscription'
|
27
31
|
require 'domoscio_rails/tag/tag_edge'
|
28
32
|
require 'domoscio_rails/tag/tag_set'
|
29
33
|
require 'domoscio_rails/tag/tag'
|
@@ -32,6 +36,7 @@ require 'domoscio_rails/utils/gameplay_util'
|
|
32
36
|
require 'domoscio_rails/utils/recommendation_util'
|
33
37
|
require 'domoscio_rails/utils/review_util'
|
34
38
|
require 'domoscio_rails/utils/stats_util'
|
39
|
+
require 'domoscio_rails/scorm/scorm'
|
35
40
|
|
36
41
|
module DomoscioRails
|
37
42
|
# Configurable attributes and default values
|
@@ -79,7 +84,13 @@ module DomoscioRails
|
|
79
84
|
|
80
85
|
begin
|
81
86
|
raise_http_failure(uri, response, params)
|
82
|
-
|
87
|
+
|
88
|
+
if response['Content-Type'] == 'application/zip'
|
89
|
+
data = response
|
90
|
+
else
|
91
|
+
data = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body)
|
92
|
+
end
|
93
|
+
|
83
94
|
if store_tokens
|
84
95
|
DomoscioRails::AuthorizationToken::Manager.storage.store({
|
85
96
|
access_token: response['Accesstoken'],
|
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.
|
4
|
+
version: 0.4.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: 2022-
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/domoscio_rails/data/learning_session.rb
|
58
58
|
- lib/domoscio_rails/data/recommendation.rb
|
59
59
|
- lib/domoscio_rails/data/student.rb
|
60
|
+
- lib/domoscio_rails/data/student_group.rb
|
60
61
|
- lib/domoscio_rails/errors.rb
|
61
62
|
- lib/domoscio_rails/http_calls.rb
|
62
63
|
- lib/domoscio_rails/json.rb
|
@@ -65,11 +66,15 @@ files:
|
|
65
66
|
- lib/domoscio_rails/knowledge/knowledge_node.rb
|
66
67
|
- lib/domoscio_rails/knowledge/knowledge_node_content.rb
|
67
68
|
- lib/domoscio_rails/knowledge/knowledge_node_student.rb
|
69
|
+
- lib/domoscio_rails/objective/learning_program.rb
|
70
|
+
- lib/domoscio_rails/objective/learning_program_student.rb
|
68
71
|
- lib/domoscio_rails/objective/objective.rb
|
69
72
|
- lib/domoscio_rails/objective/objective_knowledge_node.rb
|
70
73
|
- lib/domoscio_rails/objective/objective_knowledge_node_student.rb
|
71
74
|
- lib/domoscio_rails/objective/objective_student.rb
|
75
|
+
- lib/domoscio_rails/objective/subscription.rb
|
72
76
|
- lib/domoscio_rails/resource.rb
|
77
|
+
- lib/domoscio_rails/scorm/scorm.rb
|
73
78
|
- lib/domoscio_rails/tag/tag.rb
|
74
79
|
- lib/domoscio_rails/tag/tag_edge.rb
|
75
80
|
- lib/domoscio_rails/tag/tag_set.rb
|
@@ -98,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
103
|
- !ruby/object:Gem::Version
|
99
104
|
version: '0'
|
100
105
|
requirements: []
|
101
|
-
rubygems_version: 3.1.
|
106
|
+
rubygems_version: 3.1.4
|
102
107
|
signing_key:
|
103
108
|
specification_version: 4
|
104
109
|
summary: Summary of DomoscioRailspec.
|