Skip to content

Commit a6ee025

Browse files
author
naraesk
authored
Merge pull request #27 from softvis-research/development
Development
2 parents b81ec72 + 0912537 commit a6ee025

221 files changed

Lines changed: 22630 additions & 704402 deletions

File tree

Some content is hidden

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

.travis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
before_script:
2-
- cp evaluationserver/config/database.travis.yml evaluationserver/config/database.yml
3-
- "mysql -e 'create database eval_server_test;'"
4-
- cd evaluationserver/
5-
- bundle install
6-
env:
7-
- RAILS_ENV=test
2+
- cp evaluationserver/config/database.travis.yml evaluationserver/config/database.yml
3+
- mysql -e 'create database eval_server_test;'
4+
- cd evaluationserver/
5+
- bundle install
6+
env:
7+
secure: Nyq2gajx/TWjeIZtGZSkHREgpE0BhuQg6VOscDKKrenN/CPZ/8wT/h3DYrXOTq+Pz4yOGBgDbptXdT4szu88H5lCNcCfzTnyp/Y+NE/t12nheNFrzlm2L4ryF5IvpAHEXJLYkoJRHXvD4FWTsp/SI3RPLMu9ah2J7gheGSHomZKoApYTLp1NjVSRAgrWGjodMHIYC7d40pNoMyMa/i3EDUHLQ3kNc1U3GGmzaj3Et1Ak6UMQeRE5ph9bfYOZy83Cit9DedeEdbdrnvLa23z/UVp/dmpEchd/844MOKoeX8HPpYW1x/1CovYn3/dshf/bhAkMvngTtJCgyrEpWgy9bb5bwnvjOz2FxBFB8eb/7hfK//6fynCCe5XmPahnIddp7kSNmHwaT4zwUSlFIFegaeZyr6uC5JYFue9i1rICSbAKqOc4EmrL9nKY9Mh6CvW232qiSTvNN02CiSZsAKdA61ou3H7X9UK7WeEAIC43WHkuM5Rn9leB6QC5nwp0UUqY6jbGknoDtvq87t2tVIiAy5aPmpKnrf0C4uUmaz6zZWz4vvjHok6Kuh6ut2LucwVvisCJ7wTRSXB43ubCsuOMSDkd7u4JJUPJPlzc57rQoXSBm68bnuy7SQ2l/epQbl/O9lrxkQLA52JxNF8zdMT7ZKfoGQkQZjXF1YNhp4VHmfA=
88
language: ruby
99
rvm:
10-
- 2.5.0
10+
- 2.5.0
1111
script:
12-
- bundle exec rails db:migrate RAILS_ENV=test
13-
- bundle exec rspec
12+
- bundle exec rails db:migrate RAILS_ENV=test
13+
- bundle exec rspec
1414
after_failure:
15-
- "mysql -e 'show databases;'"
16-
- "cat ./config/database.yml"
17-
- "echo $RAILS_ENV"
18-
- "bundle exec rake --version"
15+
- mysql -e 'show databases;'
16+
- cat ./config/database.yml
17+
- echo $RAILS_ENV
18+
- bundle exec rake --version

evaluationserver/Dockerfile.prod

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

evaluationserver/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ gem "font-awesome-rails"
7474
gem "therubyracer"
7575
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
7676
gem 'bootstrap-sass', '~> 3.2.0'
77-
gem "paperclip", "~> 4.1"
78-
gem "nokogiri", '1.8.1'
77+
gem "paperclip"
78+
gem "nokogiri"
7979
gem "rubyzip"
8080
gem "actionmailer"
8181
#gem "jquery-sortable-rails"

evaluationserver/Gemfile.lock

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ GEM
4242
i18n (>= 0.7, < 2)
4343
minitest (~> 5.1)
4444
tzinfo (~> 1.1)
45-
acts_as_list (0.9.12)
45+
acts_as_list (0.9.15)
4646
activerecord (>= 3.0)
4747
addressable (2.5.2)
4848
public_suffix (>= 2.0.2, < 4.0)
@@ -52,21 +52,19 @@ GEM
5252
rails (>= 4.0.0)
5353
bootstrap-sass (3.2.0.2)
5454
sass (~> 3.2)
55-
brakeman (4.3.0)
55+
brakeman (4.3.1)
5656
builder (3.2.3)
57-
capybara (3.1.1)
57+
capybara (3.4.1)
5858
addressable
5959
mini_mime (>= 0.1.3)
6060
nokogiri (~> 1.8)
6161
rack (>= 1.6.0)
6262
rack-test (>= 0.6.3)
63-
xpath (~> 3.0)
63+
xpath (~> 3.1)
6464
capybara-screenshot (1.0.21)
6565
capybara (>= 1.0, < 4)
6666
launchy
6767
climate_control (0.2.0)
68-
cocaine (0.5.8)
69-
climate_control (>= 0.0.3, < 1.0)
7068
cocoon (1.2.11)
7169
commonjs (0.2.7)
7270
concurrent-ruby (1.0.5)
@@ -84,15 +82,15 @@ GEM
8482
factory_bot_rails (4.10.0)
8583
factory_bot (~> 4.10.0)
8684
railties (>= 3.0.0)
87-
faker (1.8.7)
85+
faker (1.9.1)
8886
i18n (>= 0.7)
89-
ffi (1.9.23)
87+
ffi (1.9.25)
9088
font-awesome-rails (4.7.0.4)
9189
railties (>= 3.2, < 6.0)
9290
globalid (0.4.1)
9391
activesupport (>= 4.2.0)
9492
grease (0.3.1)
95-
highline (1.7.10)
93+
highline (2.0.0)
9694
i18n (1.0.1)
9795
concurrent-ruby (~> 1.0)
9896
i18n-tasks (0.9.21)
@@ -146,21 +144,22 @@ GEM
146144
multi-select-rails (0.9.12)
147145
railties (>= 3.0)
148146
multi_json (1.13.1)
149-
mysql2 (0.5.1)
147+
mysql2 (0.5.2)
150148
nio4r (2.3.1)
151-
nokogiri (1.8.1)
149+
nokogiri (1.8.4)
152150
mini_portile2 (~> 2.3.0)
153-
paperclip (4.2.4)
154-
activemodel (>= 3.2.0)
155-
activesupport (>= 3.2.0)
156-
cocaine (~> 0.5.5)
151+
paperclip (6.0.0)
152+
activemodel (>= 4.2.0)
153+
activesupport (>= 4.2.0)
157154
mime-types
158-
parser (2.5.1.0)
155+
mimemagic (~> 0.3.0)
156+
terrapin (~> 0.6.0)
157+
parser (2.5.1.2)
159158
ast (~> 2.4.0)
160159
public_suffix (3.0.2)
161-
puma (3.11.4)
160+
puma (3.12.0)
162161
rack (2.0.5)
163-
rack-test (1.0.0)
162+
rack-test (1.1.0)
164163
rack (>= 1.0, < 3)
165164
rails (5.2.0)
166165
actioncable (= 5.2.0)
@@ -189,7 +188,7 @@ GEM
189188
thor (>= 0.18.1, < 2.0)
190189
rainbow (3.0.0)
191190
rake (12.3.1)
192-
ranked-model (0.4.0)
191+
ranked-model (0.4.1)
193192
activerecord (>= 3.1.12)
194193
rb-fsevent (0.10.3)
195194
rb-inotify (0.9.10)
@@ -215,7 +214,7 @@ GEM
215214
rspec-support (3.7.1)
216215
ruby_dep (1.5.0)
217216
rubyzip (1.2.1)
218-
sass (3.5.6)
217+
sass (3.5.7)
219218
sass-listen (~> 4.0.0)
220219
sass-listen (4.0.0)
221220
rb-fsevent (~> 0.9, >= 0.9.4)
@@ -233,7 +232,7 @@ GEM
233232
json (>= 1.8, < 3)
234233
simplecov-html (~> 0.10.0)
235234
simplecov-html (0.10.2)
236-
sprockets (3.7.1)
235+
sprockets (3.7.2)
237236
concurrent-ruby (~> 1.0)
238237
rack (> 1, < 3)
239238
sprockets-rails (3.2.1)
@@ -242,23 +241,25 @@ GEM
242241
sprockets (>= 3.0.0)
243242
terminal-table (1.8.0)
244243
unicode-display_width (~> 1.1, >= 1.1.1)
244+
terrapin (0.6.0)
245+
climate_control (>= 0.0.3, < 1.0)
245246
therubyracer (0.12.3)
246247
libv8 (~> 3.16.14.15)
247248
ref
248249
thor (0.20.0)
249250
thread (0.2.2)
250251
thread_safe (0.3.6)
251252
tilt (2.0.8)
252-
tinymce-rails (4.7.13)
253+
tinymce-rails (4.8.0)
253254
railties (>= 3.1.1)
254255
turbolinks (5.1.1)
255256
turbolinks-source (~> 5.1)
256257
turbolinks-source (5.1.0)
257258
tzinfo (1.2.5)
258259
thread_safe (~> 0.1)
259-
uglifier (4.1.10)
260+
uglifier (4.1.15)
260261
execjs (>= 0.3.0, < 3)
261-
unicode-display_width (1.3.3)
262+
unicode-display_width (1.4.0)
262263
websocket-driver (0.7.0)
263264
websocket-extensions (>= 0.1.0)
264265
websocket-extensions (0.1.3)
@@ -289,8 +290,8 @@ DEPENDENCIES
289290
listen
290291
multi-select-rails
291292
mysql2
292-
nokogiri (= 1.8.1)
293-
paperclip (~> 4.1)
293+
nokogiri
294+
paperclip
294295
puma
295296
rails
296297
rails_serve_static_assets
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<li><%= link_to t(:privacy_declaration, scope: :layout), "http://home.uni-leipzig.de/svis/privacy-policy/", target: :_blank %></li>
2+
<li><%= link_to t(:imprint, scope: :layout), "http://home.uni-leipzig.de/svis/impressum/", target: :_blank %></li>
3+
4+

evaluationserver/app/views/layouts/_blank_header.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
<!-- Collect the nav links, forms, and other content for toggling -->
1515
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
16+
<ul class="nav navbar-nav navbar-right">
17+
<%= render :partial => "navbar_gdpr_links" %>
18+
</ul>
1619
</div><!-- /.navbar-collapse -->
1720
</div><!-- /.container-fluid -->
1821
</nav>

evaluationserver/app/views/layouts/_header.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
</li>
3030
</ul>
3131
<ul class="nav navbar-nav navbar-right">
32-
<li><%= link_to t(:admin_off, scope: :layout), admin_mode_off_path %></li>
32+
<%= render :partial => "navbar_gdpr_links" %>
33+
<li><%= link_to t(:admin_off, scope: :layout), admin_mode_off_path %></li>
3334
</ul>
3435
</div><!-- /.navbar-collapse -->
3536
</div><!-- /.container-fluid -->

evaluationserver/app/views/layouts/_navbar_header.html.erb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414

1515
<!-- Collect the nav links, forms, and other content for toggling -->
1616
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
17-
<ul class="nav navbar-nav navbar-right">
18-
<% if content_for?(:remarks) %>
17+
<ul class="nav navbar-nav navbar-right">
18+
<%= render :partial => "navbar_gdpr_links" %>
19+
20+
<% if content_for?(:remarks) %>
1921
<li class="dropdown">
2022
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Remarks<span class="caret"></span></a>
2123
<ul class="dropdown-menu" role="menu">

evaluationserver/app/views/layouts/_simple_header.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<li><%= link_to t(:experiments, scope: :layout), experiments_path %></li>
1919
</ul>
2020
<ul class="nav navbar-nav navbar-right">
21+
<%= render :partial => "navbar_gdpr_links" %>
2122
<li><%= link_to t(:admin_on, scope: :layout), admin_mode_on_path %></li>
2223
</ul>
2324
</div><!-- /.navbar-collapse -->

evaluationserver/bin/docker_start

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ bundle install --jobs 4 --retry 3
99
echo "Clearing logs"
1010
bin/rake log:clear
1111

12+
production="production"
13+
14+
if [ "$RAILS_ENV" == "$production" ]
15+
then
16+
bin/rails assets:precompile
17+
fi
18+
1219
echo "Setting up new db if one doesn't exist"
1320
bundle exec rake db:migrate
1421

@@ -21,4 +28,4 @@ rm -f tmp/pids/server.pid
2128

2229

2330
echo "Starting app server"
24-
bundle exec rails s -p 8081 -b 0.0.0.0
31+
bundle exec rails s -p 8081 -b 0.0.0.0

0 commit comments

Comments
 (0)