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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08866a1127ae568832a117fb457edb8e4226e7bb44a43ac44c6ea1fce170b93e'
4
- data.tar.gz: c14755b4ae0c66e4689c92782c516350fed8f7c09531a1d96e760d1dad01f04d
3
+ metadata.gz: 12f7caee1406f22da61753a940e728fb23ab5b72881be2b9ebb870cad8b378f7
4
+ data.tar.gz: 1871d210f8a2626cf8910cdfbae4dcff912f6120ab14a7f52c19b01fb3421b4d
5
5
  SHA512:
6
- metadata.gz: 7acb60e8e5b7a9e028e996ced65d694f32d72cebac1706d22a264a8b75e83afabb1992605f191f0d0ef167d6a95a24ec7e6d18e78705cd7386202d96a1aa7cb2
7
- data.tar.gz: 3b19813c8511d09ee6e52ed3946580ba2975ecb32d7b94318319e4c4b434195883e2b6ca7de549b0a45164e723d8254993a357b7f718bb30e439aac24dc288e7
6
+ metadata.gz: 917fad865ac84b56dc507399726f74f57fb791acac5f9d376616a69e51bc9af357f5d515180657c349f6f521c8c1b4391c2e353c4e5e6c5fdf1242fdd8e3ad1e
7
+ data.tar.gz: 81da6575de8e6798791d27b848de00e51f287650189e49f18fcb543e2f04f91bdb9f2ca884588358194466c6aba302201a2202250d086a9f308834698a3230d8
@@ -0,0 +1,8 @@
1
+ module DomoscioRails
2
+ class StudentGroup < Resource
3
+ include DomoscioRails::HTTPCalls::Create
4
+ include DomoscioRails::HTTPCalls::Fetch
5
+ include DomoscioRails::HTTPCalls::Destroy
6
+ include DomoscioRails::HTTPCalls::Update
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module DomoscioRails
2
+ class LearningProgram < Resource
3
+ include DomoscioRails::HTTPCalls::Create
4
+ include DomoscioRails::HTTPCalls::Fetch
5
+ include DomoscioRails::HTTPCalls::Destroy
6
+ include DomoscioRails::HTTPCalls::Update
7
+ end
8
+ end
@@ -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
@@ -4,5 +4,6 @@ module DomoscioRails
4
4
  include DomoscioRails::HTTPCalls::Fetch
5
5
  include DomoscioRails::HTTPCalls::Destroy
6
6
  include DomoscioRails::HTTPCalls::Update
7
+ include DomoscioRails::HTTPCalls::Util
7
8
  end
8
9
  end
@@ -0,0 +1,8 @@
1
+ module DomoscioRails
2
+ class Subscription < Resource
3
+ include DomoscioRails::HTTPCalls::Create
4
+ include DomoscioRails::HTTPCalls::Fetch
5
+ include DomoscioRails::HTTPCalls::Destroy
6
+ include DomoscioRails::HTTPCalls::Util
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module DomoscioRails
2
+ class Scorm < Resource
3
+ include DomoscioRails::HTTPCalls::Create
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module DomoscioRails
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.5'.freeze
3
3
  end
@@ -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
- data = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body)
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.1
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-01-26 00:00:00.000000000 Z
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.2
106
+ rubygems_version: 3.1.4
102
107
  signing_key:
103
108
  specification_version: 4
104
109
  summary: Summary of DomoscioRailspec.