domoscio_rails 0.2.23 → 0.2.24
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/MIT-LICENSE +0 -0
 - data/README.rdoc +0 -0
 - data/Rakefile +0 -0
 - data/lib/domoscio_rails.rb +1 -27
 - data/lib/domoscio_rails.tbz +0 -0
 - data/lib/domoscio_rails/adaptative/deterministic/path_rule.rb +0 -0
 - data/lib/domoscio_rails/adaptative/deterministic/rule_condition.rb +0 -0
 - data/lib/domoscio_rails/adaptative/deterministic/rule_input.rb +0 -0
 - data/lib/domoscio_rails/adaptative/deterministic/rule_output.rb +0 -0
 - data/lib/domoscio_rails/adaptative/predictive/objective.rb +0 -0
 - data/lib/domoscio_rails/adaptative/predictive/objective_knowledge_node.rb +0 -0
 - data/lib/domoscio_rails/adaptative/predictive/objective_knowledge_node_student.rb +0 -0
 - data/lib/domoscio_rails/adaptative/predictive/objective_student.rb +0 -0
 - data/lib/domoscio_rails/adaptative/recommendation.rb +0 -0
 - data/lib/domoscio_rails/admin/instance.rb +0 -0
 - data/lib/domoscio_rails/authorization_token.rb +0 -0
 - data/lib/domoscio_rails/content/content.rb +0 -0
 - data/lib/domoscio_rails/content/knowledge_node_content.rb +0 -0
 - data/lib/domoscio_rails/data/event.rb +0 -0
 - data/lib/domoscio_rails/data/knowledge_node_student.rb +0 -0
 - data/lib/domoscio_rails/data/learning_session.rb +0 -0
 - data/lib/domoscio_rails/data/result.rb +0 -0
 - data/lib/domoscio_rails/errors.rb +0 -0
 - data/lib/domoscio_rails/http_calls.rb +0 -0
 - data/lib/domoscio_rails/json.rb +0 -0
 - data/lib/domoscio_rails/knowledge/knowledge_edge.rb +0 -0
 - data/lib/domoscio_rails/knowledge/knowledge_graph.rb +0 -0
 - data/lib/domoscio_rails/knowledge/knowledge_node.rb +0 -0
 - data/lib/domoscio_rails/metadata/delta_object.rb +0 -0
 - data/lib/domoscio_rails/metadata/tag.rb +0 -0
 - data/lib/domoscio_rails/metadata/tag_edge.rb +0 -0
 - data/lib/domoscio_rails/metadata/tag_set.rb +0 -0
 - data/lib/domoscio_rails/metadata/tagging.rb +0 -0
 - data/lib/domoscio_rails/path/learning_path.rb +0 -0
 - data/lib/domoscio_rails/resource.rb +0 -0
 - data/lib/domoscio_rails/student/student.rb +0 -0
 - data/lib/domoscio_rails/student/student_cluster.rb +0 -0
 - data/lib/domoscio_rails/utils/alerts_util.rb +0 -0
 - data/lib/domoscio_rails/utils/gameplay_util.rb +0 -0
 - data/lib/domoscio_rails/utils/recommendation_util.rb +0 -0
 - data/lib/domoscio_rails/utils/review_util.rb +0 -0
 - data/lib/domoscio_rails/version.rb +1 -1
 - data/lib/tasks/domoscio_rails_tasks.rake +0 -0
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 80036d711a50e0323cbd9f9fa260ebc9c9c6d194060f68b8be05d2ee7eab4206
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 944991129c4a01704a0b24776d605ff926f408b48e17e998b1a525bcf43a469b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ae6d858a4ca54802ff2504ee268fcacf8915cc45832fad48ba59c70daf1f49567112f5647b68dded5ab0056cef403cb77e52e9a06f341fc52f9ee45d52babd98
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 01f77a383197e1e91b4b4c196d40098b44fec5a60eb2ec87a06ed34bde89633053000799b2920200d38b3b14266dda6e64cba292b34fdd726d54a4f1feb4109f
         
     | 
    
        data/MIT-LICENSE
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/README.rdoc
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/Rakefile
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/lib/domoscio_rails.rb
    CHANGED
    
    | 
         @@ -45,9 +45,7 @@ require 'domoscio_rails/metadata/delta_object' 
     | 
|
| 
       45 
45 
     | 
    
         
             
            module DomoscioRails
         
     | 
| 
       46 
46 
     | 
    
         | 
| 
       47 
47 
     | 
    
         
             
              class Configuration
         
     | 
| 
       48 
     | 
    
         
            -
                attr_accessor :preproduction, :test, :dev, :root_url,
         
     | 
| 
       49 
     | 
    
         
            -
                :client_id, :client_passphrase, :client_identifier,
         
     | 
| 
       50 
     | 
    
         
            -
                :temp_dir, :disabled, :version
         
     | 
| 
      
 48 
     | 
    
         
            +
                attr_accessor :preproduction, :test, :dev, :root_url, :client_id, :client_passphrase, :temp_dir, :disabled, :version
         
     | 
| 
       51 
49 
     | 
    
         | 
| 
       52 
50 
     | 
    
         
             
                def disabled
         
     | 
| 
       53 
51 
     | 
    
         
             
                  @disabled || false
         
     | 
| 
         @@ -141,24 +139,6 @@ module DomoscioRails 
     | 
|
| 
       141 
139 
     | 
    
         | 
| 
       142 
140 
     | 
    
         
             
                  end
         
     | 
| 
       143 
141 
     | 
    
         
             
                end
         
     | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
     | 
    
         
            -
                ############### TEMP!!!! #######################################################
         
     | 
| 
       146 
     | 
    
         
            -
                #pp method, uri.request_uri, params #, filters, headers
         
     | 
| 
       147 
     | 
    
         
            -
                #pp res, data
         
     | 
| 
       148 
     | 
    
         
            -
                #puts
         
     | 
| 
       149 
     | 
    
         
            -
             
     | 
| 
       150 
     | 
    
         
            -
                # if (!(res.is_a? Net::HTTPOK))
         
     | 
| 
       151 
     | 
    
         
            -
                #   ex = DomoscioRails::ResponseError.new(uri, res.code, data)
         
     | 
| 
       152 
     | 
    
         
            -
                #   ############## TEMP!!!! ########################################################
         
     | 
| 
       153 
     | 
    
         
            -
                #   #pp ex, data
         
     | 
| 
       154 
     | 
    
         
            -
                #   raise ex
         
     | 
| 
       155 
     | 
    
         
            -
                # end
         
     | 
| 
       156 
     | 
    
         
            -
             
     | 
| 
       157 
     | 
    
         
            -
                # copy pagination info if any
         
     | 
| 
       158 
     | 
    
         
            -
                # ['x-number-of-pages', 'x-number-of-items'].each { |k|
         
     | 
| 
       159 
     | 
    
         
            -
            #       filters[k.gsub('x-number-of-', 'total_')] = res[k].to_i if res[k]
         
     | 
| 
       160 
     | 
    
         
            -
            #     }
         
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
142 
     | 
    
         
             
                data
         
     | 
| 
       163 
143 
     | 
    
         
             
              end
         
     | 
| 
       164 
144 
     | 
    
         | 
| 
         @@ -194,7 +174,6 @@ module DomoscioRails 
     | 
|
| 
       194 
174 
     | 
    
         | 
| 
       195 
175 
     | 
    
         
             
              def self.request_headers
         
     | 
| 
       196 
176 
     | 
    
         
             
                auth_token = DomoscioRails::AuthorizationToken::Manager.get_token
         
     | 
| 
       197 
     | 
    
         
            -
                client_identifier = DomoscioRails.configuration.client_identifier
         
     | 
| 
       198 
177 
     | 
    
         | 
| 
       199 
178 
     | 
    
         
             
                if !auth_token.is_a? String
         
     | 
| 
       200 
179 
     | 
    
         
             
                  headers = {
         
     | 
| 
         @@ -210,11 +189,6 @@ module DomoscioRails 
     | 
|
| 
       210 
189 
     | 
    
         
             
                    'Content-Type' => 'application/json'
         
     | 
| 
       211 
190 
     | 
    
         
             
                  }
         
     | 
| 
       212 
191 
     | 
    
         
             
                end
         
     | 
| 
       213 
     | 
    
         
            -
                headers['VizToken'] = client_identifier if !client_identifier.nil?
         
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
192 
     | 
    
         
             
                headers
         
     | 
| 
       216 
     | 
    
         
            -
             
     | 
| 
       217 
193 
     | 
    
         
             
              end
         
     | 
| 
       218 
     | 
    
         
            -
             
     | 
| 
       219 
     | 
    
         
            -
             
     | 
| 
       220 
194 
     | 
    
         
             
            end
         
     | 
    
        data/lib/domoscio_rails.tbz
    CHANGED
    
    | 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
    
        data/lib/domoscio_rails/json.rb
    CHANGED
    
    | 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
    
        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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.24
         
     | 
| 
       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 
     | 
    
         
            +
            date: 2020-11-04 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     | 
| 
         @@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       93 
93 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       94 
94 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       95 
95 
     | 
    
         
             
            requirements: []
         
     | 
| 
       96 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 96 
     | 
    
         
            +
            rubygems_version: 3.1.2
         
     | 
| 
       97 
97 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       98 
98 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       99 
99 
     | 
    
         
             
            summary: Summary of DomoscioRails.
         
     |