Commit Graph

26 Commits

Author SHA1 Message Date
Jon Jensen 0bb49eb8f0 include config file localizations in i18n:generate output
Change-Id: Icbc831a7b3158b685671db870ce201d83120eec4
Reviewed-on: https://gerrit.instructure.com/4624
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2011-07-14 14:35:07 -06:00
Jon Jensen 68cd8cb31a js translation bundle generator, refs #4993
Change-Id: I85d03fe5ff5358327545b660fb88d739872367c7
Reviewed-on: https://gerrit.instructure.com/4604
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2011-07-13 10:58:16 -06:00
Jon Jensen dd41f5e189 better view scope inference
Change-Id: I208e1664a468e2a31ffc82444a06cffc3032c536
Reviewed-on: https://gerrit.instructure.com/4591
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2011-07-07 15:51:34 -06:00
Jon Jensen 44659148d6 remove whitespace from en defaults (only for non-mt translate calls in html views)
Change-Id: Ic6bc858c147b5954f21125c9466039057e2dd02a
Reviewed-on: https://gerrit.instructure.com/4573
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
2011-07-06 16:23:17 -06:00
Ryan Shaw b9fe6ae0df catch trailing commas in check_syntax task
Change-Id: I7b068ed6ebdf7f4a5949c18a1b38f4d0b27dcf43
Reviewed-on: https://gerrit.instructure.com/4447
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-29 12:24:44 -06:00
Jon Jensen 93898e620f targeted i18n:check
sample usage:

 # just models
 rake i18n:check ONLY=app/models

 # just js:
 rake i18n:check ONLY=*.js

 # just a couple files:
 rake i18n:check ONLY=app/views/shared/_aligned_outcomes.html.erb,public/javascripts/aligned_outcomes.js
 # or even better:
 rake i18n:check ONLY=*aligned_outcomes*

Change-Id: I469d7fc1fa65ddbf51c06550fa27043a7fc5c956
Reviewed-on: https://gerrit.instructure.com/4375
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-06-24 13:02:50 -06:00
Jon Jensen b07449c2ed i18n extractor for javascript (files and js_blocks)
fixed several key collisions and other minor issues

Change-Id: Ibe15c9963c26226d1d4676066b96b8a76bf50931
Reviewed-on: https://gerrit.instructure.com/4321
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
2011-06-22 15:00:04 -06:00
Jon Jensen 8e772b108a Revert "jammit fu for i18n.js"
This reverts commit d14eacb828.

Change-Id: Id4735548c24cbfba2813b5a2e09876877616bef9
Reviewed-on: https://gerrit.instructure.com/4328
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-22 13:30:18 -06:00
Jon Jensen d14eacb828 jammit fu for i18n.js
this initializer does two things:

 1. it includes the core/default en translations for things like date/time
    formats
 2. it includes the corresponding localization file for each bundle (if
    present). these will be generated offline by an as-yet-unwritten
    js translation generator

Change-Id: If588cb287b027f3de62e8113dc8fa8977f41e830
Reviewed-on: https://gerrit.instructure.com/4244
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-21 14:18:20 -06:00
JT Olds 5a62f11d64 catch rails validation errors in setup rake task
Change-Id: Ie86819fa40ae9a3257882bb92031b5854b2e7f20
Reviewed-on: https://gerrit.instructure.com/4234
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
2011-06-19 22:06:22 -06:00
Jon Jensen f544db6bc1 translation checker/extractor for rb/erb files
Change-Id: I019f701758d35d630bf39141bb283911cc483aa5
Reviewed-on: https://gerrit.instructure.com/4237
Reviewed-by: Zach Wily <zach@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-06-17 10:30:02 -06:00
JT Olds c567ff64fe support running specs in parallel
Change-Id: I521adc994f5f2bd58099a89315468111435dbbf8
Reviewed-on: https://gerrit.instructure.com/4218
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-15 15:18:42 -06:00
JT Olds b8e7f55d2f things aren't working right immediately after a fresh db:migrate
fixing error: Problem creating administrative account, please try again:
unknown attribute: password_confirmation

Change-Id: I6f7bc81569337744243f4c35b6a338635a339f60
Reviewed-on: https://gerrit.instructure.com/3177
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-04-21 15:11:02 -06:00
Ryan Shaw d898232659 add a rake canvas:check_syntax task to check for js errors
you can pass quick=true to to disable style guideline
checks and only check for syntax errors.

this will also spit out javascript style warnings using
jshint and gjslint.  I have not nailed down exactly
which things we want to warn about, we can talk about
it and come to a consensus on what we care about. 
I do not necessarily think that we should
use both jshint and gjslint, I just put them both
in to show what kind of things they can check for.
in order to use gjslint, you need to install
it from http://code.google.com/closure/utilities/

Make your .git/hooks/pre-commit look like:
rake canvas:check_syntax:changed quick=true
to not allow committing js with syntax errors

Change-Id: Icfc21c2d30f60dc2fafef80d5c93432b6309afdb
Reviewed-on: https://gerrit.instructure.com/2908
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
2011-04-20 08:07:30 -06:00
Brian Palmer 27adf9b16a Merge branch 'ims_cc'
Change-Id: I7fc8590ab50d9ec062fd3cf609aa11f034ed582f
2011-04-18 10:20:36 -06:00
Bracken Mosbacker fc4cc9ff46 added ui for course exports
refs #3396

Change-Id: I07c30535e042dada7c7d4174a7bb8148b7f6b1fb
Reviewed-on: https://gerrit.instructure.com/3039
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-04-15 10:27:14 -06:00
Jon Jensen f3cee78b01 encryption_key validation, closes #4202
store a hash of the key in the database when it's first set up, and
check it every subsequent time we load the environment, aborting if it
doesn't match. also provide a way to overwrite the hash in the db (via
env var and/or rake task)

Change-Id: I2a9f75cc850698ca247f39702a703c486fb7413d
Reviewed-on: https://gerrit.instructure.com/2972
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Whitmer <brian@instructure.com>
2011-04-06 14:54:48 -06:00
JT Olds 9935c42b9c allow initial data load to be configurable from the environment
based off https://gerrit.instructure.com/2664

Change-Id: I82c9caede6c45940afbbcea06b0583f0657d9f30
Reviewed-on: https://gerrit.instructure.com/2833
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2011-03-25 18:02:11 -06:00
Jon Jensen 63d09992d4 assignments.needs_grading_count counter to speed things up, closes #3945
Change-Id: I3748a7e0551e49720d06be302df29a8e33528007
Reviewed-on: https://gerrit.instructure.com/2573
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2011-03-23 10:36:15 -06:00
Brian Palmer 4e90835c78 support running spec_canvas specs from bundler-required gemfiles too
Change-Id: I4810c11692ff4d2a0cf33694e029b7e119bb0de6
Reviewed-on: https://gerrit.instructure.com/2744
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
2011-03-22 14:48:51 -06:00
Brian Palmer c863ea32a2 fix integration specs in plugin spec_canvas dirs
Something about the way we were loading them before caused them to
not have the integration methods like get() and post() available. By
loading the base dirs and letting rspec auto-discover the files under
each base dir, we get better behavior.

Change-Id: Ice3a163ddb2311a02f3c125773b6ab05a0895814
Reviewed-on: https://gerrit.instructure.com/2592
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-03-10 09:44:05 -07:00
Brian Palmer 8327ebac27 refactor the rest api docs, refs #3956
I removed the api_routes plugin, since the code is currently too tied to
canvas to be pulled out into a generic plugin anyway. The yardoc
templates now live in doc/templates, and I've done some major cleanup
and refactoring -- they don't have much in common with the default YARD
templates anymore, and they work much better as API documentation.

The styling is now a little bit more "canvas-like" now, too.

Change-Id: I80edd02e63d7815a292306741f2e8ea52872aae2
Reviewed-on: https://gerrit.instructure.com/2535
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
2011-03-09 10:12:32 -07:00
Brian Palmer 5b4abbe76c spec fixes -- db:test:reset could fail depending on load order
Change-Id: I8b9622f5106a7834fd2925f8893d9be1207bda74
Reviewed-on: https://gerrit.instructure.com/2309
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
2011-02-16 12:47:51 -07:00
JT Olds 80079ebbcc remove immediate dependence of email template generation on domain.yml
not sure why i didn't do it this way before. i'm dumb. closes #3710

Change-Id: I93d5d5e600baae247a149b4a87dbfbcc0395b44c
Reviewed-on: https://gerrit.instructure.com/2165
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Whitmer <brian@instructure.com>
2011-02-04 17:34:41 -07:00
JT Olds e04faaf1c9 get phone home call info for quick starts
Change-Id: I4aff73355b6ef35ee7be15930b04bd85805987b0
Reviewed-on: https://gerrit.instructure.com/2110
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
Tested-by: JT Olds <jt@instructure.com>
2011-02-01 14:44:27 -07:00
Brian Whitmer 8b8173dcc9 Initial commit.
closes #6988138
2011-01-31 18:57:29 -07:00