Description:
update to 3.1.0, update rdoc
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r821:7ceba92b053f - - 4 files changed: 10 inserted, 6 deleted
@@ -1,28 +1,28 | |||||
|
1 | source 'https://rubygems.org' |
|
1 | source 'https://rubygems.org' |
|
2 | git_source(:github) { |repo| "https://github.com/#{repo}.git" } |
|
2 | git_source(:github) { |repo| "https://github.com/#{repo}.git" } |
|
3 |
|
3 | ||
|
4 |
- ruby '3. |
|
4 | + ruby '3.1.0' |
|
5 |
|
5 | ||
|
6 | #rails |
|
6 | #rails |
|
7 | gem 'rails', '~>7.0' |
|
7 | gem 'rails', '~>7.0' |
|
8 |
|
8 | ||
|
9 | # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] |
|
9 | # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] |
|
10 | gem "sprockets-rails" |
|
10 | gem "sprockets-rails" |
|
11 |
|
11 | ||
|
12 | gem 'activerecord-session_store' |
|
12 | gem 'activerecord-session_store' |
|
13 | gem 'puma' |
|
13 | gem 'puma' |
|
14 |
|
14 | ||
|
15 | # Reduces boot times through caching; required in config/boot.rb |
|
15 | # Reduces boot times through caching; required in config/boot.rb |
|
16 | gem 'bootsnap', require: false |
|
16 | gem 'bootsnap', require: false |
|
17 |
|
17 | ||
|
18 | # Bundle edge Rails instead: |
|
18 | # Bundle edge Rails instead: |
|
19 | # gem 'rails', :git => 'git://github.com/rails/rails.git' |
|
19 | # gem 'rails', :git => 'git://github.com/rails/rails.git' |
|
20 |
|
20 | ||
|
21 | #---------------- database --------------------- |
|
21 | #---------------- database --------------------- |
|
22 | #the database |
|
22 | #the database |
|
23 | gem 'mysql2' |
|
23 | gem 'mysql2' |
|
24 | #for testing |
|
24 | #for testing |
|
25 | gem 'sqlite3' |
|
25 | gem 'sqlite3' |
|
26 | gem 'rails-controller-testing' |
|
26 | gem 'rails-controller-testing' |
|
27 | #for dumping database into yaml |
|
27 | #for dumping database into yaml |
|
28 | gem 'yaml_db' |
|
28 | gem 'yaml_db' |
@@ -157,49 +157,49 | |||||
|
157 | actionview (>= 5.0.0) |
|
157 | actionview (>= 5.0.0) |
|
158 | activesupport (>= 5.0.0) |
|
158 | activesupport (>= 5.0.0) |
|
159 | jquery-countdown-rails (2.0.2) |
|
159 | jquery-countdown-rails (2.0.2) |
|
160 | jquery-rails (4.4.0) |
|
160 | jquery-rails (4.4.0) |
|
161 | rails-dom-testing (>= 1, < 3) |
|
161 | rails-dom-testing (>= 1, < 3) |
|
162 | railties (>= 4.2.0) |
|
162 | railties (>= 4.2.0) |
|
163 | thor (>= 0.14, < 2.0) |
|
163 | thor (>= 0.14, < 2.0) |
|
164 | jquery-tablesorter (1.27.2) |
|
164 | jquery-tablesorter (1.27.2) |
|
165 | railties (>= 3.2) |
|
165 | railties (>= 3.2) |
|
166 | jquery-ui-rails (6.0.1) |
|
166 | jquery-ui-rails (6.0.1) |
|
167 | railties (>= 3.2.16) |
|
167 | railties (>= 3.2.16) |
|
168 | listen (3.0.8) |
|
168 | listen (3.0.8) |
|
169 | rb-fsevent (~> 0.9, >= 0.9.4) |
|
169 | rb-fsevent (~> 0.9, >= 0.9.4) |
|
170 | rb-inotify (~> 0.9, >= 0.9.7) |
|
170 | rb-inotify (~> 0.9, >= 0.9.7) |
|
171 | loofah (2.13.0) |
|
171 | loofah (2.13.0) |
|
172 | crass (~> 1.0.2) |
|
172 | crass (~> 1.0.2) |
|
173 | nokogiri (>= 1.5.9) |
|
173 | nokogiri (>= 1.5.9) |
|
174 | mail (2.7.1) |
|
174 | mail (2.7.1) |
|
175 | mini_mime (>= 0.1.1) |
|
175 | mini_mime (>= 0.1.1) |
|
176 | marcel (1.0.2) |
|
176 | marcel (1.0.2) |
|
177 | matrix (0.4.2) |
|
177 | matrix (0.4.2) |
|
178 | method_source (1.0.0) |
|
178 | method_source (1.0.0) |
|
179 | mini_mime (1.1.2) |
|
179 | mini_mime (1.1.2) |
|
180 | minitest (5.15.0) |
|
180 | minitest (5.15.0) |
|
181 |
- minitest-reporters (1. |
|
181 | + minitest-reporters (1.5.0) |
|
182 | ansi |
|
182 | ansi |
|
183 | builder |
|
183 | builder |
|
184 | minitest (>= 5.0) |
|
184 | minitest (>= 5.0) |
|
185 | ruby-progressbar |
|
185 | ruby-progressbar |
|
186 | momentjs-rails (2.29.1.1) |
|
186 | momentjs-rails (2.29.1.1) |
|
187 | railties (>= 3.1) |
|
187 | railties (>= 3.1) |
|
188 | msgpack (1.4.2) |
|
188 | msgpack (1.4.2) |
|
189 | multi_json (1.15.0) |
|
189 | multi_json (1.15.0) |
|
190 | mysql2 (0.5.3) |
|
190 | mysql2 (0.5.3) |
|
191 | net-imap (0.2.3) |
|
191 | net-imap (0.2.3) |
|
192 | digest |
|
192 | digest |
|
193 | net-protocol |
|
193 | net-protocol |
|
194 | strscan |
|
194 | strscan |
|
195 | net-pop (0.1.1) |
|
195 | net-pop (0.1.1) |
|
196 | digest |
|
196 | digest |
|
197 | net-protocol |
|
197 | net-protocol |
|
198 | timeout |
|
198 | timeout |
|
199 | net-protocol (0.1.2) |
|
199 | net-protocol (0.1.2) |
|
200 | io-wait |
|
200 | io-wait |
|
201 | timeout |
|
201 | timeout |
|
202 | net-smtp (0.3.1) |
|
202 | net-smtp (0.3.1) |
|
203 | digest |
|
203 | digest |
|
204 | net-protocol |
|
204 | net-protocol |
|
205 | timeout |
|
205 | timeout |
@@ -346,28 +346,28 | |||||
|
346 |
|
346 | ||
|
347 | minitest-reporters |
|
347 | minitest-reporters |
|
348 | momentjs-rails (>= 2.9.0) |
|
348 | momentjs-rails (>= 2.9.0) |
|
349 | mysql2 |
|
349 | mysql2 |
|
350 | puma |
|
350 | puma |
|
351 | rails (~> 7.0) |
|
351 | rails (~> 7.0) |
|
352 | rails-controller-testing |
|
352 | rails-controller-testing |
|
353 | rails_bootstrap_sortable |
|
353 | rails_bootstrap_sortable |
|
354 | rdiscount |
|
354 | rdiscount |
|
355 | rouge |
|
355 | rouge |
|
356 | sassc-rails |
|
356 | sassc-rails |
|
357 | select2-rails |
|
357 | select2-rails |
|
358 | selenium-webdriver |
|
358 | selenium-webdriver |
|
359 | simple_form |
|
359 | simple_form |
|
360 | spring |
|
360 | spring |
|
361 | spring-watcher-listen (~> 2.0.0) |
|
361 | spring-watcher-listen (~> 2.0.0) |
|
362 | sprockets-rails |
|
362 | sprockets-rails |
|
363 | sqlite3 |
|
363 | sqlite3 |
|
364 | uglifier |
|
364 | uglifier |
|
365 | web-console (>= 3.3.0) |
|
365 | web-console (>= 3.3.0) |
|
366 | webdrivers |
|
366 | webdrivers |
|
367 | yaml_db |
|
367 | yaml_db |
|
368 |
|
368 | ||
|
369 | RUBY VERSION |
|
369 | RUBY VERSION |
|
370 |
- ruby 3. |
|
370 | + ruby 3.1.0p0 |
|
371 |
|
371 | ||
|
372 | BUNDLED WITH |
|
372 | BUNDLED WITH |
|
373 | 2.3.5 |
|
373 | 2.3.5 |
@@ -24,51 +24,55 | |||||
|
24 |
|
24 | ||
|
25 | mysql> create database DATABASENAME; |
|
25 | mysql> create database DATABASENAME; |
|
26 | Query OK, 1 row affected (0.00 sec) |
|
26 | Query OK, 1 row affected (0.00 sec) |
|
27 |
|
27 | ||
|
28 | mysql> grant all privileges on DATABASENAME.* to USERNAME@localhost identified by 'PASSWORD'; |
|
28 | mysql> grant all privileges on DATABASENAME.* to USERNAME@localhost identified by 'PASSWORD'; |
|
29 | Query OK, 0 rows affected, 1 warning (0.00 sec) |
|
29 | Query OK, 0 rows affected, 1 warning (0.00 sec) |
|
30 |
|
30 | ||
|
31 | mysql> flush privileges; |
|
31 | mysql> flush privileges; |
|
32 | Query OK, 0 rows affected (0.00 sec) |
|
32 | Query OK, 0 rows affected (0.00 sec) |
|
33 |
|
33 | ||
|
34 | === 2. Install RVM |
|
34 | === 2. Install RVM |
|
35 |
|
35 | ||
|
36 | Since Ubuntu has dedicated package for RVM we will use that. Just follow instruction given in https://github.com/rvm/ubuntu_rvm. For your convenience, the step are reproduced here. |
|
36 | Since Ubuntu has dedicated package for RVM we will use that. Just follow instruction given in https://github.com/rvm/ubuntu_rvm. For your convenience, the step are reproduced here. |
|
37 |
|
37 | ||
|
38 | First, we install necessary package for installing RVM. |
|
38 | First, we install necessary package for installing RVM. |
|
39 |
|
39 | ||
|
40 | cafe@grader:~$ sudo apt install software-properties-common |
|
40 | cafe@grader:~$ sudo apt install software-properties-common |
|
41 |
|
41 | ||
|
42 | Second, we add the custom PPA, update the system and install RVM. |
|
42 | Second, we add the custom PPA, update the system and install RVM. |
|
43 |
|
43 | ||
|
44 | cafe@grader:~$ sudo apt-add-repository -y ppa:rael-gc/rvm |
|
44 | cafe@grader:~$ sudo apt-add-repository -y ppa:rael-gc/rvm |
|
45 | cafe@grader:~$ sudo apt-get update |
|
45 | cafe@grader:~$ sudo apt-get update |
|
46 | cafe@grader:~$ sudo apt-get install rvm |
|
46 | cafe@grader:~$ sudo apt-get install rvm |
|
47 |
|
47 | ||
|
48 | - This is very important. You have to logout and login again since RVM change a lots of system. |
|
48 | + We also need to add our user to the rvm group |
|
|
49 | + | ||
|
|
50 | + sudo usermod -a -G rvm $USER | ||
|
49 |
|
51 | ||
|
50 | - If you are using GUI version of Ubuntu, be sure to have Gnome Terminal (or any other terminal you are using) perform login every time. This can be done by mark the check box "Run command as a login shell" in Gnome terminal or by adding --login to bash. |
|
52 | + This is very important. |
|
|
53 | + 1. You have to reboot since RVM change a lots of system. | ||
|
|
54 | + 2. If you are using GUI version of Ubuntu, be sure to have Gnome Terminal (or any other terminal you are using) perform login every time. This can be done by mark the check box "Run command as a login shell" in Gnome terminal or by adding --login to bash. | ||
|
51 |
|
55 | ||
|
52 | === 3. Install necessary package |
|
56 | === 3. Install necessary package |
|
53 |
|
57 | ||
|
54 | cafe@grader:~$ sudo apt install libmysqlclient-dev default-jdk unzip nodejs php-cli apache2 dirmngr gnupg apache2-dev |
|
58 | cafe@grader:~$ sudo apt install libmysqlclient-dev default-jdk unzip nodejs php-cli apache2 dirmngr gnupg apache2-dev |
|
55 |
|
59 | ||
|
56 | === 4. Install cafe-grader |
|
60 | === 4. Install cafe-grader |
|
57 |
|
61 | ||
|
58 | First, ensure that RVM is installed correctly. |
|
62 | First, ensure that RVM is installed correctly. |
|
59 |
|
63 | ||
|
60 | cafe@grader:~$ rvm |
|
64 | cafe@grader:~$ rvm |
|
61 |
|
65 | ||
|
62 | If you get a result similar to this. |
|
66 | If you get a result similar to this. |
|
63 |
|
67 | ||
|
64 | Command 'rvm' not found, but there are 21 similar ones. |
|
68 | Command 'rvm' not found, but there are 21 similar ones. |
|
65 |
|
69 | ||
|
66 | It is very likely that you have not re-login or you are using bash without --login. Please do so and re-read the installation of RVM on Ubuntu https://github.com/rvm/ubuntu_rvm again. |
|
70 | It is very likely that you have not re-login or you are using bash without --login. Please do so and re-read the installation of RVM on Ubuntu https://github.com/rvm/ubuntu_rvm again. |
|
67 |
|
71 | ||
|
68 | Next, we will let the install script do the work of installing cafe-grader. Please prepare the DATABASENAME, USERNAME and PASSWORD as the script will ask for that. Make sure that you run the script from the home directory of the user. |
|
72 | Next, we will let the install script do the work of installing cafe-grader. Please prepare the DATABASENAME, USERNAME and PASSWORD as the script will ask for that. Make sure that you run the script from the home directory of the user. |
|
69 |
|
73 | ||
|
70 | cafe@grader:~$ wget https://github.com/cafe-grader-team/cafe-grader-judge-scripts/raw/master/installer/install.sh |
|
74 | cafe@grader:~$ wget https://github.com/cafe-grader-team/cafe-grader-judge-scripts/raw/master/installer/install.sh |
|
71 | cafe@grader:~$ . ./install.sh |
|
75 | cafe@grader:~$ . ./install.sh |
|
72 |
|
76 | ||
|
73 | After installation is finished, grader is ready to run in development mode via WEBrick. We will try that by the following command which will start a grader accessible via http://localhost:3000/. You can try logging in to the system and verify that it is actually work. |
|
77 | After installation is finished, grader is ready to run in development mode via WEBrick. We will try that by the following command which will start a grader accessible via http://localhost:3000/. You can try logging in to the system and verify that it is actually work. |
|
74 |
|
78 |
You need to be logged in to leave comments.
Login now