domoscio_rails 0.0.13 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c18c08629b6963777f7d9c755c677b9cbaa0382f
4
+ data.tar.gz: c7d3ffb47bfcbd1703d2a85b5e5f3466e5e0dbf2
5
+ SHA512:
6
+ metadata.gz: 7173077e84c8c3271f30caee47e27c841466dc8a96dc7ad371b57ea8e5f85633c80f1b0f4f57ddb650823a08e5fb4ec4e7ad9c2f7baec3de64578750dc98a67e
7
+ data.tar.gz: cb8bd3a3dc35fab4b866e8d3b99763b07ad6c6b514a1ec7f8af58f4681947ab16b0cfb3165faa170ecd5bbca40f6307b820a07619778c423b247d25325ad0784
@@ -12,11 +12,13 @@ require 'domoscio_rails/authorization_token'
12
12
  # resources
13
13
  require 'domoscio_rails/http_calls'
14
14
  require 'domoscio_rails/resource'
15
- require 'domoscio_rails/adaptative/path_rule'
16
- require 'domoscio_rails/adaptative/rule_input'
17
- require 'domoscio_rails/adaptative/rule_output'
18
- require 'domoscio_rails/adaptative/rule_condition'
15
+ require 'domoscio_rails/adaptative/deterministic/path_rule'
16
+ require 'domoscio_rails/adaptative/deterministic/rule_input'
17
+ require 'domoscio_rails/adaptative/deterministic/rule_output'
18
+ require 'domoscio_rails/adaptative/deterministic/rule_condition'
19
+ require 'domoscio_rails/adaptative/predictive/objective'
19
20
  require 'domoscio_rails/adaptative/recommendation'
21
+ require 'domoscio_rails/adaptative/path/learning_path'
20
22
  require 'domoscio_rails/admin/user'
21
23
  require 'domoscio_rails/student/student'
22
24
  require 'domoscio_rails/knowledge/knowledge_graph'
@@ -36,7 +38,7 @@ module DomoscioRails
36
38
  class Configuration
37
39
  attr_accessor :preproduction, :root_url,
38
40
  :client_id, :client_passphrase,
39
- :temp_dir, :disabled
41
+ :temp_dir, :disabled, :version
40
42
 
41
43
  def disabled
42
44
  @disabled || false
@@ -45,9 +47,13 @@ module DomoscioRails
45
47
  def preproduction
46
48
  @preproduction || false
47
49
  end
50
+
51
+ def version
52
+ @version || 1
53
+ end
48
54
 
49
55
  def root_url
50
- @root_url || (@preproduction == true ? "http://stats-engine.domoscio.com" : "http://localhost:3001/")
56
+ @root_url || (@preproduction == true ? ( @version > 1 ? ("http://api.domoscio.com" : "http://stats-engine-api.domoscio.com" )) : "http://localhost:3001/")
51
57
  end
52
58
  end
53
59
 
@@ -0,0 +1,9 @@
1
+ module DomoscioRails
2
+ # An objective.
3
+ class Objective < Resource
4
+ include DomoscioRails::HTTPCalls::Create
5
+ include DomoscioRails::HTTPCalls::Fetch
6
+ include DomoscioRails::HTTPCalls::Update
7
+ include DomoscioRails::HTTPCalls::Destroy
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ module DomoscioRails
2
+ # A LearningPath.
3
+ class LearningPath < Resource
4
+ include DomoscioRails::HTTPCalls::Fetch
5
+ end
6
+ end
@@ -11,7 +11,7 @@ module DomoscioRails
11
11
  raise NotImplementedError.new('Resource is an abstract class. Do not use it directly.')
12
12
  end
13
13
 
14
- build_url = "/v1/instances/#{DomoscioRails.configuration.client_id}"
14
+ build_url = "/v#{DomoscioRails.configuration.version}/instances/#{DomoscioRails.configuration.client_id}"
15
15
  if !on_self
16
16
  build_url << "/#{class_name.underscore}s"
17
17
  if util_name
@@ -1,3 +1,3 @@
1
1
  module DomoscioRails
2
- VERSION = "0.0.13"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,42 +1,42 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: domoscio_rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.13
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Benoit Praly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2016-01-26 00:00:00 +01:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
17
20
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "3.2"
24
- version:
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
25
27
  description: Description of DomoscioRails.
26
- email:
28
+ email:
27
29
  - benoit.praly@domoscio.com
28
30
  executables: []
29
-
30
31
  extensions: []
31
-
32
32
  extra_rdoc_files: []
33
-
34
- files:
35
- - lib/domoscio_rails/adaptative/path_rule.rb
33
+ files:
34
+ - lib/domoscio_rails/adaptative/deterministic/path_rule.rb
35
+ - lib/domoscio_rails/adaptative/deterministic/rule_condition.rb
36
+ - lib/domoscio_rails/adaptative/deterministic/rule_input.rb
37
+ - lib/domoscio_rails/adaptative/deterministic/rule_output.rb
38
+ - lib/domoscio_rails/adaptative/predictive/objective.rb
36
39
  - lib/domoscio_rails/adaptative/recommendation.rb
37
- - lib/domoscio_rails/adaptative/rule_condition.rb
38
- - lib/domoscio_rails/adaptative/rule_input.rb
39
- - lib/domoscio_rails/adaptative/rule_output.rb
40
40
  - lib/domoscio_rails/admin/instance.rb
41
41
  - lib/domoscio_rails/admin/user.rb
42
42
  - lib/domoscio_rails/authorization_token.rb
@@ -53,6 +53,7 @@ files:
53
53
  - lib/domoscio_rails/metadata/tag_edge.rb
54
54
  - lib/domoscio_rails/metadata/tag_set.rb
55
55
  - lib/domoscio_rails/metadata/tagging.rb
56
+ - lib/domoscio_rails/path/learning_path.rb
56
57
  - lib/domoscio_rails/resource.rb
57
58
  - lib/domoscio_rails/student/student.rb
58
59
  - lib/domoscio_rails/utils/review_util.rb
@@ -63,33 +64,28 @@ files:
63
64
  - MIT-LICENSE
64
65
  - Rakefile
65
66
  - README.rdoc
66
- has_rdoc: true
67
67
  homepage: http://www.domoscio.com
68
- licenses:
68
+ licenses:
69
69
  - MIT
70
+ metadata: {}
70
71
  post_install_message:
71
72
  rdoc_options: []
72
-
73
- require_paths:
73
+ require_paths:
74
74
  - lib
75
- required_ruby_version: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
80
- version:
81
- required_rubygems_version: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- version: "0"
86
- version:
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
87
85
  requirements: []
88
-
89
86
  rubyforge_project:
90
- rubygems_version: 1.3.5
87
+ rubygems_version: 2.0.14.1
91
88
  signing_key:
92
- specification_version: 3
89
+ specification_version: 4
93
90
  summary: Summary of DomoscioRails.
94
91
  test_files: []
95
-