Description:
start testing
add compiler msg pop up
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r622:54dff44ae178 - - 60 files changed: 59 inserted, 1596 deleted
@@ -0,0 +1,13 | |||||
|
|
1 | + require 'test_helper' | ||
|
|
2 | + | ||
|
|
3 | + class LoginTest < ActionDispatch::IntegrationTest | ||
|
|
4 | + # test "the truth" do | ||
|
|
5 | + # assert true | ||
|
|
6 | + # end | ||
|
|
7 | + | ||
|
|
8 | + test "login with valid information" do | ||
|
|
9 | + get root_path | ||
|
|
10 | + assert_response :success | ||
|
|
11 | + | ||
|
|
12 | + end | ||
|
|
13 | + end |
@@ -1,82 +1,78 | |||||
|
1 | source 'https://rubygems.org' |
|
1 | source 'https://rubygems.org' |
|
2 |
|
2 | ||
|
3 | gem 'rails', '~>4.2.0' |
|
3 | gem 'rails', '~>4.2.0' |
|
4 | gem 'activerecord-session_store' |
|
4 | gem 'activerecord-session_store' |
|
5 |
|
5 | ||
|
6 | gem 'select2-rails' |
|
6 | gem 'select2-rails' |
|
7 |
|
7 | ||
|
8 | # Bundle edge Rails instead: |
|
8 | # Bundle edge Rails instead: |
|
9 | # gem 'rails', :git => 'git://github.com/rails/rails.git' |
|
9 | # gem 'rails', :git => 'git://github.com/rails/rails.git' |
|
10 |
|
10 | ||
|
11 | gem 'mysql2' |
|
11 | gem 'mysql2' |
|
12 | gem 'sqlite3' |
|
12 | gem 'sqlite3' |
|
13 |
|
13 | ||
|
14 | # Gems used only for assets and not required |
|
14 | # Gems used only for assets and not required |
|
15 | # in production environments by default. |
|
15 | # in production environments by default. |
|
16 | - group :assets do |
|
16 | + gem 'sass-rails' |
|
17 |
- |
|
17 | + gem 'coffee-rails' |
|
18 | - gem 'coffee-rails' |
|
||
|
19 |
|
18 | ||
|
20 | # See https://github.com/sstephenson/execjs#readme for more supported runtimes |
|
19 | # See https://github.com/sstephenson/execjs#readme for more supported runtimes |
|
21 | # gem 'therubyracer', :platforms => :ruby |
|
20 | # gem 'therubyracer', :platforms => :ruby |
|
22 |
|
21 | ||
|
23 |
- |
|
22 | + gem 'uglifier' |
|
24 | - end |
|
23 | + |
|
25 |
|
24 | ||
|
26 | # gem 'prototype-rails' |
|
25 | # gem 'prototype-rails' |
|
27 |
|
26 | ||
|
28 | # To use ActiveModel has_secure_password |
|
27 | # To use ActiveModel has_secure_password |
|
29 | # gem 'bcrypt-ruby', '~> 3.0.0' |
|
28 | # gem 'bcrypt-ruby', '~> 3.0.0' |
|
30 |
|
29 | ||
|
31 | # To use Jbuilder templates for JSON |
|
30 | # To use Jbuilder templates for JSON |
|
32 | # gem 'jbuilder' |
|
31 | # gem 'jbuilder' |
|
33 |
|
32 | ||
|
34 | # Use unicorn as the app server |
|
33 | # Use unicorn as the app server |
|
35 | # gem 'unicorn' |
|
34 | # gem 'unicorn' |
|
36 |
|
35 | ||
|
37 | # Deploy with Capistrano |
|
36 | # Deploy with Capistrano |
|
38 | # gem 'capistrano' |
|
37 | # gem 'capistrano' |
|
39 |
|
38 | ||
|
40 | # To use debugger |
|
39 | # To use debugger |
|
41 | # gem 'debugger' |
|
40 | # gem 'debugger' |
|
42 | # |
|
41 | # |
|
43 |
|
42 | ||
|
44 | #in-place editor |
|
43 | #in-place editor |
|
45 | gem 'best_in_place', '~> 3.0.1' |
|
44 | gem 'best_in_place', '~> 3.0.1' |
|
46 |
|
45 | ||
|
47 | # jquery addition |
|
46 | # jquery addition |
|
48 | gem 'jquery-rails' |
|
47 | gem 'jquery-rails' |
|
49 | gem 'jquery-ui-rails' |
|
48 | gem 'jquery-ui-rails' |
|
50 | gem 'jquery-timepicker-addon-rails' |
|
49 | gem 'jquery-timepicker-addon-rails' |
|
51 | gem 'jquery-tablesorter' |
|
50 | gem 'jquery-tablesorter' |
|
52 | gem 'jquery-countdown-rails' |
|
51 | gem 'jquery-countdown-rails' |
|
53 |
|
52 | ||
|
54 | #syntax highlighter |
|
53 | #syntax highlighter |
|
55 | gem 'rouge' |
|
54 | gem 'rouge' |
|
56 |
|
55 | ||
|
57 | #add bootstrap |
|
56 | #add bootstrap |
|
58 | gem 'bootstrap-sass', '~> 3.2.0' |
|
57 | gem 'bootstrap-sass', '~> 3.2.0' |
|
59 | gem 'bootstrap-switch-rails' |
|
58 | gem 'bootstrap-switch-rails' |
|
60 | gem 'bootstrap-toggle-rails' |
|
59 | gem 'bootstrap-toggle-rails' |
|
61 | gem 'autoprefixer-rails' |
|
60 | gem 'autoprefixer-rails' |
|
62 |
|
61 | ||
|
63 | #bootstrap sortable |
|
62 | #bootstrap sortable |
|
64 | gem 'momentjs-rails' |
|
63 | gem 'momentjs-rails' |
|
65 | gem 'rails_bootstrap_sortable' |
|
64 | gem 'rails_bootstrap_sortable' |
|
66 |
|
65 | ||
|
67 | #ace editor |
|
66 | #ace editor |
|
68 | gem 'ace-rails-ap' |
|
67 | gem 'ace-rails-ap' |
|
69 |
|
68 | ||
|
70 | gem 'haml' |
|
69 | gem 'haml' |
|
71 | gem 'haml-rails' |
|
70 | gem 'haml-rails' |
|
72 | gem 'mail' |
|
71 | gem 'mail' |
|
73 | gem 'rdiscount' |
|
72 | gem 'rdiscount' |
|
74 | gem 'test-unit' |
|
73 | gem 'test-unit' |
|
75 | gem 'will_paginate', '~> 3.0.7' |
|
74 | gem 'will_paginate', '~> 3.0.7' |
|
76 | gem 'dynamic_form' |
|
75 | gem 'dynamic_form' |
|
77 | gem 'in_place_editing' |
|
76 | gem 'in_place_editing' |
|
78 | gem 'verification', :git => 'https://github.com/sikachu/verification.git' |
|
77 | gem 'verification', :git => 'https://github.com/sikachu/verification.git' |
|
79 |
|
78 | ||
|
80 | - group :test, :development do |
|
||
|
81 | - gem 'rspec-rails' |
|
||
|
82 | - end |
|
@@ -1,241 +1,221 | |||||
|
1 | GIT |
|
1 | GIT |
|
2 | remote: https://github.com/sikachu/verification.git |
|
2 | remote: https://github.com/sikachu/verification.git |
|
3 | - revision: e6fe084ce16b7b5a4b1cdfca5374d125fd034a0f |
|
3 | + revision: ff31697b940d7b0e2ec65f08764215c96104e76d |
|
4 | specs: |
|
4 | specs: |
|
5 | verification (1.0.3) |
|
5 | verification (1.0.3) |
|
6 |
- actionpack (>= 3.0.0, < 5. |
|
6 | + actionpack (>= 3.0.0, < 5.1) |
|
7 |
- activesupport (>= 3.0.0, < 5. |
|
7 | + activesupport (>= 3.0.0, < 5.1) |
|
8 |
|
8 | ||
|
9 | GEM |
|
9 | GEM |
|
10 | remote: https://rubygems.org/ |
|
10 | remote: https://rubygems.org/ |
|
11 | specs: |
|
11 | specs: |
|
12 | ace-rails-ap (4.1.1) |
|
12 | ace-rails-ap (4.1.1) |
|
13 | actionmailer (4.2.7.1) |
|
13 | actionmailer (4.2.7.1) |
|
14 | actionpack (= 4.2.7.1) |
|
14 | actionpack (= 4.2.7.1) |
|
15 | actionview (= 4.2.7.1) |
|
15 | actionview (= 4.2.7.1) |
|
16 | activejob (= 4.2.7.1) |
|
16 | activejob (= 4.2.7.1) |
|
17 | mail (~> 2.5, >= 2.5.4) |
|
17 | mail (~> 2.5, >= 2.5.4) |
|
18 | rails-dom-testing (~> 1.0, >= 1.0.5) |
|
18 | rails-dom-testing (~> 1.0, >= 1.0.5) |
|
19 | actionpack (4.2.7.1) |
|
19 | actionpack (4.2.7.1) |
|
20 | actionview (= 4.2.7.1) |
|
20 | actionview (= 4.2.7.1) |
|
21 | activesupport (= 4.2.7.1) |
|
21 | activesupport (= 4.2.7.1) |
|
22 | rack (~> 1.6) |
|
22 | rack (~> 1.6) |
|
23 | rack-test (~> 0.6.2) |
|
23 | rack-test (~> 0.6.2) |
|
24 | rails-dom-testing (~> 1.0, >= 1.0.5) |
|
24 | rails-dom-testing (~> 1.0, >= 1.0.5) |
|
25 | rails-html-sanitizer (~> 1.0, >= 1.0.2) |
|
25 | rails-html-sanitizer (~> 1.0, >= 1.0.2) |
|
26 | actionview (4.2.7.1) |
|
26 | actionview (4.2.7.1) |
|
27 | activesupport (= 4.2.7.1) |
|
27 | activesupport (= 4.2.7.1) |
|
28 | builder (~> 3.1) |
|
28 | builder (~> 3.1) |
|
29 | erubis (~> 2.7.0) |
|
29 | erubis (~> 2.7.0) |
|
30 | rails-dom-testing (~> 1.0, >= 1.0.5) |
|
30 | rails-dom-testing (~> 1.0, >= 1.0.5) |
|
31 | rails-html-sanitizer (~> 1.0, >= 1.0.2) |
|
31 | rails-html-sanitizer (~> 1.0, >= 1.0.2) |
|
32 | activejob (4.2.7.1) |
|
32 | activejob (4.2.7.1) |
|
33 | activesupport (= 4.2.7.1) |
|
33 | activesupport (= 4.2.7.1) |
|
34 | globalid (>= 0.3.0) |
|
34 | globalid (>= 0.3.0) |
|
35 | activemodel (4.2.7.1) |
|
35 | activemodel (4.2.7.1) |
|
36 | activesupport (= 4.2.7.1) |
|
36 | activesupport (= 4.2.7.1) |
|
37 | builder (~> 3.1) |
|
37 | builder (~> 3.1) |
|
38 | activerecord (4.2.7.1) |
|
38 | activerecord (4.2.7.1) |
|
39 | activemodel (= 4.2.7.1) |
|
39 | activemodel (= 4.2.7.1) |
|
40 | activesupport (= 4.2.7.1) |
|
40 | activesupport (= 4.2.7.1) |
|
41 | arel (~> 6.0) |
|
41 | arel (~> 6.0) |
|
42 | activerecord-session_store (1.0.0) |
|
42 | activerecord-session_store (1.0.0) |
|
43 | actionpack (>= 4.0, < 5.1) |
|
43 | actionpack (>= 4.0, < 5.1) |
|
44 | activerecord (>= 4.0, < 5.1) |
|
44 | activerecord (>= 4.0, < 5.1) |
|
45 | multi_json (~> 1.11, >= 1.11.2) |
|
45 | multi_json (~> 1.11, >= 1.11.2) |
|
46 | rack (>= 1.5.2, < 3) |
|
46 | rack (>= 1.5.2, < 3) |
|
47 | railties (>= 4.0, < 5.1) |
|
47 | railties (>= 4.0, < 5.1) |
|
48 | activesupport (4.2.7.1) |
|
48 | activesupport (4.2.7.1) |
|
49 | i18n (~> 0.7) |
|
49 | i18n (~> 0.7) |
|
50 | json (~> 1.7, >= 1.7.7) |
|
50 | json (~> 1.7, >= 1.7.7) |
|
51 | minitest (~> 5.1) |
|
51 | minitest (~> 5.1) |
|
52 | thread_safe (~> 0.3, >= 0.3.4) |
|
52 | thread_safe (~> 0.3, >= 0.3.4) |
|
53 | tzinfo (~> 1.1) |
|
53 | tzinfo (~> 1.1) |
|
54 |
- arel (6.0. |
|
54 | + arel (6.0.4) |
|
55 |
- autoprefixer-rails (6. |
|
55 | + autoprefixer-rails (6.6.0) |
|
56 | execjs |
|
56 | execjs |
|
57 | best_in_place (3.0.3) |
|
57 | best_in_place (3.0.3) |
|
58 | actionpack (>= 3.2) |
|
58 | actionpack (>= 3.2) |
|
59 | railties (>= 3.2) |
|
59 | railties (>= 3.2) |
|
60 | bootstrap-sass (3.2.0.2) |
|
60 | bootstrap-sass (3.2.0.2) |
|
61 | sass (~> 3.2) |
|
61 | sass (~> 3.2) |
|
62 | bootstrap-switch-rails (3.3.3) |
|
62 | bootstrap-switch-rails (3.3.3) |
|
63 | bootstrap-toggle-rails (2.2.1.0) |
|
63 | bootstrap-toggle-rails (2.2.1.0) |
|
64 | builder (3.2.2) |
|
64 | builder (3.2.2) |
|
65 | coffee-rails (4.2.1) |
|
65 | coffee-rails (4.2.1) |
|
66 | coffee-script (>= 2.2.0) |
|
66 | coffee-script (>= 2.2.0) |
|
67 | railties (>= 4.0.0, < 5.2.x) |
|
67 | railties (>= 4.0.0, < 5.2.x) |
|
68 | coffee-script (2.4.1) |
|
68 | coffee-script (2.4.1) |
|
69 | coffee-script-source |
|
69 | coffee-script-source |
|
70 | execjs |
|
70 | execjs |
|
71 |
- coffee-script-source (1.1 |
|
71 | + coffee-script-source (1.12.2) |
|
72 |
- concurrent-ruby (1.0. |
|
72 | + concurrent-ruby (1.0.4) |
|
73 | - diff-lcs (1.2.5) |
|
||
|
74 | dynamic_form (1.1.4) |
|
73 | dynamic_form (1.1.4) |
|
75 | erubis (2.7.0) |
|
74 | erubis (2.7.0) |
|
76 | execjs (2.7.0) |
|
75 | execjs (2.7.0) |
|
77 | globalid (0.3.7) |
|
76 | globalid (0.3.7) |
|
78 | activesupport (>= 4.1.0) |
|
77 | activesupport (>= 4.1.0) |
|
79 | haml (4.0.7) |
|
78 | haml (4.0.7) |
|
80 | tilt |
|
79 | tilt |
|
81 | haml-rails (0.9.0) |
|
80 | haml-rails (0.9.0) |
|
82 | actionpack (>= 4.0.1) |
|
81 | actionpack (>= 4.0.1) |
|
83 | activesupport (>= 4.0.1) |
|
82 | activesupport (>= 4.0.1) |
|
84 | haml (>= 4.0.6, < 5.0) |
|
83 | haml (>= 4.0.6, < 5.0) |
|
85 | html2haml (>= 1.0.1) |
|
84 | html2haml (>= 1.0.1) |
|
86 | railties (>= 4.0.1) |
|
85 | railties (>= 4.0.1) |
|
87 | html2haml (2.0.0) |
|
86 | html2haml (2.0.0) |
|
88 | erubis (~> 2.7.0) |
|
87 | erubis (~> 2.7.0) |
|
89 | haml (~> 4.0.0) |
|
88 | haml (~> 4.0.0) |
|
90 | nokogiri (~> 1.6.0) |
|
89 | nokogiri (~> 1.6.0) |
|
91 | ruby_parser (~> 3.5) |
|
90 | ruby_parser (~> 3.5) |
|
92 | i18n (0.7.0) |
|
91 | i18n (0.7.0) |
|
93 | in_place_editing (1.2.0) |
|
92 | in_place_editing (1.2.0) |
|
94 | jquery-countdown-rails (2.0.2) |
|
93 | jquery-countdown-rails (2.0.2) |
|
95 | jquery-rails (4.2.1) |
|
94 | jquery-rails (4.2.1) |
|
96 | rails-dom-testing (>= 1, < 3) |
|
95 | rails-dom-testing (>= 1, < 3) |
|
97 | railties (>= 4.2.0) |
|
96 | railties (>= 4.2.0) |
|
98 | thor (>= 0.14, < 2.0) |
|
97 | thor (>= 0.14, < 2.0) |
|
99 |
- jquery-tablesorter (1.23. |
|
98 | + jquery-tablesorter (1.23.3) |
|
100 | railties (>= 3.2, < 6) |
|
99 | railties (>= 3.2, < 6) |
|
101 | jquery-timepicker-addon-rails (1.4.1) |
|
100 | jquery-timepicker-addon-rails (1.4.1) |
|
102 | railties (>= 3.1) |
|
101 | railties (>= 3.1) |
|
103 |
- jquery-ui-rails ( |
|
102 | + jquery-ui-rails (6.0.1) |
|
104 | - jquery-rails |
|
103 | + railties (>= 3.2.16) |
|
105 | - railties (>= 3.1.0) |
|
||
|
106 | json (1.8.3) |
|
104 | json (1.8.3) |
|
107 | loofah (2.0.3) |
|
105 | loofah (2.0.3) |
|
108 | nokogiri (>= 1.5.9) |
|
106 | nokogiri (>= 1.5.9) |
|
109 | mail (2.6.4) |
|
107 | mail (2.6.4) |
|
110 | mime-types (>= 1.16, < 4) |
|
108 | mime-types (>= 1.16, < 4) |
|
111 | mime-types (3.1) |
|
109 | mime-types (3.1) |
|
112 | mime-types-data (~> 3.2015) |
|
110 | mime-types-data (~> 3.2015) |
|
113 | mime-types-data (3.2016.0521) |
|
111 | mime-types-data (3.2016.0521) |
|
114 | mini_portile2 (2.1.0) |
|
112 | mini_portile2 (2.1.0) |
|
115 | minitest (5.10.1) |
|
113 | minitest (5.10.1) |
|
116 | momentjs-rails (2.15.1) |
|
114 | momentjs-rails (2.15.1) |
|
117 | railties (>= 3.1) |
|
115 | railties (>= 3.1) |
|
118 | multi_json (1.12.1) |
|
116 | multi_json (1.12.1) |
|
119 | mysql2 (0.4.5) |
|
117 | mysql2 (0.4.5) |
|
120 | nokogiri (1.6.8.1) |
|
118 | nokogiri (1.6.8.1) |
|
121 | mini_portile2 (~> 2.1.0) |
|
119 | mini_portile2 (~> 2.1.0) |
|
122 | power_assert (0.4.1) |
|
120 | power_assert (0.4.1) |
|
123 | rack (1.6.5) |
|
121 | rack (1.6.5) |
|
124 | rack-test (0.6.3) |
|
122 | rack-test (0.6.3) |
|
125 | rack (>= 1.0) |
|
123 | rack (>= 1.0) |
|
126 | rails (4.2.7.1) |
|
124 | rails (4.2.7.1) |
|
127 | actionmailer (= 4.2.7.1) |
|
125 | actionmailer (= 4.2.7.1) |
|
128 | actionpack (= 4.2.7.1) |
|
126 | actionpack (= 4.2.7.1) |
|
129 | actionview (= 4.2.7.1) |
|
127 | actionview (= 4.2.7.1) |
|
130 | activejob (= 4.2.7.1) |
|
128 | activejob (= 4.2.7.1) |
|
131 | activemodel (= 4.2.7.1) |
|
129 | activemodel (= 4.2.7.1) |
|
132 | activerecord (= 4.2.7.1) |
|
130 | activerecord (= 4.2.7.1) |
|
133 | activesupport (= 4.2.7.1) |
|
131 | activesupport (= 4.2.7.1) |
|
134 | bundler (>= 1.3.0, < 2.0) |
|
132 | bundler (>= 1.3.0, < 2.0) |
|
135 | railties (= 4.2.7.1) |
|
133 | railties (= 4.2.7.1) |
|
136 | sprockets-rails |
|
134 | sprockets-rails |
|
137 | rails-deprecated_sanitizer (1.0.3) |
|
135 | rails-deprecated_sanitizer (1.0.3) |
|
138 | activesupport (>= 4.2.0.alpha) |
|
136 | activesupport (>= 4.2.0.alpha) |
|
139 |
- rails-dom-testing (1.0. |
|
137 | + rails-dom-testing (1.0.8) |
|
140 | activesupport (>= 4.2.0.beta, < 5.0) |
|
138 | activesupport (>= 4.2.0.beta, < 5.0) |
|
141 |
- nokogiri (~> 1.6 |
|
139 | + nokogiri (~> 1.6) |
|
142 | rails-deprecated_sanitizer (>= 1.0.1) |
|
140 | rails-deprecated_sanitizer (>= 1.0.1) |
|
143 | rails-html-sanitizer (1.0.3) |
|
141 | rails-html-sanitizer (1.0.3) |
|
144 | loofah (~> 2.0) |
|
142 | loofah (~> 2.0) |
|
145 | rails_bootstrap_sortable (2.0.1) |
|
143 | rails_bootstrap_sortable (2.0.1) |
|
146 | momentjs-rails (>= 2.8.3) |
|
144 | momentjs-rails (>= 2.8.3) |
|
147 | railties (4.2.7.1) |
|
145 | railties (4.2.7.1) |
|
148 | actionpack (= 4.2.7.1) |
|
146 | actionpack (= 4.2.7.1) |
|
149 | activesupport (= 4.2.7.1) |
|
147 | activesupport (= 4.2.7.1) |
|
150 | rake (>= 0.8.7) |
|
148 | rake (>= 0.8.7) |
|
151 | thor (>= 0.18.1, < 2.0) |
|
149 | thor (>= 0.18.1, < 2.0) |
|
152 | rake (12.0.0) |
|
150 | rake (12.0.0) |
|
153 | rdiscount (2.2.0.1) |
|
151 | rdiscount (2.2.0.1) |
|
154 | rouge (2.0.7) |
|
152 | rouge (2.0.7) |
|
155 | - rspec-core (3.5.4) |
|
||
|
156 | - rspec-support (~> 3.5.0) |
|
||
|
157 | - rspec-expectations (3.5.0) |
|
||
|
158 | - diff-lcs (>= 1.2.0, < 2.0) |
|
||
|
159 | - rspec-support (~> 3.5.0) |
|
||
|
160 | - rspec-mocks (3.5.0) |
|
||
|
161 | - diff-lcs (>= 1.2.0, < 2.0) |
|
||
|
162 | - rspec-support (~> 3.5.0) |
|
||
|
163 | - rspec-rails (3.5.2) |
|
||
|
164 | - actionpack (>= 3.0) |
|
||
|
165 | - activesupport (>= 3.0) |
|
||
|
166 | - railties (>= 3.0) |
|
||
|
167 | - rspec-core (~> 3.5.0) |
|
||
|
168 | - rspec-expectations (~> 3.5.0) |
|
||
|
169 | - rspec-mocks (~> 3.5.0) |
|
||
|
170 | - rspec-support (~> 3.5.0) |
|
||
|
171 | - rspec-support (3.5.0) |
|
||
|
172 | ruby_parser (3.8.3) |
|
153 | ruby_parser (3.8.3) |
|
173 | sexp_processor (~> 4.1) |
|
154 | sexp_processor (~> 4.1) |
|
174 |
- sass (3.4.2 |
|
155 | + sass (3.4.23) |
|
175 | sass-rails (5.0.6) |
|
156 | sass-rails (5.0.6) |
|
176 | railties (>= 4.0.0, < 6) |
|
157 | railties (>= 4.0.0, < 6) |
|
177 | sass (~> 3.1) |
|
158 | sass (~> 3.1) |
|
178 | sprockets (>= 2.8, < 4.0) |
|
159 | sprockets (>= 2.8, < 4.0) |
|
179 | sprockets-rails (>= 2.0, < 4.0) |
|
160 | sprockets-rails (>= 2.0, < 4.0) |
|
180 | tilt (>= 1.1, < 3) |
|
161 | tilt (>= 1.1, < 3) |
|
181 | select2-rails (4.0.3) |
|
162 | select2-rails (4.0.3) |
|
182 | thor (~> 0.14) |
|
163 | thor (~> 0.14) |
|
183 | sexp_processor (4.7.0) |
|
164 | sexp_processor (4.7.0) |
|
184 |
- sprockets (3.7. |
|
165 | + sprockets (3.7.1) |
|
185 | concurrent-ruby (~> 1.0) |
|
166 | concurrent-ruby (~> 1.0) |
|
186 | rack (> 1, < 3) |
|
167 | rack (> 1, < 3) |
|
187 | sprockets-rails (3.2.0) |
|
168 | sprockets-rails (3.2.0) |
|
188 | actionpack (>= 4.0) |
|
169 | actionpack (>= 4.0) |
|
189 | activesupport (>= 4.0) |
|
170 | activesupport (>= 4.0) |
|
190 | sprockets (>= 3.0.0) |
|
171 | sprockets (>= 3.0.0) |
|
191 | sqlite3 (1.3.12) |
|
172 | sqlite3 (1.3.12) |
|
192 | test-unit (3.2.3) |
|
173 | test-unit (3.2.3) |
|
193 | power_assert |
|
174 | power_assert |
|
194 | thor (0.19.4) |
|
175 | thor (0.19.4) |
|
195 | thread_safe (0.3.5) |
|
176 | thread_safe (0.3.5) |
|
196 | tilt (2.0.5) |
|
177 | tilt (2.0.5) |
|
197 | tzinfo (1.2.2) |
|
178 | tzinfo (1.2.2) |
|
198 | thread_safe (~> 0.1) |
|
179 | thread_safe (~> 0.1) |
|
199 | uglifier (3.0.4) |
|
180 | uglifier (3.0.4) |
|
200 | execjs (>= 0.3.0, < 3) |
|
181 | execjs (>= 0.3.0, < 3) |
|
201 | will_paginate (3.0.12) |
|
182 | will_paginate (3.0.12) |
|
202 |
|
183 | ||
|
203 | PLATFORMS |
|
184 | PLATFORMS |
|
204 | ruby |
|
185 | ruby |
|
205 |
|
186 | ||
|
206 | DEPENDENCIES |
|
187 | DEPENDENCIES |
|
207 | ace-rails-ap |
|
188 | ace-rails-ap |
|
208 | activerecord-session_store |
|
189 | activerecord-session_store |
|
209 | autoprefixer-rails |
|
190 | autoprefixer-rails |
|
210 | best_in_place (~> 3.0.1) |
|
191 | best_in_place (~> 3.0.1) |
|
211 | bootstrap-sass (~> 3.2.0) |
|
192 | bootstrap-sass (~> 3.2.0) |
|
212 | bootstrap-switch-rails |
|
193 | bootstrap-switch-rails |
|
213 | bootstrap-toggle-rails |
|
194 | bootstrap-toggle-rails |
|
214 | coffee-rails |
|
195 | coffee-rails |
|
215 | dynamic_form |
|
196 | dynamic_form |
|
216 | haml |
|
197 | haml |
|
217 | haml-rails |
|
198 | haml-rails |
|
218 | in_place_editing |
|
199 | in_place_editing |
|
219 | jquery-countdown-rails |
|
200 | jquery-countdown-rails |
|
220 | jquery-rails |
|
201 | jquery-rails |
|
221 | jquery-tablesorter |
|
202 | jquery-tablesorter |
|
222 | jquery-timepicker-addon-rails |
|
203 | jquery-timepicker-addon-rails |
|
223 | jquery-ui-rails |
|
204 | jquery-ui-rails |
|
224 |
|
205 | ||
|
225 | momentjs-rails |
|
206 | momentjs-rails |
|
226 | mysql2 |
|
207 | mysql2 |
|
227 | rails (~> 4.2.0) |
|
208 | rails (~> 4.2.0) |
|
228 | rails_bootstrap_sortable |
|
209 | rails_bootstrap_sortable |
|
229 | rdiscount |
|
210 | rdiscount |
|
230 | rouge |
|
211 | rouge |
|
231 | - rspec-rails |
|
||
|
232 | sass-rails |
|
212 | sass-rails |
|
233 | select2-rails |
|
213 | select2-rails |
|
234 | sqlite3 |
|
214 | sqlite3 |
|
235 | test-unit |
|
215 | test-unit |
|
236 | uglifier |
|
216 | uglifier |
|
237 | verification! |
|
217 | verification! |
|
238 | will_paginate (~> 3.0.7) |
|
218 | will_paginate (~> 3.0.7) |
|
239 |
|
219 | ||
|
240 | BUNDLED WITH |
|
220 | BUNDLED WITH |
|
241 | 1.13.6 |
|
221 | 1.13.6 |
@@ -1,44 +1,41 | |||||
|
1 | // This is a manifest file that'll be compiled into application.js, which will include all the files |
|
1 | // This is a manifest file that'll be compiled into application.js, which will include all the files |
|
2 | // listed below. |
|
2 | // listed below. |
|
3 | // |
|
3 | // |
|
4 | // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, |
|
4 | // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, |
|
5 | // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. |
|
5 | // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. |
|
6 | // |
|
6 | // |
|
7 | // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the |
|
7 | // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the |
|
8 | // the compiled file. |
|
8 | // the compiled file. |
|
9 | // |
|
9 | // |
|
10 | // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD |
|
10 | // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD |
|
11 | // GO AFTER THE REQUIRES BELOW. |
|
11 | // GO AFTER THE REQUIRES BELOW. |
|
12 | // |
|
12 | // |
|
13 | //= require jquery |
|
13 | //= require jquery |
|
14 | //= require jquery_ujs |
|
14 | //= require jquery_ujs |
|
15 |
- //= require jquery |
|
15 | + //= require jquery-ui |
|
16 | //= require bootstrap-sprockets |
|
16 | //= require bootstrap-sprockets |
|
17 | //= require moment |
|
17 | //= require moment |
|
18 | //= require bootstrap-sortable |
|
18 | //= require bootstrap-sortable |
|
19 | //= require select2 |
|
19 | //= require select2 |
|
20 | //= require ace-rails-ap |
|
20 | //= require ace-rails-ap |
|
21 | //= require ace/mode-c_cpp |
|
21 | //= require ace/mode-c_cpp |
|
22 | //= require ace/mode-python |
|
22 | //= require ace/mode-python |
|
23 | //= require ace/mode-ruby |
|
23 | //= require ace/mode-ruby |
|
24 | //= require ace/mode-pascal |
|
24 | //= require ace/mode-pascal |
|
25 | //= require ace/mode-javascript |
|
25 | //= require ace/mode-javascript |
|
26 | //= require ace/mode-java |
|
26 | //= require ace/mode-java |
|
27 | //= require ace/theme-merbivore |
|
27 | //= require ace/theme-merbivore |
|
28 | //= require custom |
|
28 | //= require custom |
|
29 | //= require jquery.countdown |
|
29 | //= require jquery.countdown |
|
30 | //-------------- addition from local_jquery ----------- |
|
30 | //-------------- addition from local_jquery ----------- |
|
31 | - //= require jquery.ui.datepicker |
|
||
|
32 | - //= require jquery.ui.slider |
|
||
|
33 | - //= require jquery-ui-timepicker-addon |
|
||
|
34 | //= require jquery-tablesorter |
|
31 | //= require jquery-tablesorter |
|
35 | //= require best_in_place |
|
32 | //= require best_in_place |
|
36 | //= require best_in_place.jquery-ui |
|
33 | //= require best_in_place.jquery-ui |
|
37 | //= require brython |
|
34 | //= require brython |
|
38 |
|
35 | ||
|
39 | // since this is after blank line, it is not downloaded |
|
36 | // since this is after blank line, it is not downloaded |
|
40 | //x= require prototype |
|
37 | //x= require prototype |
|
41 | //x= require prototype_ujs |
|
38 | //x= require prototype_ujs |
|
42 | //x= require effects |
|
39 | //x= require effects |
|
43 | //x= require dragdrop |
|
40 | //x= require dragdrop |
|
44 | //x= require controls |
|
41 | //x= require controls |
@@ -1,14 +1,4 | |||||
|
1 | - //= require jquery |
|
||
|
2 | - //= require jquery_ujs |
|
||
|
3 | - //= require jquery.ui.all |
|
||
|
4 | - //= require jquery.ui.datepicker |
|
||
|
5 | - //= require jquery.ui.slider |
|
||
|
6 | - //= require jquery-ui-timepicker-addon |
|
||
|
7 | - //= require jquery-tablesorter |
|
||
|
8 | - //= require best_in_place |
|
||
|
9 | - //= require best_in_place.jquery-ui |
|
||
|
10 | - |
|
||
|
11 |
|
|
1 | $(document).ready(function() { |
|
12 | /* Activating Best In Place */ |
|
2 | /* Activating Best In Place */ |
|
13 | jQuery(".best_in_place").best_in_place(); |
|
3 | jQuery(".best_in_place").best_in_place(); |
|
14 | }); |
|
4 | }); |
@@ -1,117 +1,117 | |||||
|
1 | /* This is a manifest file that'll be compiled into application.css, which will include all the files |
|
1 | /* This is a manifest file that'll be compiled into application.css, which will include all the files |
|
2 | * listed below. |
|
2 | * listed below. |
|
3 | * |
|
3 | * |
|
4 | * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, |
|
4 | * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, |
|
5 | * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. |
|
5 | * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. |
|
6 | * |
|
6 | * |
|
7 | * You're free to add application-wide styles to this file and they'll appear at the bottom of the |
|
7 | * You're free to add application-wide styles to this file and they'll appear at the bottom of the |
|
8 | * compiled file so the styles you add here take precedence over styles defined in any styles |
|
8 | * compiled file so the styles you add here take precedence over styles defined in any styles |
|
9 | * defined in the other CSS/SCSS files in this directory. It is generally better to create a new |
|
9 | * defined in the other CSS/SCSS files in this directory. It is generally better to create a new |
|
10 | * file per style scope. |
|
10 | * file per style scope. |
|
11 | * |
|
11 | * |
|
12 | * // bootstrap says that we should not do this, but @import each file instead |
|
12 | * // bootstrap says that we should not do this, but @import each file instead |
|
13 | * # *= require_tree . |
|
13 | * # *= require_tree . |
|
14 | * # *= require_self |
|
14 | * # *= require_self |
|
15 | */ |
|
15 | */ |
|
16 |
|
16 | ||
|
17 |
- @import "jquery |
|
17 | + @import "jquery-ui"; |
|
18 | - @import "jquery.ui.core"; |
|
18 | + //@import "jquery.ui.core"; |
|
19 | - @import "jquery.ui.theme"; |
|
19 | + //@import "jquery.ui.theme"; |
|
20 | - @import "jquery.ui.datepicker"; |
|
20 | + //@import "jquery.ui.datepicker"; |
|
21 | - @import "jquery.ui.slider"; |
|
21 | + //@import "jquery.ui.slider"; |
|
22 | @import "jquery-ui-timepicker-addon"; |
|
22 | @import "jquery-ui-timepicker-addon"; |
|
23 | @import "jquery-tablesorter/theme.metro-dark"; |
|
23 | @import "jquery-tablesorter/theme.metro-dark"; |
|
24 | @import "jquery.countdown"; |
|
24 | @import "jquery.countdown"; |
|
25 | @import "tablesorter-theme.cafe"; |
|
25 | @import "tablesorter-theme.cafe"; |
|
26 |
|
26 | ||
|
27 | //bootstrap |
|
27 | //bootstrap |
|
28 | @import "bootstrap-sprockets"; |
|
28 | @import "bootstrap-sprockets"; |
|
29 | @import "bootstrap"; |
|
29 | @import "bootstrap"; |
|
30 | @import "select2"; |
|
30 | @import "select2"; |
|
31 | @import "select2-bootstrap"; |
|
31 | @import "select2-bootstrap"; |
|
32 |
|
32 | ||
|
33 | //@import bootstrap3-switch |
|
33 | //@import bootstrap3-switch |
|
34 | @import "bootstrap-toggle"; |
|
34 | @import "bootstrap-toggle"; |
|
35 | @import "bootstrap-sortable"; |
|
35 | @import "bootstrap-sortable"; |
|
36 |
|
36 | ||
|
37 | //bootstrap navbar color (from) |
|
37 | //bootstrap navbar color (from) |
|
38 | $bgDefault: #19197b; |
|
38 | $bgDefault: #19197b; |
|
39 | $bgHighlight: #06064b; |
|
39 | $bgHighlight: #06064b; |
|
40 | $colDefault: #8e8eb4; |
|
40 | $colDefault: #8e8eb4; |
|
41 | $colHighlight: #ffffff; |
|
41 | $colHighlight: #ffffff; |
|
42 | $dropDown: false; |
|
42 | $dropDown: false; |
|
43 |
|
43 | ||
|
44 | @font-face { |
|
44 | @font-face { |
|
45 | font-family: 'Glyphicons Halflings'; |
|
45 | font-family: 'Glyphicons Halflings'; |
|
46 | src: font-path('bootstrap/glyphicons-halflings-regular.eot'); |
|
46 | src: font-path('bootstrap/glyphicons-halflings-regular.eot'); |
|
47 | src: font-path('bootstrap/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), |
|
47 | src: font-path('bootstrap/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), |
|
48 | font-path('bootstrap/glyphicons-halflings-regular.woff') format('woff'), |
|
48 | font-path('bootstrap/glyphicons-halflings-regular.woff') format('woff'), |
|
49 | font-path('bootstrap/glyphicons-halflings-regular.ttf') format('truetype'), |
|
49 | font-path('bootstrap/glyphicons-halflings-regular.ttf') format('truetype'), |
|
50 | font-path('bootstrap/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); |
|
50 | font-path('bootstrap/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); |
|
51 | } |
|
51 | } |
|
52 |
|
52 | ||
|
53 |
|
53 | ||
|
54 | .navbar-default { |
|
54 | .navbar-default { |
|
55 | background-color: $bgDefault; |
|
55 | background-color: $bgDefault; |
|
56 | border-color: $bgHighlight; |
|
56 | border-color: $bgHighlight; |
|
57 |
|
57 | ||
|
58 | .navbar-brand { |
|
58 | .navbar-brand { |
|
59 | color: $colDefault; |
|
59 | color: $colDefault; |
|
60 |
|
60 | ||
|
61 | &:hover, &:focus { |
|
61 | &:hover, &:focus { |
|
62 | color: $colHighlight; |
|
62 | color: $colHighlight; |
|
63 | } |
|
63 | } |
|
64 | } |
|
64 | } |
|
65 |
|
65 | ||
|
66 | .navbar-text { |
|
66 | .navbar-text { |
|
67 | color: $colDefault; |
|
67 | color: $colDefault; |
|
68 | } |
|
68 | } |
|
69 |
|
69 | ||
|
70 | .navbar-nav { |
|
70 | .navbar-nav { |
|
71 | > li { |
|
71 | > li { |
|
72 | > a { |
|
72 | > a { |
|
73 | color: $colDefault; |
|
73 | color: $colDefault; |
|
74 |
|
74 | ||
|
75 | &:hover, &:focus { |
|
75 | &:hover, &:focus { |
|
76 | color: $colHighlight; |
|
76 | color: $colHighlight; |
|
77 | } |
|
77 | } |
|
78 | } |
|
78 | } |
|
79 |
|
79 | ||
|
80 | @if $dropDown { |
|
80 | @if $dropDown { |
|
81 | > .dropdown-menu { |
|
81 | > .dropdown-menu { |
|
82 | background-color: $bgDefault; |
|
82 | background-color: $bgDefault; |
|
83 |
|
83 | ||
|
84 | > li { |
|
84 | > li { |
|
85 | > a { |
|
85 | > a { |
|
86 | color: $colDefault; |
|
86 | color: $colDefault; |
|
87 |
|
87 | ||
|
88 | &:hover, &:focus { |
|
88 | &:hover, &:focus { |
|
89 | color: $colHighlight; |
|
89 | color: $colHighlight; |
|
90 | background-color: $bgHighlight; |
|
90 | background-color: $bgHighlight; |
|
91 | } |
|
91 | } |
|
92 | } |
|
92 | } |
|
93 |
|
93 | ||
|
94 | > .divider { |
|
94 | > .divider { |
|
95 | background-color: $bgHighlight; |
|
95 | background-color: $bgHighlight; |
|
96 | } |
|
96 | } |
|
97 | } |
|
97 | } |
|
98 | } |
|
98 | } |
|
99 | } |
|
99 | } |
|
100 | } |
|
100 | } |
|
101 |
|
101 | ||
|
102 | @if $dropDown { |
|
102 | @if $dropDown { |
|
103 | .open .dropdown-menu > .active { |
|
103 | .open .dropdown-menu > .active { |
|
104 | > a, > a:hover, > a:focus { |
|
104 | > a, > a:hover, > a:focus { |
|
105 | color: $colHighlight; |
|
105 | color: $colHighlight; |
|
106 | background-color: $bgHighlight; |
|
106 | background-color: $bgHighlight; |
|
107 | } |
|
107 | } |
|
108 | } |
|
108 | } |
|
109 | } |
|
109 | } |
|
110 |
|
110 | ||
|
111 | > .active { |
|
111 | > .active { |
|
112 | > a, > a:hover, > a:focus { |
|
112 | > a, > a:hover, > a:focus { |
|
113 | color: $colHighlight; |
|
113 | color: $colHighlight; |
|
114 | background-color: $bgHighlight; |
|
114 | background-color: $bgHighlight; |
|
115 | } |
|
115 | } |
|
116 | } |
|
116 | } |
|
117 |
|
117 |
@@ -1,39 +1,43 | |||||
|
1 | CafeGrader::Application.configure do |
|
1 | CafeGrader::Application.configure do |
|
2 | # Settings specified here will take precedence over those in config/application.rb |
|
2 | # Settings specified here will take precedence over those in config/application.rb |
|
3 |
|
3 | ||
|
4 | # The test environment is used exclusively to run your application's |
|
4 | # The test environment is used exclusively to run your application's |
|
5 | # test suite. You never need to work with it otherwise. Remember that |
|
5 | # test suite. You never need to work with it otherwise. Remember that |
|
6 | # your test database is "scratch space" for the test suite and is wiped |
|
6 | # your test database is "scratch space" for the test suite and is wiped |
|
7 | # and recreated between test runs. Don't rely on the data there! |
|
7 | # and recreated between test runs. Don't rely on the data there! |
|
8 | config.cache_classes = true |
|
8 | config.cache_classes = true |
|
9 |
|
9 | ||
|
10 | # Configure static asset server for tests with Cache-Control for performance |
|
10 | # Configure static asset server for tests with Cache-Control for performance |
|
11 | config.serve_static_files = true |
|
11 | config.serve_static_files = true |
|
12 | config.static_cache_control = "public, max-age=3600" |
|
12 | config.static_cache_control = "public, max-age=3600" |
|
13 |
|
13 | ||
|
14 | # Log error messages when you accidentally call methods on nil |
|
14 | # Log error messages when you accidentally call methods on nil |
|
15 | config.whiny_nils = true |
|
15 | config.whiny_nils = true |
|
16 |
|
16 | ||
|
17 | # Show full error reports and disable caching |
|
17 | # Show full error reports and disable caching |
|
18 | config.consider_all_requests_local = true |
|
18 | config.consider_all_requests_local = true |
|
19 | config.action_controller.perform_caching = false |
|
19 | config.action_controller.perform_caching = false |
|
20 |
|
20 | ||
|
21 | # Raise exceptions instead of rendering exception templates |
|
21 | # Raise exceptions instead of rendering exception templates |
|
22 | config.action_dispatch.show_exceptions = false |
|
22 | config.action_dispatch.show_exceptions = false |
|
23 |
|
23 | ||
|
24 | # Disable request forgery protection in test environment |
|
24 | # Disable request forgery protection in test environment |
|
25 | config.action_controller.allow_forgery_protection = false |
|
25 | config.action_controller.allow_forgery_protection = false |
|
26 |
|
26 | ||
|
27 | # Tell Action Mailer not to deliver emails to the real world. |
|
27 | # Tell Action Mailer not to deliver emails to the real world. |
|
28 | # The :test delivery method accumulates sent emails in the |
|
28 | # The :test delivery method accumulates sent emails in the |
|
29 | # ActionMailer::Base.deliveries array. |
|
29 | # ActionMailer::Base.deliveries array. |
|
30 | config.action_mailer.delivery_method = :test |
|
30 | config.action_mailer.delivery_method = :test |
|
31 |
|
31 | ||
|
32 | # Raise exception on mass assignment protection for Active Record models |
|
32 | # Raise exception on mass assignment protection for Active Record models |
|
33 | #config.active_record.mass_assignment_sanitizer = :strict // DEPRICATED |
|
33 | #config.active_record.mass_assignment_sanitizer = :strict // DEPRICATED |
|
34 |
|
34 | ||
|
35 | # Print deprecation notices to the stderr |
|
35 | # Print deprecation notices to the stderr |
|
36 | config.active_support.deprecation = :stderr |
|
36 | config.active_support.deprecation = :stderr |
|
37 |
|
37 | ||
|
38 | config.eager_load = false |
|
38 | config.eager_load = false |
|
|
39 | + | ||
|
|
40 | + #test order | ||
|
|
41 | + config.active_support.test_order = :sorted | ||
|
|
42 | + | ||
|
39 | end |
|
43 | end |
@@ -1,172 +1,187 | |||||
|
1 | CONFIGURATIONS = |
|
1 | CONFIGURATIONS = |
|
2 | [ |
|
2 | [ |
|
3 | { |
|
3 | { |
|
4 | :key => 'system.single_user_mode', |
|
4 | :key => 'system.single_user_mode', |
|
5 | :value_type => 'boolean', |
|
5 | :value_type => 'boolean', |
|
6 | :default_value => 'false', |
|
6 | :default_value => 'false', |
|
7 | :description => 'Only admins can log in to the system when running under single user mode.' |
|
7 | :description => 'Only admins can log in to the system when running under single user mode.' |
|
8 | }, |
|
8 | }, |
|
9 |
|
9 | ||
|
10 | { |
|
10 | { |
|
11 | :key => 'ui.front.title', |
|
11 | :key => 'ui.front.title', |
|
12 | :value_type => 'string', |
|
12 | :value_type => 'string', |
|
13 | :default_value => 'Grader' |
|
13 | :default_value => 'Grader' |
|
14 | }, |
|
14 | }, |
|
15 |
|
15 | ||
|
16 | { |
|
16 | { |
|
17 | :key => 'ui.front.welcome_message', |
|
17 | :key => 'ui.front.welcome_message', |
|
18 | :value_type => 'string', |
|
18 | :value_type => 'string', |
|
19 | :default_value => 'Welcome!' |
|
19 | :default_value => 'Welcome!' |
|
20 | }, |
|
20 | }, |
|
21 |
|
21 | ||
|
22 | { |
|
22 | { |
|
23 | :key => 'ui.show_score', |
|
23 | :key => 'ui.show_score', |
|
24 | :value_type => 'boolean', |
|
24 | :value_type => 'boolean', |
|
25 | :default_value => 'true' |
|
25 | :default_value => 'true' |
|
26 | }, |
|
26 | }, |
|
27 |
|
27 | ||
|
28 | { |
|
28 | { |
|
29 | :key => 'contest.time_limit', |
|
29 | :key => 'contest.time_limit', |
|
30 | :value_type => 'string', |
|
30 | :value_type => 'string', |
|
31 | :default_value => 'unlimited', |
|
31 | :default_value => 'unlimited', |
|
32 | :description => 'Time limit in format hh:mm, or "unlimited" for contests with no time limits. This config is CACHED. Restart the server before the change can take effect.' |
|
32 | :description => 'Time limit in format hh:mm, or "unlimited" for contests with no time limits. This config is CACHED. Restart the server before the change can take effect.' |
|
33 | }, |
|
33 | }, |
|
34 |
|
34 | ||
|
35 | { |
|
35 | { |
|
36 | :key => 'system.mode', |
|
36 | :key => 'system.mode', |
|
37 | :value_type => 'string', |
|
37 | :value_type => 'string', |
|
38 | :default_value => 'standard', |
|
38 | :default_value => 'standard', |
|
39 | :description => 'Current modes are "standard", "contest", "indv-contest", and "analysis".' |
|
39 | :description => 'Current modes are "standard", "contest", "indv-contest", and "analysis".' |
|
40 | }, |
|
40 | }, |
|
41 |
|
41 | ||
|
42 | { |
|
42 | { |
|
43 | :key => 'contest.name', |
|
43 | :key => 'contest.name', |
|
44 | :value_type => 'string', |
|
44 | :value_type => 'string', |
|
45 | :default_value => 'Grader', |
|
45 | :default_value => 'Grader', |
|
46 | :description => 'This name will be shown on the user header bar.' |
|
46 | :description => 'This name will be shown on the user header bar.' |
|
47 | }, |
|
47 | }, |
|
48 |
|
48 | ||
|
49 | { |
|
49 | { |
|
50 | :key => 'contest.multisites', |
|
50 | :key => 'contest.multisites', |
|
51 | :value_type => 'boolean', |
|
51 | :value_type => 'boolean', |
|
52 | :default_value => 'false', |
|
52 | :default_value => 'false', |
|
53 | :description => 'If the server is in contest mode and this option is true, on the log in of the admin a menu for site selections is shown.' |
|
53 | :description => 'If the server is in contest mode and this option is true, on the log in of the admin a menu for site selections is shown.' |
|
54 | }, |
|
54 | }, |
|
55 |
|
55 | ||
|
|
56 | + #---------------------------- right -------------------------------- | ||
|
56 | { |
|
57 | { |
|
57 | :key => 'right.user_hall_of_fame', |
|
58 | :key => 'right.user_hall_of_fame', |
|
58 | :value_type => 'boolean', |
|
59 | :value_type => 'boolean', |
|
59 | :default_value => 'false', |
|
60 | :default_value => 'false', |
|
60 | :description => 'If true, any user can access hall of fame page.' |
|
61 | :description => 'If true, any user can access hall of fame page.' |
|
61 | }, |
|
62 | }, |
|
62 |
|
63 | ||
|
63 | { |
|
64 | { |
|
64 | :key => 'right.multiple_ip_login', |
|
65 | :key => 'right.multiple_ip_login', |
|
65 | :value_type => 'boolean', |
|
66 | :value_type => 'boolean', |
|
66 | :default_value => 'true', |
|
67 | :default_value => 'true', |
|
67 | :description => 'When change from true to false, a user can login from the first IP they logged into afterward.' |
|
68 | :description => 'When change from true to false, a user can login from the first IP they logged into afterward.' |
|
68 | }, |
|
69 | }, |
|
69 |
|
70 | ||
|
70 | { |
|
71 | { |
|
71 | :key => 'right.user_view_submission', |
|
72 | :key => 'right.user_view_submission', |
|
72 | :value_type => 'boolean', |
|
73 | :value_type => 'boolean', |
|
73 | :default_value => 'false', |
|
74 | :default_value => 'false', |
|
74 | :description => 'If true, any user can view submissions of every one.' |
|
75 | :description => 'If true, any user can view submissions of every one.' |
|
75 | }, |
|
76 | }, |
|
76 |
|
77 | ||
|
|
78 | + { | ||
|
|
79 | + :key => 'right.bypass_agreement', | ||
|
|
80 | + :value_type => 'boolean', | ||
|
|
81 | + :default_value => 'true', | ||
|
|
82 | + :description => 'When false, a user must accept usage agreement before login' | ||
|
|
83 | + }, | ||
|
|
84 | + | ||
|
|
85 | + { | ||
|
|
86 | + :key => 'right.heartbeat_response', | ||
|
|
87 | + :value_type => 'string', | ||
|
|
88 | + :default_value => 'OK', | ||
|
|
89 | + :description => 'Heart beat response text' | ||
|
|
90 | + }, | ||
|
|
91 | + | ||
|
77 | # If Configuration['system.online_registration'] is true, the |
|
92 | # If Configuration['system.online_registration'] is true, the |
|
78 | # system allows online registration, and will use these |
|
93 | # system allows online registration, and will use these |
|
79 | # information for sending confirmation emails. |
|
94 | # information for sending confirmation emails. |
|
80 | { |
|
95 | { |
|
81 | :key => 'system.online_registration.smtp', |
|
96 | :key => 'system.online_registration.smtp', |
|
82 | :value_type => 'string', |
|
97 | :value_type => 'string', |
|
83 | :default_value => 'smtp.somehost.com' |
|
98 | :default_value => 'smtp.somehost.com' |
|
84 | }, |
|
99 | }, |
|
85 |
|
100 | ||
|
86 | { |
|
101 | { |
|
87 | :key => 'system.online_registration.from', |
|
102 | :key => 'system.online_registration.from', |
|
88 | :value_type => 'string', |
|
103 | :value_type => 'string', |
|
89 | :default_value => 'your.email@address' |
|
104 | :default_value => 'your.email@address' |
|
90 | }, |
|
105 | }, |
|
91 |
|
106 | ||
|
92 | { |
|
107 | { |
|
93 | :key => 'system.admin_email', |
|
108 | :key => 'system.admin_email', |
|
94 | :value_type => 'string', |
|
109 | :value_type => 'string', |
|
95 | :default_value => 'admin@admin.email' |
|
110 | :default_value => 'admin@admin.email' |
|
96 | }, |
|
111 | }, |
|
97 |
|
112 | ||
|
98 | { |
|
113 | { |
|
99 | :key => 'system.user_setting_enabled', |
|
114 | :key => 'system.user_setting_enabled', |
|
100 | :value_type => 'boolean', |
|
115 | :value_type => 'boolean', |
|
101 | :default_value => 'true', |
|
116 | :default_value => 'true', |
|
102 | :description => 'If this option is true, users can change their settings' |
|
117 | :description => 'If this option is true, users can change their settings' |
|
103 | }, |
|
118 | }, |
|
104 |
|
119 | ||
|
105 | { |
|
120 | { |
|
106 | :key => 'system.user_setting_enabled', |
|
121 | :key => 'system.user_setting_enabled', |
|
107 | :value_type => 'boolean', |
|
122 | :value_type => 'boolean', |
|
108 | :default_value => 'true', |
|
123 | :default_value => 'true', |
|
109 | :description => 'If this option is true, users can change their settings' |
|
124 | :description => 'If this option is true, users can change their settings' |
|
110 | }, |
|
125 | }, |
|
111 |
|
126 | ||
|
112 | # If Configuration['contest.test_request.early_timeout'] is true |
|
127 | # If Configuration['contest.test_request.early_timeout'] is true |
|
113 | # the user will not be able to use test request at 30 minutes |
|
128 | # the user will not be able to use test request at 30 minutes |
|
114 | # before the contest ends. |
|
129 | # before the contest ends. |
|
115 | { |
|
130 | { |
|
116 | :key => 'contest.test_request.early_timeout', |
|
131 | :key => 'contest.test_request.early_timeout', |
|
117 | :value_type => 'boolean', |
|
132 | :value_type => 'boolean', |
|
118 | :default_value => 'false' |
|
133 | :default_value => 'false' |
|
119 | }, |
|
134 | }, |
|
120 |
|
135 | ||
|
121 | { |
|
136 | { |
|
122 | :key => 'system.multicontests', |
|
137 | :key => 'system.multicontests', |
|
123 | :value_type => 'boolean', |
|
138 | :value_type => 'boolean', |
|
124 | :default_value => 'false' |
|
139 | :default_value => 'false' |
|
125 | }, |
|
140 | }, |
|
126 |
|
141 | ||
|
127 | { |
|
142 | { |
|
128 | :key => 'contest.confirm_indv_contest_start', |
|
143 | :key => 'contest.confirm_indv_contest_start', |
|
129 | :value_type => 'boolean', |
|
144 | :value_type => 'boolean', |
|
130 | :default_value => 'false' |
|
145 | :default_value => 'false' |
|
131 | }, |
|
146 | }, |
|
132 |
|
147 | ||
|
133 | { |
|
148 | { |
|
134 | :key => 'contest.default_contest_name', |
|
149 | :key => 'contest.default_contest_name', |
|
135 | :value_type => 'string', |
|
150 | :value_type => 'string', |
|
136 | :default_value => 'none', |
|
151 | :default_value => 'none', |
|
137 | :description => "New user will be assigned to this contest automatically, if it exists. Set to 'none' if there is no default contest." |
|
152 | :description => "New user will be assigned to this contest automatically, if it exists. Set to 'none' if there is no default contest." |
|
138 | } |
|
153 | } |
|
139 |
|
154 | ||
|
140 | ] |
|
155 | ] |
|
141 |
|
156 | ||
|
142 |
|
157 | ||
|
143 | def create_configuration_key(key, |
|
158 | def create_configuration_key(key, |
|
144 | value_type, |
|
159 | value_type, |
|
145 | default_value, |
|
160 | default_value, |
|
146 | description='') |
|
161 | description='') |
|
147 | conf = (GraderConfiguration.find_by_key(key) || |
|
162 | conf = (GraderConfiguration.find_by_key(key) || |
|
148 | GraderConfiguration.new(:key => key, |
|
163 | GraderConfiguration.new(:key => key, |
|
149 | :value_type => value_type, |
|
164 | :value_type => value_type, |
|
150 | :value => default_value)) |
|
165 | :value => default_value)) |
|
151 | conf.description = description |
|
166 | conf.description = description |
|
152 | conf.save |
|
167 | conf.save |
|
153 | end |
|
168 | end |
|
154 |
|
169 | ||
|
155 | def seed_config |
|
170 | def seed_config |
|
156 | CONFIGURATIONS.each do |conf| |
|
171 | CONFIGURATIONS.each do |conf| |
|
157 | if conf.has_key? :description |
|
172 | if conf.has_key? :description |
|
158 | desc = conf[:description] |
|
173 | desc = conf[:description] |
|
159 | else |
|
174 | else |
|
160 | desc = '' |
|
175 | desc = '' |
|
161 | end |
|
176 | end |
|
162 | create_configuration_key(conf[:key], |
|
177 | create_configuration_key(conf[:key], |
|
163 | conf[:value_type], |
|
178 | conf[:value_type], |
|
164 | conf[:default_value], |
|
179 | conf[:default_value], |
|
165 | desc) |
|
180 | desc) |
|
166 | end |
|
181 | end |
|
167 | end |
|
182 | end |
|
168 |
|
183 | ||
|
169 | def seed_roles |
|
184 | def seed_roles |
|
170 | return if Role.find_by_name('admin') |
|
185 | return if Role.find_by_name('admin') |
|
171 |
|
186 | ||
|
172 | role = Role.create(:name => 'admin') |
|
187 | role = Role.create(:name => 'admin') |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
deleted file |
You need to be logged in to leave comments.
Login now