Skip to content

Commit 6d5dd6c

Browse files
authored
Implements customizable deployment of cases with assessment questions (#49)
2 parents 95bac67 + a474cee commit 6d5dd6c

File tree

122 files changed

+4159
-1003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+4159
-1003
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flow-typed/*

.eslintrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
"afterOpening": "never"
6464
}],
6565
"no-use-before-define": 0,
66-
"react/prop-types": 0
66+
"react/prop-types": 0,
67+
"flowtype/require-valid-file-annotation": [
68+
2,
69+
"always", {
70+
"annotationStyle": "block"
71+
}
72+
],
73+
"jsx-a11y/no-autofocus": 0
6774
}
6875
}

.flowconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[ignore]
2+
.*/node_modules/styled-components/.*
23

34
[include]
45

@@ -7,14 +8,16 @@
78

89
[options]
910
module.system.node.resolve_dirname=node_modules
10-
module.system.node.resolve_dirname=javascript
11-
module.system.node.resolve_dirname=react
11+
module.system.node.resolve_dirname=app/javascript
1212
module.use_strict=true
13+
module.ignore_non_literal_requires=true
1314
module.name_mapper='.*\(.css\)' -> 'CSSModule'
1415
module.file_ext=.js
16+
module.file_ext=.jsx
1517
module.file_ext=.json
1618
module.file_ext=.css
1719

1820
esproposal.class_static_fields=enable
21+
esproposal.class_instance_fields=enable
1922
suppress_type=$FlowIssue
2023
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-8]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\).*\n

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.1

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ end
2929
group :development, :test do
3030
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
3131
gem 'byebug', platform: :mri
32+
gem 'pry'
3233

3334
gem 'rspec-rails', '~> 3.5'
3435
gem 'factory_girl_rails'
@@ -62,13 +63,14 @@ gem 'devise', '~> 4.1'
6263
gem 'devise-i18n'
6364
gem 'omniauth-facebook'
6465
gem 'omniauth-google-oauth2'
65-
gem 'omniauth-lti'
66+
gem 'ims-lti'
67+
gem 'omniauth-lti', github: 'cbothner/omniauth-lti'
6668
gem 'authority'
6769
gem 'rolify'
6870

6971
gem 'postmark-rails'
7072

71-
gem 'ahoy_matey'
73+
gem 'ahoy_matey', github: 'ankane/ahoy'
7274
gem 'groupdate'
7375

7476
gem 'trasto'

Gemfile.lock

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
GIT
2+
remote: git://github.com/ankane/ahoy.git
3+
revision: 07fb3866e38885e4a34092db22b88d5719cc9833
4+
specs:
5+
ahoy_matey (1.6.0)
6+
addressable
7+
browser (~> 2.0)
8+
geocoder
9+
rack-attack (< 6)
10+
railties
11+
referer-parser (>= 0.3.0)
12+
request_store
13+
safely_block (>= 0.1.1)
14+
user_agent_parser
15+
uuidtools
16+
17+
GIT
18+
remote: git://github.com/cbothner/omniauth-lti.git
19+
revision: 578245b0cabb755a209221ce1682667d9154ac4d
20+
specs:
21+
omniauth-lti (0.0.3)
22+
ims-lti (= 1.1.13)
23+
oauth (~> 0.5)
24+
omniauth
25+
126
GIT
227
remote: https://github.com/rails/webpacker
328
revision: a06421ffe300e4f32af186f09ed5d1c64b311f5e
@@ -50,17 +75,6 @@ GEM
5075
acts_as_list (0.7.6)
5176
activerecord (>= 3.0)
5277
addressable (2.4.0)
53-
ahoy_matey (1.5.2)
54-
addressable
55-
browser (~> 2.0)
56-
geocoder
57-
rack-attack (< 6)
58-
railties
59-
referer-parser (>= 0.3.0)
60-
request_store
61-
safely_block (>= 0.1.1)
62-
user_agent_parser
63-
uuidtools
6478
arel (7.1.1)
6579
authority (3.2.0)
6680
activesupport (>= 3.0.0)
@@ -73,8 +87,8 @@ GEM
7387
bourbon (4.2.7)
7488
sass (~> 3.4)
7589
thor (~> 0.19)
76-
browser (2.2.0)
77-
builder (3.2.2)
90+
browser (2.4.0)
91+
builder (3.2.3)
7892
bullet (5.4.2)
7993
activesupport (>= 3.0.0)
8094
uniform_notifier (~> 1.10.0)
@@ -121,15 +135,15 @@ GEM
121135
factory_girl_rails (4.7.0)
122136
factory_girl (~> 4.7.0)
123137
railties (>= 3.0.0)
124-
faker (1.6.6)
138+
faker (1.7.3)
125139
i18n (~> 0.5)
126140
faraday (0.9.2)
127141
multipart-post (>= 1.2, < 3)
128142
ffi (1.9.14)
129143
foreman (0.84.0)
130144
thor (~> 0.19.1)
131145
formatador (0.2.5)
132-
geocoder (1.4.0)
146+
geocoder (1.4.3)
133147
globalid (0.3.7)
134148
activesupport (>= 4.1.0)
135149
groupdate (3.0.2)
@@ -150,15 +164,15 @@ GEM
150164
rspec (>= 2.99.0, < 4.0)
151165
haml (4.0.7)
152166
tilt
153-
hashie (3.4.4)
167+
hashie (3.5.5)
154168
http_accept_language (2.0.5)
155-
i18n (0.7.0)
169+
i18n (0.8.1)
156170
i18n_generators (2.1.1)
157171
rails (>= 3.0.0)
158172
ice_nine (0.11.2)
159-
ims-lti (1.1.12)
173+
ims-lti (1.1.13)
160174
builder
161-
oauth (~> 0.4.5)
175+
oauth (>= 0.4.5, < 0.6)
162176
inline_svg (0.10.0)
163177
activesupport (>= 4.0)
164178
loofah (>= 2.0)
@@ -204,26 +218,23 @@ GEM
204218
notiffany (0.1.1)
205219
nenv (~> 0.1)
206220
shellany (~> 0.0)
207-
oauth (0.4.7)
221+
oauth (0.5.1)
208222
oauth2 (1.2.0)
209223
faraday (>= 0.8, < 0.10)
210224
jwt (~> 1.0)
211225
multi_json (~> 1.3)
212226
multi_xml (~> 0.5)
213227
rack (>= 1.2, < 3)
214-
omniauth (1.3.1)
215-
hashie (>= 1.2, < 4)
216-
rack (>= 1.0, < 3)
228+
omniauth (1.6.1)
229+
hashie (>= 3.4.6, < 3.6.0)
230+
rack (>= 1.6.2, < 3)
217231
omniauth-facebook (4.0.0)
218232
omniauth-oauth2 (~> 1.2)
219233
omniauth-google-oauth2 (0.4.1)
220234
jwt (~> 1.5.2)
221235
multi_json (~> 1.3)
222236
omniauth (>= 1.1.1)
223237
omniauth-oauth2 (>= 1.3.1)
224-
omniauth-lti (0.0.2)
225-
ims-lti
226-
omniauth
227238
omniauth-oauth2 (1.4.0)
228239
oauth2 (~> 1.0)
229240
omniauth (~> 1.2)
@@ -241,7 +252,7 @@ GEM
241252
method_source (~> 0.8.1)
242253
slop (~> 3.4)
243254
puma (3.6.0)
244-
rack (2.0.1)
255+
rack (2.0.2)
245256
rack-attack (5.0.1)
246257
rack
247258
rack-canonical-host (0.2.2)
@@ -279,7 +290,7 @@ GEM
279290
redcarpet (3.3.4)
280291
redis (3.3.1)
281292
referer-parser (0.3.0)
282-
request_store (1.3.1)
293+
request_store (1.3.2)
283294
responders (2.3.0)
284295
railties (>= 4.2.0, < 5.1)
285296
rolify (5.1.0)
@@ -309,7 +320,7 @@ GEM
309320
rspec-core (>= 2, < 4, != 2.12.0)
310321
ruby_dep (1.5.0)
311322
rubyzip (1.2.1)
312-
safely_block (0.1.1)
323+
safely_block (0.2.0)
313324
errbase
314325
sass (3.4.22)
315326
sass-rails (5.0.6)
@@ -346,7 +357,7 @@ GEM
346357
uglifier (3.0.1)
347358
execjs (>= 0.3.0, < 3)
348359
uniform_notifier (1.10.0)
349-
user_agent_parser (2.3.0)
360+
user_agent_parser (2.3.1)
350361
uuidtools (2.1.5)
351362
virtus (1.0.5)
352363
axiom-types (~> 0.1)
@@ -372,7 +383,7 @@ PLATFORMS
372383

373384
DEPENDENCIES
374385
acts_as_list
375-
ahoy_matey
386+
ahoy_matey!
376387
authority
377388
awesome_print
378389
bourbon
@@ -392,6 +403,7 @@ DEPENDENCIES
392403
haml
393404
http_accept_language
394405
i18n_generators
406+
ims-lti
395407
inline_svg
396408
jbuilder (~> 2.0)
397409
jquery-rails
@@ -401,9 +413,10 @@ DEPENDENCIES
401413
newrelic_rpm
402414
omniauth-facebook
403415
omniauth-google-oauth2
404-
omniauth-lti
416+
omniauth-lti!
405417
pg (~> 0.18)
406418
postmark-rails
419+
pry
407420
puma (~> 3.0)
408421
rack-canonical-host
409422
rails (>= 5.0.0, < 5.1)

app/assets/stylesheets/forms.sass

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ form
99
.error_explanation, .field_with_errors label
1010
color: $red
1111

12-
label
13-
font: 600 80% $sansFont
14-
text-transform: uppercase
15-
letter-spacing: 0.05em
16-
1712
.field em
1813
font: 400 80% $sansFont
1914

@@ -22,6 +17,9 @@ select, input, textarea, button
2217

2318
.edit_reader, .new_reader
2419
label
20+
font: 600 80% $sansFont
21+
text-transform: uppercase
22+
letter-spacing: 0.05em
2523
margin: 0
2624

2725
select,

app/assets/stylesheets/header.sass

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)