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: '0081b12374fec380802cdc569ddf193600cb69ffdb8f30b131c60de9a6d62e31'
4
- data.tar.gz: 5e6cf77d9d451dbf4e7bc3f482a1f1d0a4d169735487cc1c9c02fe0a2943d7ed
3
+ metadata.gz: 12f7caee1406f22da61753a940e728fb23ab5b72881be2b9ebb870cad8b378f7
4
+ data.tar.gz: 1871d210f8a2626cf8910cdfbae4dcff912f6120ab14a7f52c19b01fb3421b4d
5
5
  SHA512:
6
- metadata.gz: ae1e92b8fd9d428b3ba6115a7c2d2e04c2f6cb457fdc8e1ab0ac83c1aa06dd975752682a806470615a7ee513569885a2fc126076c7467fa54c93fa9f72f8a4fe
7
- data.tar.gz: 9936df32392eaa36359f82bbeebf506e77d7e6d98d4cdf5f66237b0b22eecbf81b52e1ed663cd0256d08dbc2b6ad1e0d2c73a88dbc76367870cd21fad3dc3b99
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
@@ -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.4'.freeze
2
+ VERSION = '0.4.5'.freeze
3
3
  end
@@ -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
- 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
+
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
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-28 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
@@ -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.2.22
106
+ rubygems_version: 3.1.4
105
107
  signing_key:
106
108
  specification_version: 4
107
109
  summary: Summary of DomoscioRailspec.