domoscio_rails 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
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
@@ -21,6 +21,7 @@ require 'domoscio_rails/knowledge/knowledge_graph'
|
|
21
21
|
require 'domoscio_rails/knowledge/knowledge_node_content'
|
22
22
|
require 'domoscio_rails/knowledge/knowledge_node_student'
|
23
23
|
require 'domoscio_rails/knowledge/knowledge_node'
|
24
|
+
require 'domoscio_rails/objective/learning_program_student'
|
24
25
|
require 'domoscio_rails/objective/learning_program'
|
25
26
|
require 'domoscio_rails/objective/objective_knowledge_node_student'
|
26
27
|
require 'domoscio_rails/objective/objective_knowledge_node'
|
@@ -35,6 +36,7 @@ require 'domoscio_rails/utils/gameplay_util'
|
|
35
36
|
require 'domoscio_rails/utils/recommendation_util'
|
36
37
|
require 'domoscio_rails/utils/review_util'
|
37
38
|
require 'domoscio_rails/utils/stats_util'
|
39
|
+
require 'domoscio_rails/scorm/scorm'
|
38
40
|
|
39
41
|
module DomoscioRails
|
40
42
|
# Configurable attributes and default values
|
@@ -82,7 +84,13 @@ module DomoscioRails
|
|
82
84
|
|
83
85
|
begin
|
84
86
|
raise_http_failure(uri, response, params)
|
85
|
-
|
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
|
+
|
86
94
|
if store_tokens
|
87
95
|
DomoscioRails::AuthorizationToken::Manager.storage.store({
|
88
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-03-
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -67,12 +67,14 @@ files:
|
|
67
67
|
- lib/domoscio_rails/knowledge/knowledge_node_content.rb
|
68
68
|
- lib/domoscio_rails/knowledge/knowledge_node_student.rb
|
69
69
|
- lib/domoscio_rails/objective/learning_program.rb
|
70
|
+
- lib/domoscio_rails/objective/learning_program_student.rb
|
70
71
|
- lib/domoscio_rails/objective/objective.rb
|
71
72
|
- lib/domoscio_rails/objective/objective_knowledge_node.rb
|
72
73
|
- lib/domoscio_rails/objective/objective_knowledge_node_student.rb
|
73
74
|
- lib/domoscio_rails/objective/objective_student.rb
|
74
75
|
- lib/domoscio_rails/objective/subscription.rb
|
75
76
|
- lib/domoscio_rails/resource.rb
|
77
|
+
- lib/domoscio_rails/scorm/scorm.rb
|
76
78
|
- lib/domoscio_rails/tag/tag.rb
|
77
79
|
- lib/domoscio_rails/tag/tag_edge.rb
|
78
80
|
- lib/domoscio_rails/tag/tag_set.rb
|
@@ -101,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
103
|
- !ruby/object:Gem::Version
|
102
104
|
version: '0'
|
103
105
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
106
|
+
rubygems_version: 3.1.4
|
105
107
|
signing_key:
|
106
108
|
specification_version: 4
|
107
109
|
summary: Summary of DomoscioRailspec.
|