Skip to content

Commit 80e995f

Browse files
committed
Merge branch 'staging' into planter
2 parents 55d4ead + 7df268f commit 80e995f

File tree

1,029 files changed

+22811
-7996
lines changed

Some content is hidden

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

1,029 files changed

+22811
-7996
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
\#*#
22
*.pid
3+
*.pid.oldbin
34
*~
45
.DS_Store
56
.dropbox
7+
.tmputils
68
.idea/
79
**/.bundle
810
crowdin.yaml

.rubocop.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AllCops:
99
DisplayCopNames: true
1010
TargetRubyVersion: 2.2
1111

12-
# Code.org style overrides.
12+
# BEGIN CODE.ORG OVERRIDES
1313

1414
Style/AlignParameters:
1515
EnforcedStyle: with_fixed_indentation
@@ -35,38 +35,46 @@ Style/Semicolon:
3535
Style/WordArray:
3636
MinSize: 5
3737

38-
# Listed below are rules we don't plan to enable in the foreseeable future.
39-
# Add rules we plan to fix (but are currently failing) to .rubocop_todo.yml.
38+
# END CODE.ORG OVERRIDES
4039

41-
Style/BarePercentLiterals:
40+
# BEGIN BLACKLIST: Below are rules we don't plan to enable in the forseeable
41+
# future. Rules we plan to fix (but are currently failing) belong in
42+
# .rubocop_todo.yml.
43+
44+
Metrics/AbcSize:
4245
Enabled: false
4346

44-
Style/ClosingParenthesisIndentation:
47+
Metrics/BlockNesting:
4548
Enabled: false
4649

47-
Style/ExtraSpacing:
50+
Metrics/LineLength:
4851
Enabled: false
4952

50-
Style/IdenticalConditionalBranches:
53+
Metrics/ModuleLength:
5154
Enabled: false
5255

53-
Style/IfInsideElse:
56+
Style/AsciiComments:
5457
Enabled: false
5558

56-
Style/RedundantReturn:
59+
Style/BarePercentLiterals:
5760
Enabled: false
5861

59-
Metrics/AbcSize:
62+
Style/ClosingParenthesisIndentation:
6063
Enabled: false
6164

62-
Metrics/LineLength:
65+
Style/ExtraSpacing:
6366
Enabled: false
6467

65-
Metrics/ModuleLength:
68+
Style/IdenticalConditionalBranches:
6669
Enabled: false
6770

68-
Metrics/BlockNesting:
71+
Style/IfInsideElse:
6972
Enabled: false
7073

71-
Style/AsciiComments:
74+
Style/RedundantReturn:
7275
Enabled: false
76+
77+
Style/StringLiterals:
78+
Enabled: false
79+
80+
# END BLACKLIST

.rubocop_todo.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,6 @@ Style/ConditionalAssignment:
120120
Style/ConstantName:
121121
Enabled: false
122122

123-
# Offense count: 274
124-
# Cop supports --auto-correct.
125-
# Configuration parameters: EnforcedStyle, SupportedStyles.
126-
# SupportedStyles: empty_lines, no_empty_lines
127-
Style/EmptyLinesAroundClassBody:
128-
Enabled: false
129-
130123
# Offense count: 64
131124
# Cop supports --auto-correct.
132125
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
@@ -176,13 +169,6 @@ Style/Lambda:
176169
Style/LeadingCommentSpace:
177170
Enabled: false
178171

179-
# Offense count: 5
180-
# Cop supports --auto-correct.
181-
# Configuration parameters: EnforcedStyle, SupportedStyles.
182-
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
183-
Style/MethodDefParentheses:
184-
Enabled: false
185-
186172
# Offense count: 7
187173
Style/MultilineBlockChain:
188174
Enabled: false
@@ -287,13 +273,6 @@ Style/SpaceInsideBlockBraces:
287273
Style/SpaceInsideHashLiteralBraces:
288274
Enabled: false
289275

290-
# Offense count: 13953
291-
# Cop supports --auto-correct.
292-
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
293-
# SupportedStyles: single_quotes, double_quotes
294-
Style/StringLiterals:
295-
Enabled: false
296-
297276
# Offense count: 30
298277
# Cop supports --auto-correct.
299278
# Configuration parameters: AllowNamedUnderscoreVariables.

.tmputils/.gitkeep

Whitespace-only changes.

Gemfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ gem 'jquery-rails', '~> 3.1.0'
103103

104104
gem 'phantomjs', '~> 1.9.7.1'
105105

106+
# for emoji in utility output
107+
gem 'gemoji'
108+
106109
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
107110
gem 'jbuilder', '~> 1.2'
108111

@@ -126,13 +129,13 @@ gem 'nokogiri', '~> 1.6.1'
126129

127130
gem 'highline', '~> 1.6.21'
128131

129-
gem 'honeybadger', '~> 1.11' # error monitoring
132+
gem 'honeybadger' # error monitoring
130133

131134
gem 'newrelic_rpm', '~> 3.10.0.279', group: [:staging, :production] # perf/error/etc monitoring
132135

133136
gem 'redcarpet', '~> 3.3.4'
134137

135-
gem 'geocoder'
138+
gem 'geocoder', github: 'wjordan/geocoder', ref: 'rack-request-fix'
136139

137140
gem 'rmagick'
138141
gem 'mini_magick'

Gemfile.lock

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ GIT
66
active_model_serializers (0.10.0.pre)
77
activemodel (>= 4.0)
88

9+
GIT
10+
remote: git://github.com/wjordan/geocoder.git
11+
revision: 2da20897188b57f777df89f90e45cf331c5b014f
12+
ref: rack-request-fix
13+
specs:
14+
geocoder (1.3.7)
15+
916
GEM
1017
remote: https://rubygems.org/
1118
specs:
@@ -179,7 +186,7 @@ GEM
179186
firebase_token_generator (2.0.0)
180187
font-awesome-rails (4.6.3.0)
181188
railties (>= 3.2, < 5.1)
182-
geocoder (1.3.7)
189+
gemoji (2.1.0)
183190
gherkin (2.12.2)
184191
multi_json (~> 1.3)
185192
gli (2.13.4)
@@ -223,8 +230,7 @@ GEM
223230
highline (1.6.21)
224231
hike (1.2.3)
225232
hitimes (1.2.2)
226-
honeybadger (1.16.7)
227-
json
233+
honeybadger (2.6.0)
228234
html2haml (2.0.0)
229235
erubis (~> 2.7.0)
230236
haml (~> 4.0.0)
@@ -607,15 +613,16 @@ DEPENDENCIES
607613
firebase
608614
firebase_token_generator
609615
font-awesome-rails (~> 4.6.3)
610-
geocoder
616+
gemoji
617+
geocoder!
611618
google-api-client
612619
google_drive (~> 1.0.0)
613620
haml
614621
haml-rails
615622
haml_lint
616623
heroku_rails_deflate
617624
highline (~> 1.6.21)
618-
honeybadger (~> 1.11)
625+
honeybadger
619626
httparty
620627
ims-lti (~> 1.1)
621628
jbuilder (~> 1.2)

apps/Gruntfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,11 @@ module.exports = function (grunt) {
377377
'levelbuilder_markdown': './src/code-studio/levelbuilder_markdown.js',
378378
'levelbuilder_studio': './src/code-studio/levelbuilder_studio.js',
379379
'levelbuilder_gamelab': './src/code-studio/levelbuilder_gamelab.js',
380+
'levelbuilder_applab': './src/code-studio/levelbuilder_applab.js',
380381
'makerlab/setupPage': './src/code-studio/makerlab/setupPage.js',
381382
'districtDropdown': './src/code-studio/districtDropdown.js',
382383
'signup': './src/code-studio/signup.js',
384+
'termsInterstitial': './src/code-studio/termsInterstitial.js',
383385
'levels/contract_match': './src/code-studio/levels/contract_match.jsx',
384386
'levels/widget': './src/code-studio/levels/widget.js',
385387
'levels/external': './src/code-studio/levels/external.js',

apps/i18n/common/ar_sa.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,32 @@
271271
"when": "عندما",
272272
"whenRun": "عند التشغيل",
273273
"workspaceHeaderShort": "مساحة العمل: ",
274-
"yes": "نعم"
274+
"yes": "نعم",
275+
"allowEditing": "Allow editing",
276+
"allowEditingInstructions": "1. \"Allow editing\" while students should be taking the assessment.",
277+
"answersVisible": "Answers visible (read-only)",
278+
"assessmentSteps": "Steps to give assessment",
279+
"autolock": "Note: Stage auto-locks after 24 hours.",
280+
"dontForget": "Don't forget",
281+
"editable": "Editable",
282+
"loading": "Loading...",
283+
"locked": "Locked",
284+
"lockFollowing": "Lock the following stages that are currently unlocked:",
285+
"lockSettings": "Lock settings",
286+
"lockStage": "Lock stage",
287+
"lockStageInstructions": "2. Once time is up, \"Lock stage\" to hide questions.",
288+
"lockWhenDone": "Lock as soon as students are done",
289+
"relockStage": "Re-lock stage",
290+
"relockStageInstructions": "4. \"Re-lock stage\" to prevent sharing of answers with other classes/schools.",
291+
"save": "Save",
292+
"saving": "Saving...",
293+
"selectSection": "Select a section to be able to lock and unlock assessments or surveys. Click the lock settings button in the stage to the left.",
294+
"student": "Student",
295+
"studentLockStateInstructions": "Use the table below to control the state for each individual student.",
296+
"teacherPanel": "Teacher Panel",
297+
"showAnswers": "Show answers",
298+
"showAnswersInstructions": "3. \"Show answers\" to put the assessment into a read-only mode.",
299+
"studentControl": "Individual student control",
300+
"teacher": "Teacher",
301+
"viewPageAs": "View page as:"
275302
}

apps/i18n/common/az_az.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,32 @@
271271
"when": "nə zaman",
272272
"whenRun": "icra etdikdə",
273273
"workspaceHeaderShort": "iş sahəsi: ",
274-
"yes": "Bəli"
274+
"yes": "Bəli",
275+
"allowEditing": "Allow editing",
276+
"allowEditingInstructions": "1. \"Allow editing\" while students should be taking the assessment.",
277+
"answersVisible": "Answers visible (read-only)",
278+
"assessmentSteps": "Steps to give assessment",
279+
"autolock": "Note: Stage auto-locks after 24 hours.",
280+
"dontForget": "Don't forget",
281+
"editable": "Editable",
282+
"loading": "Loading...",
283+
"locked": "Locked",
284+
"lockFollowing": "Lock the following stages that are currently unlocked:",
285+
"lockSettings": "Lock settings",
286+
"lockStage": "Lock stage",
287+
"lockStageInstructions": "2. Once time is up, \"Lock stage\" to hide questions.",
288+
"lockWhenDone": "Lock as soon as students are done",
289+
"relockStage": "Re-lock stage",
290+
"relockStageInstructions": "4. \"Re-lock stage\" to prevent sharing of answers with other classes/schools.",
291+
"save": "Save",
292+
"saving": "Saving...",
293+
"selectSection": "Select a section to be able to lock and unlock assessments or surveys. Click the lock settings button in the stage to the left.",
294+
"student": "Student",
295+
"studentLockStateInstructions": "Use the table below to control the state for each individual student.",
296+
"teacherPanel": "Teacher Panel",
297+
"showAnswers": "Show answers",
298+
"showAnswersInstructions": "3. \"Show answers\" to put the assessment into a read-only mode.",
299+
"studentControl": "Individual student control",
300+
"teacher": "Teacher",
301+
"viewPageAs": "View page as:"
275302
}

apps/i18n/common/bg_bg.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,32 @@
271271
"when": "когато",
272272
"whenRun": "при стартиране",
273273
"workspaceHeaderShort": "Работна област: ",
274-
"yes": "Да"
274+
"yes": "Да",
275+
"allowEditing": "Allow editing",
276+
"allowEditingInstructions": "1. \"Allow editing\" while students should be taking the assessment.",
277+
"answersVisible": "Answers visible (read-only)",
278+
"assessmentSteps": "Steps to give assessment",
279+
"autolock": "Note: Stage auto-locks after 24 hours.",
280+
"dontForget": "Don't forget",
281+
"editable": "Editable",
282+
"loading": "Loading...",
283+
"locked": "Locked",
284+
"lockFollowing": "Lock the following stages that are currently unlocked:",
285+
"lockSettings": "Lock settings",
286+
"lockStage": "Lock stage",
287+
"lockStageInstructions": "2. Once time is up, \"Lock stage\" to hide questions.",
288+
"lockWhenDone": "Lock as soon as students are done",
289+
"relockStage": "Re-lock stage",
290+
"relockStageInstructions": "4. \"Re-lock stage\" to prevent sharing of answers with other classes/schools.",
291+
"save": "Save",
292+
"saving": "Saving...",
293+
"selectSection": "Select a section to be able to lock and unlock assessments or surveys. Click the lock settings button in the stage to the left.",
294+
"student": "Student",
295+
"studentLockStateInstructions": "Use the table below to control the state for each individual student.",
296+
"teacherPanel": "Teacher Panel",
297+
"showAnswers": "Show answers",
298+
"showAnswersInstructions": "3. \"Show answers\" to put the assessment into a read-only mode.",
299+
"studentControl": "Individual student control",
300+
"teacher": "Teacher",
301+
"viewPageAs": "View page as:"
275302
}

apps/i18n/common/bn_bd.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,32 @@
271271
"when": "যখন",
272272
"whenRun": "চালানোর সময়",
273273
"workspaceHeaderShort": "কর্মপরিসর:",
274-
"yes": "\"হ্যাঁ\""
274+
"yes": "\"হ্যাঁ\"",
275+
"allowEditing": "Allow editing",
276+
"allowEditingInstructions": "1. \"Allow editing\" while students should be taking the assessment.",
277+
"answersVisible": "Answers visible (read-only)",
278+
"assessmentSteps": "Steps to give assessment",
279+
"autolock": "Note: Stage auto-locks after 24 hours.",
280+
"dontForget": "Don't forget",
281+
"editable": "Editable",
282+
"loading": "Loading...",
283+
"locked": "Locked",
284+
"lockFollowing": "Lock the following stages that are currently unlocked:",
285+
"lockSettings": "Lock settings",
286+
"lockStage": "Lock stage",
287+
"lockStageInstructions": "2. Once time is up, \"Lock stage\" to hide questions.",
288+
"lockWhenDone": "Lock as soon as students are done",
289+
"relockStage": "Re-lock stage",
290+
"relockStageInstructions": "4. \"Re-lock stage\" to prevent sharing of answers with other classes/schools.",
291+
"save": "Save",
292+
"saving": "Saving...",
293+
"selectSection": "Select a section to be able to lock and unlock assessments or surveys. Click the lock settings button in the stage to the left.",
294+
"student": "Student",
295+
"studentLockStateInstructions": "Use the table below to control the state for each individual student.",
296+
"teacherPanel": "Teacher Panel",
297+
"showAnswers": "Show answers",
298+
"showAnswersInstructions": "3. \"Show answers\" to put the assessment into a read-only mode.",
299+
"studentControl": "Individual student control",
300+
"teacher": "Teacher",
301+
"viewPageAs": "View page as:"
275302
}

apps/i18n/common/bs_ba.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,32 @@
271271
"when": "kada",
272272
"whenRun": "pri pokretanju",
273273
"workspaceHeaderShort": "Radni prostor: ",
274-
"yes": "Da"
274+
"yes": "Da",
275+
"allowEditing": "Allow editing",
276+
"allowEditingInstructions": "1. \"Allow editing\" while students should be taking the assessment.",
277+
"answersVisible": "Answers visible (read-only)",
278+
"assessmentSteps": "Steps to give assessment",
279+
"autolock": "Note: Stage auto-locks after 24 hours.",
280+
"dontForget": "Don't forget",
281+
"editable": "Editable",
282+
"loading": "Loading...",
283+
"locked": "Locked",
284+
"lockFollowing": "Lock the following stages that are currently unlocked:",
285+
"lockSettings": "Lock settings",
286+
"lockStage": "Lock stage",
287+
"lockStageInstructions": "2. Once time is up, \"Lock stage\" to hide questions.",
288+
"lockWhenDone": "Lock as soon as students are done",
289+
"relockStage": "Re-lock stage",
290+
"relockStageInstructions": "4. \"Re-lock stage\" to prevent sharing of answers with other classes/schools.",
291+
"save": "Save",
292+
"saving": "Saving...",
293+
"selectSection": "Select a section to be able to lock and unlock assessments or surveys. Click the lock settings button in the stage to the left.",
294+
"student": "Student",
295+
"studentLockStateInstructions": "Use the table below to control the state for each individual student.",
296+
"teacherPanel": "Teacher Panel",
297+
"showAnswers": "Show answers",
298+
"showAnswersInstructions": "3. \"Show answers\" to put the assessment into a read-only mode.",
299+
"studentControl": "Individual student control",
300+
"teacher": "Teacher",
301+
"viewPageAs": "View page as:"
275302
}

0 commit comments

Comments
 (0)