learnosity-sdk 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +5 -5
  2. data/.github/PULL_REQUEST_TEMPLATE.md +13 -0
  3. data/.gitignore +1 -0
  4. data/.travis.yml +15 -5
  5. data/CONTRIBUTING.md +14 -0
  6. data/ChangeLog.md +18 -0
  7. data/LICENSE.md +141 -0
  8. data/Makefile +69 -0
  9. data/README.md +230 -186
  10. data/REFERENCE.md +249 -0
  11. data/Rakefile +9 -0
  12. data/docs/images/apache-license.svg +20 -0
  13. data/docs/images/downloads.svg +20 -0
  14. data/docs/images/image-assessment-retrieval.png +0 -0
  15. data/docs/images/image-concept-overview.png +0 -0
  16. data/docs/images/image-logo-graphic.png +0 -0
  17. data/docs/images/image-quickstart-examples-assessment.png +0 -0
  18. data/docs/images/image-quickstart-index.png +0 -0
  19. data/docs/images/image-signed-request-creation.png +0 -0
  20. data/docs/quickstart/css/style.css +113 -0
  21. data/{examples → docs/quickstart}/lrn-sdk-rails/Gemfile +2 -2
  22. data/docs/quickstart/lrn-sdk-rails/app/controllers/author_controller.rb +179 -0
  23. data/docs/quickstart/lrn-sdk-rails/app/controllers/authoraide_controller.rb +32 -0
  24. data/docs/quickstart/lrn-sdk-rails/app/controllers/index_controller.rb +9 -0
  25. data/docs/quickstart/lrn-sdk-rails/app/controllers/items_controller.rb +33 -0
  26. data/docs/quickstart/lrn-sdk-rails/app/controllers/questions_controller.rb +44 -0
  27. data/docs/quickstart/lrn-sdk-rails/app/controllers/reports_controller.rb +32 -0
  28. data/docs/quickstart/lrn-sdk-rails/app/views/author/index.html.erb +14 -0
  29. data/docs/quickstart/lrn-sdk-rails/app/views/authoraide/index.html.erb +6 -0
  30. data/docs/quickstart/lrn-sdk-rails/app/views/index/index.html.erb +38 -0
  31. data/{examples/lrn-sdk-rails/app/views/index → docs/quickstart/lrn-sdk-rails/app/views/items}/index.html.erb +2 -5
  32. data/docs/quickstart/lrn-sdk-rails/app/views/questions/index.html.erb +6 -0
  33. data/docs/quickstart/lrn-sdk-rails/app/views/reports/index.html.erb +14 -0
  34. data/docs/quickstart/lrn-sdk-rails/config/application.rb +24 -0
  35. data/docs/quickstart/lrn-sdk-rails/config/routes.rb +12 -0
  36. data/examples/simple/init_data.rb +6 -4
  37. data/examples/simple/init_items.rb +6 -4
  38. data/learnosity-sdk.gemspec +14 -14
  39. data/lib/learnosity/sdk/request/init.rb +13 -12
  40. data/lib/learnosity/sdk/version.rb +1 -1
  41. metadata +122 -101
  42. data/LICENSE +0 -201
  43. data/examples/lrn-sdk-rails/README.md +0 -24
  44. data/examples/lrn-sdk-rails/app/controllers/index_controller.rb +0 -106
  45. data/examples/lrn-sdk-rails/config/application.rb +0 -15
  46. data/examples/lrn-sdk-rails/config/routes.rb +0 -5
  47. /data/{examples → docs/quickstart}/lrn-sdk-rails/.gitignore +0 -0
  48. /data/{examples → docs/quickstart}/lrn-sdk-rails/Rakefile +0 -0
  49. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/config/manifest.js +0 -0
  50. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/images/.keep +0 -0
  51. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/javascripts/application.js +0 -0
  52. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/javascripts/cable.js +0 -0
  53. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/javascripts/channels/.keep +0 -0
  54. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/javascripts/index.coffee +0 -0
  55. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/stylesheets/application.css +0 -0
  56. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/assets/stylesheets/index.scss +0 -0
  57. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/channels/application_cable/channel.rb +0 -0
  58. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/channels/application_cable/connection.rb +0 -0
  59. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/controllers/application_controller.rb +0 -0
  60. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/controllers/concerns/.keep +0 -0
  61. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/helpers/application_helper.rb +0 -0
  62. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/helpers/index_helper.rb +0 -0
  63. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/jobs/application_job.rb +0 -0
  64. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/mailers/application_mailer.rb +0 -0
  65. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/models/application_record.rb +0 -0
  66. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/models/concerns/.keep +0 -0
  67. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/views/layouts/application.html.erb +0 -0
  68. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/views/layouts/mailer.html.erb +0 -0
  69. /data/{examples → docs/quickstart}/lrn-sdk-rails/app/views/layouts/mailer.text.erb +0 -0
  70. /data/{examples → docs/quickstart}/lrn-sdk-rails/bin/bundle +0 -0
  71. /data/{examples → docs/quickstart}/lrn-sdk-rails/bin/rails +0 -0
  72. /data/{examples → docs/quickstart}/lrn-sdk-rails/bin/rake +0 -0
  73. /data/{examples → docs/quickstart}/lrn-sdk-rails/bin/setup +0 -0
  74. /data/{examples → docs/quickstart}/lrn-sdk-rails/bin/spring +0 -0
  75. /data/{examples → docs/quickstart}/lrn-sdk-rails/bin/update +0 -0
  76. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/boot.rb +0 -0
  77. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/cable.yml +0 -0
  78. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/database.yml +0 -0
  79. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/environment.rb +0 -0
  80. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/environments/development.rb +0 -0
  81. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/environments/production.rb +0 -0
  82. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/environments/test.rb +0 -0
  83. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/application_controller_renderer.rb +0 -0
  84. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/assets.rb +0 -0
  85. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/backtrace_silencers.rb +0 -0
  86. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/cookies_serializer.rb +0 -0
  87. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/filter_parameter_logging.rb +0 -0
  88. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/inflections.rb +0 -0
  89. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/mime_types.rb +0 -0
  90. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/new_framework_defaults.rb +0 -0
  91. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/session_store.rb +0 -0
  92. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/initializers/wrap_parameters.rb +0 -0
  93. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/locales/en.yml +0 -0
  94. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/puma.rb +0 -0
  95. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/secrets.yml +0 -0
  96. /data/{examples → docs/quickstart}/lrn-sdk-rails/config/spring.rb +0 -0
  97. /data/{examples → docs/quickstart}/lrn-sdk-rails/config.ru +0 -0
  98. /data/{examples → docs/quickstart}/lrn-sdk-rails/db/seeds.rb +0 -0
  99. /data/{examples → docs/quickstart}/lrn-sdk-rails/lib/assets/.keep +0 -0
  100. /data/{examples → docs/quickstart}/lrn-sdk-rails/lib/tasks/.keep +0 -0
  101. /data/{examples → docs/quickstart}/lrn-sdk-rails/log/.keep +0 -0
  102. /data/{examples → docs/quickstart}/lrn-sdk-rails/public/404.html +0 -0
  103. /data/{examples → docs/quickstart}/lrn-sdk-rails/public/422.html +0 -0
  104. /data/{examples → docs/quickstart}/lrn-sdk-rails/public/500.html +0 -0
  105. /data/{examples → docs/quickstart}/lrn-sdk-rails/public/apple-touch-icon-precomposed.png +0 -0
  106. /data/{examples → docs/quickstart}/lrn-sdk-rails/public/apple-touch-icon.png +0 -0
  107. /data/{examples → docs/quickstart}/lrn-sdk-rails/public/favicon.ico +0 -0
  108. /data/{examples → docs/quickstart}/lrn-sdk-rails/public/robots.txt +0 -0
  109. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/controllers/.keep +0 -0
  110. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/controllers/index_controller_test.rb +0 -0
  111. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/fixtures/.keep +0 -0
  112. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/fixtures/files/.keep +0 -0
  113. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/helpers/.keep +0 -0
  114. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/integration/.keep +0 -0
  115. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/mailers/.keep +0 -0
  116. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/models/.keep +0 -0
  117. /data/{examples → docs/quickstart}/lrn-sdk-rails/test/test_helper.rb +0 -0
  118. /data/{examples → docs/quickstart}/lrn-sdk-rails/tmp/.keep +0 -0
  119. /data/{examples → docs/quickstart}/lrn-sdk-rails/vendor/assets/javascripts/.keep +0 -0
  120. /data/{examples → docs/quickstart}/lrn-sdk-rails/vendor/assets/stylesheets/.keep +0 -0
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learnosity-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Mehani
8
8
  - learnosity
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-01-08 00:00:00.000000000 Z
12
+ date: 2024-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-uname
@@ -29,45 +29,45 @@ dependencies:
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '2.0'
34
+ version: 2.2.10
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '2.0'
41
+ version: 2.2.10
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '13.0'
48
+ version: 12.3.3
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '13.0'
55
+ version: 12.3.3
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '3.9'
62
+ version: '3.0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.9'
70
- description:
69
+ version: '3.0'
70
+ description:
71
71
  email:
72
72
  - olivier.mehani@learnosity.com
73
73
  - licenses@learnosity.com
@@ -76,96 +76,118 @@ extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
78
  - ".codeclimate.yml"
79
+ - ".github/PULL_REQUEST_TEMPLATE.md"
79
80
  - ".gitignore"
80
81
  - ".rspec"
81
82
  - ".travis.yml"
83
+ - CONTRIBUTING.md
82
84
  - ChangeLog.md
83
85
  - Gemfile
84
- - LICENSE
86
+ - LICENSE.md
87
+ - Makefile
85
88
  - README.md
89
+ - REFERENCE.md
86
90
  - Rakefile
87
91
  - bin/console
88
92
  - bin/setup
89
- - examples/lrn-sdk-rails/.gitignore
90
- - examples/lrn-sdk-rails/Gemfile
91
- - examples/lrn-sdk-rails/README.md
92
- - examples/lrn-sdk-rails/Rakefile
93
- - examples/lrn-sdk-rails/app/assets/config/manifest.js
94
- - examples/lrn-sdk-rails/app/assets/images/.keep
95
- - examples/lrn-sdk-rails/app/assets/javascripts/application.js
96
- - examples/lrn-sdk-rails/app/assets/javascripts/cable.js
97
- - examples/lrn-sdk-rails/app/assets/javascripts/channels/.keep
98
- - examples/lrn-sdk-rails/app/assets/javascripts/index.coffee
99
- - examples/lrn-sdk-rails/app/assets/stylesheets/application.css
100
- - examples/lrn-sdk-rails/app/assets/stylesheets/index.scss
101
- - examples/lrn-sdk-rails/app/channels/application_cable/channel.rb
102
- - examples/lrn-sdk-rails/app/channels/application_cable/connection.rb
103
- - examples/lrn-sdk-rails/app/controllers/application_controller.rb
104
- - examples/lrn-sdk-rails/app/controllers/concerns/.keep
105
- - examples/lrn-sdk-rails/app/controllers/index_controller.rb
106
- - examples/lrn-sdk-rails/app/helpers/application_helper.rb
107
- - examples/lrn-sdk-rails/app/helpers/index_helper.rb
108
- - examples/lrn-sdk-rails/app/jobs/application_job.rb
109
- - examples/lrn-sdk-rails/app/mailers/application_mailer.rb
110
- - examples/lrn-sdk-rails/app/models/application_record.rb
111
- - examples/lrn-sdk-rails/app/models/concerns/.keep
112
- - examples/lrn-sdk-rails/app/views/index/index.html.erb
113
- - examples/lrn-sdk-rails/app/views/layouts/application.html.erb
114
- - examples/lrn-sdk-rails/app/views/layouts/mailer.html.erb
115
- - examples/lrn-sdk-rails/app/views/layouts/mailer.text.erb
116
- - examples/lrn-sdk-rails/bin/bundle
117
- - examples/lrn-sdk-rails/bin/rails
118
- - examples/lrn-sdk-rails/bin/rake
119
- - examples/lrn-sdk-rails/bin/setup
120
- - examples/lrn-sdk-rails/bin/spring
121
- - examples/lrn-sdk-rails/bin/update
122
- - examples/lrn-sdk-rails/config.ru
123
- - examples/lrn-sdk-rails/config/application.rb
124
- - examples/lrn-sdk-rails/config/boot.rb
125
- - examples/lrn-sdk-rails/config/cable.yml
126
- - examples/lrn-sdk-rails/config/database.yml
127
- - examples/lrn-sdk-rails/config/environment.rb
128
- - examples/lrn-sdk-rails/config/environments/development.rb
129
- - examples/lrn-sdk-rails/config/environments/production.rb
130
- - examples/lrn-sdk-rails/config/environments/test.rb
131
- - examples/lrn-sdk-rails/config/initializers/application_controller_renderer.rb
132
- - examples/lrn-sdk-rails/config/initializers/assets.rb
133
- - examples/lrn-sdk-rails/config/initializers/backtrace_silencers.rb
134
- - examples/lrn-sdk-rails/config/initializers/cookies_serializer.rb
135
- - examples/lrn-sdk-rails/config/initializers/filter_parameter_logging.rb
136
- - examples/lrn-sdk-rails/config/initializers/inflections.rb
137
- - examples/lrn-sdk-rails/config/initializers/mime_types.rb
138
- - examples/lrn-sdk-rails/config/initializers/new_framework_defaults.rb
139
- - examples/lrn-sdk-rails/config/initializers/session_store.rb
140
- - examples/lrn-sdk-rails/config/initializers/wrap_parameters.rb
141
- - examples/lrn-sdk-rails/config/locales/en.yml
142
- - examples/lrn-sdk-rails/config/puma.rb
143
- - examples/lrn-sdk-rails/config/routes.rb
144
- - examples/lrn-sdk-rails/config/secrets.yml
145
- - examples/lrn-sdk-rails/config/spring.rb
146
- - examples/lrn-sdk-rails/db/seeds.rb
147
- - examples/lrn-sdk-rails/lib/assets/.keep
148
- - examples/lrn-sdk-rails/lib/tasks/.keep
149
- - examples/lrn-sdk-rails/log/.keep
150
- - examples/lrn-sdk-rails/public/404.html
151
- - examples/lrn-sdk-rails/public/422.html
152
- - examples/lrn-sdk-rails/public/500.html
153
- - examples/lrn-sdk-rails/public/apple-touch-icon-precomposed.png
154
- - examples/lrn-sdk-rails/public/apple-touch-icon.png
155
- - examples/lrn-sdk-rails/public/favicon.ico
156
- - examples/lrn-sdk-rails/public/robots.txt
157
- - examples/lrn-sdk-rails/test/controllers/.keep
158
- - examples/lrn-sdk-rails/test/controllers/index_controller_test.rb
159
- - examples/lrn-sdk-rails/test/fixtures/.keep
160
- - examples/lrn-sdk-rails/test/fixtures/files/.keep
161
- - examples/lrn-sdk-rails/test/helpers/.keep
162
- - examples/lrn-sdk-rails/test/integration/.keep
163
- - examples/lrn-sdk-rails/test/mailers/.keep
164
- - examples/lrn-sdk-rails/test/models/.keep
165
- - examples/lrn-sdk-rails/test/test_helper.rb
166
- - examples/lrn-sdk-rails/tmp/.keep
167
- - examples/lrn-sdk-rails/vendor/assets/javascripts/.keep
168
- - examples/lrn-sdk-rails/vendor/assets/stylesheets/.keep
93
+ - docs/images/apache-license.svg
94
+ - docs/images/downloads.svg
95
+ - docs/images/image-assessment-retrieval.png
96
+ - docs/images/image-concept-overview.png
97
+ - docs/images/image-logo-graphic.png
98
+ - docs/images/image-quickstart-examples-assessment.png
99
+ - docs/images/image-quickstart-index.png
100
+ - docs/images/image-signed-request-creation.png
101
+ - docs/quickstart/css/style.css
102
+ - docs/quickstart/lrn-sdk-rails/.gitignore
103
+ - docs/quickstart/lrn-sdk-rails/Gemfile
104
+ - docs/quickstart/lrn-sdk-rails/Rakefile
105
+ - docs/quickstart/lrn-sdk-rails/app/assets/config/manifest.js
106
+ - docs/quickstart/lrn-sdk-rails/app/assets/images/.keep
107
+ - docs/quickstart/lrn-sdk-rails/app/assets/javascripts/application.js
108
+ - docs/quickstart/lrn-sdk-rails/app/assets/javascripts/cable.js
109
+ - docs/quickstart/lrn-sdk-rails/app/assets/javascripts/channels/.keep
110
+ - docs/quickstart/lrn-sdk-rails/app/assets/javascripts/index.coffee
111
+ - docs/quickstart/lrn-sdk-rails/app/assets/stylesheets/application.css
112
+ - docs/quickstart/lrn-sdk-rails/app/assets/stylesheets/index.scss
113
+ - docs/quickstart/lrn-sdk-rails/app/channels/application_cable/channel.rb
114
+ - docs/quickstart/lrn-sdk-rails/app/channels/application_cable/connection.rb
115
+ - docs/quickstart/lrn-sdk-rails/app/controllers/application_controller.rb
116
+ - docs/quickstart/lrn-sdk-rails/app/controllers/author_controller.rb
117
+ - docs/quickstart/lrn-sdk-rails/app/controllers/authoraide_controller.rb
118
+ - docs/quickstart/lrn-sdk-rails/app/controllers/concerns/.keep
119
+ - docs/quickstart/lrn-sdk-rails/app/controllers/index_controller.rb
120
+ - docs/quickstart/lrn-sdk-rails/app/controllers/items_controller.rb
121
+ - docs/quickstart/lrn-sdk-rails/app/controllers/questions_controller.rb
122
+ - docs/quickstart/lrn-sdk-rails/app/controllers/reports_controller.rb
123
+ - docs/quickstart/lrn-sdk-rails/app/helpers/application_helper.rb
124
+ - docs/quickstart/lrn-sdk-rails/app/helpers/index_helper.rb
125
+ - docs/quickstart/lrn-sdk-rails/app/jobs/application_job.rb
126
+ - docs/quickstart/lrn-sdk-rails/app/mailers/application_mailer.rb
127
+ - docs/quickstart/lrn-sdk-rails/app/models/application_record.rb
128
+ - docs/quickstart/lrn-sdk-rails/app/models/concerns/.keep
129
+ - docs/quickstart/lrn-sdk-rails/app/views/author/index.html.erb
130
+ - docs/quickstart/lrn-sdk-rails/app/views/authoraide/index.html.erb
131
+ - docs/quickstart/lrn-sdk-rails/app/views/index/index.html.erb
132
+ - docs/quickstart/lrn-sdk-rails/app/views/items/index.html.erb
133
+ - docs/quickstart/lrn-sdk-rails/app/views/layouts/application.html.erb
134
+ - docs/quickstart/lrn-sdk-rails/app/views/layouts/mailer.html.erb
135
+ - docs/quickstart/lrn-sdk-rails/app/views/layouts/mailer.text.erb
136
+ - docs/quickstart/lrn-sdk-rails/app/views/questions/index.html.erb
137
+ - docs/quickstart/lrn-sdk-rails/app/views/reports/index.html.erb
138
+ - docs/quickstart/lrn-sdk-rails/bin/bundle
139
+ - docs/quickstart/lrn-sdk-rails/bin/rails
140
+ - docs/quickstart/lrn-sdk-rails/bin/rake
141
+ - docs/quickstart/lrn-sdk-rails/bin/setup
142
+ - docs/quickstart/lrn-sdk-rails/bin/spring
143
+ - docs/quickstart/lrn-sdk-rails/bin/update
144
+ - docs/quickstart/lrn-sdk-rails/config.ru
145
+ - docs/quickstart/lrn-sdk-rails/config/application.rb
146
+ - docs/quickstart/lrn-sdk-rails/config/boot.rb
147
+ - docs/quickstart/lrn-sdk-rails/config/cable.yml
148
+ - docs/quickstart/lrn-sdk-rails/config/database.yml
149
+ - docs/quickstart/lrn-sdk-rails/config/environment.rb
150
+ - docs/quickstart/lrn-sdk-rails/config/environments/development.rb
151
+ - docs/quickstart/lrn-sdk-rails/config/environments/production.rb
152
+ - docs/quickstart/lrn-sdk-rails/config/environments/test.rb
153
+ - docs/quickstart/lrn-sdk-rails/config/initializers/application_controller_renderer.rb
154
+ - docs/quickstart/lrn-sdk-rails/config/initializers/assets.rb
155
+ - docs/quickstart/lrn-sdk-rails/config/initializers/backtrace_silencers.rb
156
+ - docs/quickstart/lrn-sdk-rails/config/initializers/cookies_serializer.rb
157
+ - docs/quickstart/lrn-sdk-rails/config/initializers/filter_parameter_logging.rb
158
+ - docs/quickstart/lrn-sdk-rails/config/initializers/inflections.rb
159
+ - docs/quickstart/lrn-sdk-rails/config/initializers/mime_types.rb
160
+ - docs/quickstart/lrn-sdk-rails/config/initializers/new_framework_defaults.rb
161
+ - docs/quickstart/lrn-sdk-rails/config/initializers/session_store.rb
162
+ - docs/quickstart/lrn-sdk-rails/config/initializers/wrap_parameters.rb
163
+ - docs/quickstart/lrn-sdk-rails/config/locales/en.yml
164
+ - docs/quickstart/lrn-sdk-rails/config/puma.rb
165
+ - docs/quickstart/lrn-sdk-rails/config/routes.rb
166
+ - docs/quickstart/lrn-sdk-rails/config/secrets.yml
167
+ - docs/quickstart/lrn-sdk-rails/config/spring.rb
168
+ - docs/quickstart/lrn-sdk-rails/db/seeds.rb
169
+ - docs/quickstart/lrn-sdk-rails/lib/assets/.keep
170
+ - docs/quickstart/lrn-sdk-rails/lib/tasks/.keep
171
+ - docs/quickstart/lrn-sdk-rails/log/.keep
172
+ - docs/quickstart/lrn-sdk-rails/public/404.html
173
+ - docs/quickstart/lrn-sdk-rails/public/422.html
174
+ - docs/quickstart/lrn-sdk-rails/public/500.html
175
+ - docs/quickstart/lrn-sdk-rails/public/apple-touch-icon-precomposed.png
176
+ - docs/quickstart/lrn-sdk-rails/public/apple-touch-icon.png
177
+ - docs/quickstart/lrn-sdk-rails/public/favicon.ico
178
+ - docs/quickstart/lrn-sdk-rails/public/robots.txt
179
+ - docs/quickstart/lrn-sdk-rails/test/controllers/.keep
180
+ - docs/quickstart/lrn-sdk-rails/test/controllers/index_controller_test.rb
181
+ - docs/quickstart/lrn-sdk-rails/test/fixtures/.keep
182
+ - docs/quickstart/lrn-sdk-rails/test/fixtures/files/.keep
183
+ - docs/quickstart/lrn-sdk-rails/test/helpers/.keep
184
+ - docs/quickstart/lrn-sdk-rails/test/integration/.keep
185
+ - docs/quickstart/lrn-sdk-rails/test/mailers/.keep
186
+ - docs/quickstart/lrn-sdk-rails/test/models/.keep
187
+ - docs/quickstart/lrn-sdk-rails/test/test_helper.rb
188
+ - docs/quickstart/lrn-sdk-rails/tmp/.keep
189
+ - docs/quickstart/lrn-sdk-rails/vendor/assets/javascripts/.keep
190
+ - docs/quickstart/lrn-sdk-rails/vendor/assets/stylesheets/.keep
169
191
  - examples/simple/init_data.rb
170
192
  - examples/simple/init_items.rb
171
193
  - learnosity-sdk.gemspec
@@ -180,7 +202,7 @@ licenses:
180
202
  - Apache-2.0
181
203
  metadata:
182
204
  allowed_push_host: https://rubygems.org
183
- post_install_message:
205
+ post_install_message:
184
206
  rdoc_options: []
185
207
  require_paths:
186
208
  - lib
@@ -195,9 +217,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
217
  - !ruby/object:Gem::Version
196
218
  version: '0'
197
219
  requirements: []
198
- rubyforge_project:
199
- rubygems_version: 2.5.2.3
200
- signing_key:
220
+ rubygems_version: 3.3.27
221
+ signing_key:
201
222
  specification_version: 4
202
223
  summary: SDK to interact with Learnosity APIs
203
224
  test_files: []
data/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "{}"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright {yyyy} {name of copyright owner}
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
@@ -1,24 +0,0 @@
1
- # README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
@@ -1,106 +0,0 @@
1
- require 'learnosity/sdk/request/init'
2
- require 'securerandom'
3
-
4
- class IndexController < ApplicationController
5
- @@security_packet = {
6
- # XXX: This is a Learnosity Demos consumer; replace it with your own consumer key
7
- 'consumer_key' => 'yis0TYCu7U9V4o7M',
8
- 'domain' => 'localhost'
9
- }
10
- # XXX: The consumer secret should be in a properly secured credential store, and *NEVER* checked in in revision control
11
- @@consumer_secret = '74c5fd430cf1242a527f6223aebd42d30464be22'
12
- @@items_request = {
13
- "activity_id" => "itemsassessdemo",
14
- "assess_inline" => true,
15
- "config" => {
16
- "administration" => {
17
- "options" => {"show_exit" => true, "show_extend" => true, "show_save" => true},
18
- "pwd" => "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"
19
- },
20
- "configuration" => {
21
- "fontsize" => "normal",
22
- "idle_timeout" => {"countdown_time" => 60, "interval" => 300},
23
- "lazyload" => false,
24
- "ondiscard_redirect_url" => "itemsapi_assess.php",
25
- "onsave_redirect_url" => "itemsapi_assess.php",
26
- "onsubmit_redirect_url" => "itemsapi_assess.php",
27
- "stylesheet" => "",
28
- "submit_criteria" => {"type" => "attempted"}
29
- },
30
- "ignore_question_attributes" => [""],
31
- "labelBundle" => {
32
- "answerMasking" => "Answer Eliminator",
33
- "colorScheme" => "Colour Scheme",
34
- "item" => "Question",
35
- "paletteInstructions" => "Instructions...colour"
36
- },
37
- "navigation" => {
38
- "auto_save" => {"saveIntervalDuration" => 500, "ui" => false},
39
- "item_count" => {"question_count_option" => false},
40
- "scroll_to_test" => false,
41
- "scroll_to_top" => false,
42
- "scrolling_indicator" => false,
43
- "show_accessibility" => {
44
- "show_colourscheme" => true,
45
- "show_fontsize" => true,
46
- "show_zoom" => true
47
- },
48
- "show_acknowledgements" => true,
49
- "show_answermasking" => true,
50
- "show_calculator" => false,
51
- "show_configuration" => false,
52
- "show_fullscreencontrol" => true,
53
- "show_intro" => true,
54
- "show_itemcount" => true,
55
- "show_next" => true,
56
- "show_outro" => true,
57
- "show_prev" => true,
58
- "show_progress" => true,
59
- "show_save" => false,
60
- "show_submit" => true,
61
- "show_title" => true,
62
- "skip_submit_confirmation" => false,
63
- "toc" => true,
64
- "transition" => "fade",
65
- "transition_speed" => 400,
66
- "warning_on_change" => false
67
- },
68
- "subtitle" => "Walter White",
69
- "time" => {
70
- "limit_type" => "soft",
71
- "max_time" => 1500,
72
- "show_pause" => true,
73
- "show_time" => true,
74
- "warning_time" => 120
75
- },
76
- "title" => "Demo activity - showcasing question types and assess options",
77
- "ui_style" => "main"
78
- },
79
- "items" => [
80
- "Demo3",
81
- "Demo4",
82
- "accessibility_demo_6",
83
- "Demo6",
84
- "Demo7",
85
- "Demo8",
86
- "Demo9",
87
- "Demo10",
88
- "audioplayer-demo-1"
89
- ],
90
- "name" => "Items API demo - assess activity",
91
- "rendering_type" => "assess",
92
- "session_id" => SecureRandom.uuid,
93
- "state" => "initial",
94
- "type" => "submit_practice",
95
- "user_id" => "$ANONYMIZED_USER_ID"
96
- }
97
-
98
- def index
99
- @init = Learnosity::Sdk::Request::Init.new(
100
- 'items',
101
- @@security_packet,
102
- @@consumer_secret,
103
- @@items_request
104
- )
105
- end
106
- end
@@ -1,15 +0,0 @@
1
- require_relative 'boot'
2
-
3
- require 'rails/all'
4
-
5
- # Require the gems listed in Gemfile, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(*Rails.groups)
8
-
9
- module LrnSdkRails
10
- class Application < Rails::Application
11
- # Settings in config/environments/* take precedence over those specified here.
12
- # Application configuration should go into files in config/initializers
13
- # -- all .rb files in that directory are automatically loaded.
14
- end
15
- end