Skip to content

Commit

Permalink
Merge pull request #27 from softvis-research/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
naraesk authored Sep 19, 2018
2 parents b81ec72 + 0912537 commit a6ee025
Show file tree
Hide file tree
Showing 221 changed files with 22,630 additions and 704,402 deletions.
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
before_script:
- cp evaluationserver/config/database.travis.yml evaluationserver/config/database.yml
- "mysql -e 'create database eval_server_test;'"
- cd evaluationserver/
- bundle install
env:
- RAILS_ENV=test
- cp evaluationserver/config/database.travis.yml evaluationserver/config/database.yml
- mysql -e 'create database eval_server_test;'
- cd evaluationserver/
- bundle install
env:
secure: Nyq2gajx/TWjeIZtGZSkHREgpE0BhuQg6VOscDKKrenN/CPZ/8wT/h3DYrXOTq+Pz4yOGBgDbptXdT4szu88H5lCNcCfzTnyp/Y+NE/t12nheNFrzlm2L4ryF5IvpAHEXJLYkoJRHXvD4FWTsp/SI3RPLMu9ah2J7gheGSHomZKoApYTLp1NjVSRAgrWGjodMHIYC7d40pNoMyMa/i3EDUHLQ3kNc1U3GGmzaj3Et1Ak6UMQeRE5ph9bfYOZy83Cit9DedeEdbdrnvLa23z/UVp/dmpEchd/844MOKoeX8HPpYW1x/1CovYn3/dshf/bhAkMvngTtJCgyrEpWgy9bb5bwnvjOz2FxBFB8eb/7hfK//6fynCCe5XmPahnIddp7kSNmHwaT4zwUSlFIFegaeZyr6uC5JYFue9i1rICSbAKqOc4EmrL9nKY9Mh6CvW232qiSTvNN02CiSZsAKdA61ou3H7X9UK7WeEAIC43WHkuM5Rn9leB6QC5nwp0UUqY6jbGknoDtvq87t2tVIiAy5aPmpKnrf0C4uUmaz6zZWz4vvjHok6Kuh6ut2LucwVvisCJ7wTRSXB43ubCsuOMSDkd7u4JJUPJPlzc57rQoXSBm68bnuy7SQ2l/epQbl/O9lrxkQLA52JxNF8zdMT7ZKfoGQkQZjXF1YNhp4VHmfA=
language: ruby
rvm:
- 2.5.0
- 2.5.0
script:
- bundle exec rails db:migrate RAILS_ENV=test
- bundle exec rspec
- bundle exec rails db:migrate RAILS_ENV=test
- bundle exec rspec
after_failure:
- "mysql -e 'show databases;'"
- "cat ./config/database.yml"
- "echo $RAILS_ENV"
- "bundle exec rake --version"
- mysql -e 'show databases;'
- cat ./config/database.yml
- echo $RAILS_ENV
- bundle exec rake --version
16 changes: 0 additions & 16 deletions evaluationserver/Dockerfile.prod

This file was deleted.

4 changes: 2 additions & 2 deletions evaluationserver/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ gem "font-awesome-rails"
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem 'bootstrap-sass', '~> 3.2.0'
gem "paperclip", "~> 4.1"
gem "nokogiri", '1.8.1'
gem "paperclip"
gem "nokogiri"
gem "rubyzip"
gem "actionmailer"
#gem "jquery-sortable-rails"
Expand Down
53 changes: 27 additions & 26 deletions evaluationserver/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
acts_as_list (0.9.12)
acts_as_list (0.9.15)
activerecord (>= 3.0)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
Expand All @@ -52,21 +52,19 @@ GEM
rails (>= 4.0.0)
bootstrap-sass (3.2.0.2)
sass (~> 3.2)
brakeman (4.3.0)
brakeman (4.3.1)
builder (3.2.3)
capybara (3.1.1)
capybara (3.4.1)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
xpath (~> 3.0)
xpath (~> 3.1)
capybara-screenshot (1.0.21)
capybara (>= 1.0, < 4)
launchy
climate_control (0.2.0)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
cocoon (1.2.11)
commonjs (0.2.7)
concurrent-ruby (1.0.5)
Expand All @@ -84,15 +82,15 @@ GEM
factory_bot_rails (4.10.0)
factory_bot (~> 4.10.0)
railties (>= 3.0.0)
faker (1.8.7)
faker (1.9.1)
i18n (>= 0.7)
ffi (1.9.23)
ffi (1.9.25)
font-awesome-rails (4.7.0.4)
railties (>= 3.2, < 6.0)
globalid (0.4.1)
activesupport (>= 4.2.0)
grease (0.3.1)
highline (1.7.10)
highline (2.0.0)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
i18n-tasks (0.9.21)
Expand Down Expand Up @@ -146,21 +144,22 @@ GEM
multi-select-rails (0.9.12)
railties (>= 3.0)
multi_json (1.13.1)
mysql2 (0.5.1)
mysql2 (0.5.2)
nio4r (2.3.1)
nokogiri (1.8.1)
nokogiri (1.8.4)
mini_portile2 (~> 2.3.0)
paperclip (4.2.4)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
paperclip (6.0.0)
activemodel (>= 4.2.0)
activesupport (>= 4.2.0)
mime-types
parser (2.5.1.0)
mimemagic (~> 0.3.0)
terrapin (~> 0.6.0)
parser (2.5.1.2)
ast (~> 2.4.0)
public_suffix (3.0.2)
puma (3.11.4)
puma (3.12.0)
rack (2.0.5)
rack-test (1.0.0)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.0)
actioncable (= 5.2.0)
Expand Down Expand Up @@ -189,7 +188,7 @@ GEM
thor (>= 0.18.1, < 2.0)
rainbow (3.0.0)
rake (12.3.1)
ranked-model (0.4.0)
ranked-model (0.4.1)
activerecord (>= 3.1.12)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
Expand All @@ -215,7 +214,7 @@ GEM
rspec-support (3.7.1)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.5.6)
sass (3.5.7)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
Expand All @@ -233,7 +232,7 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
sprockets (3.7.1)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
Expand All @@ -242,23 +241,25 @@ GEM
sprockets (>= 3.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
terrapin (0.6.0)
climate_control (>= 0.0.3, < 1.0)
therubyracer (0.12.3)
libv8 (~> 3.16.14.15)
ref
thor (0.20.0)
thread (0.2.2)
thread_safe (0.3.6)
tilt (2.0.8)
tinymce-rails (4.7.13)
tinymce-rails (4.8.0)
railties (>= 3.1.1)
turbolinks (5.1.1)
turbolinks-source (~> 5.1)
turbolinks-source (5.1.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.10)
uglifier (4.1.15)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.3.3)
unicode-display_width (1.4.0)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
Expand Down Expand Up @@ -289,8 +290,8 @@ DEPENDENCIES
listen
multi-select-rails
mysql2
nokogiri (= 1.8.1)
paperclip (~> 4.1)
nokogiri
paperclip
puma
rails
rails_serve_static_assets
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<li><%= link_to t(:privacy_declaration, scope: :layout), "http://home.uni-leipzig.de/svis/privacy-policy/", target: :_blank %></li>
<li><%= link_to t(:imprint, scope: :layout), "http://home.uni-leipzig.de/svis/impressum/", target: :_blank %></li>


3 changes: 3 additions & 0 deletions evaluationserver/app/views/layouts/_blank_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<%= render :partial => "navbar_gdpr_links" %>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
3 changes: 2 additions & 1 deletion evaluationserver/app/views/layouts/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><%= link_to t(:admin_off, scope: :layout), admin_mode_off_path %></li>
<%= render :partial => "navbar_gdpr_links" %>
<li><%= link_to t(:admin_off, scope: :layout), admin_mode_off_path %></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
Expand Down
6 changes: 4 additions & 2 deletions evaluationserver/app/views/layouts/_navbar_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<% if content_for?(:remarks) %>
<ul class="nav navbar-nav navbar-right">
<%= render :partial => "navbar_gdpr_links" %>

<% if content_for?(:remarks) %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Remarks<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
Expand Down
1 change: 1 addition & 0 deletions evaluationserver/app/views/layouts/_simple_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<li><%= link_to t(:experiments, scope: :layout), experiments_path %></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<%= render :partial => "navbar_gdpr_links" %>
<li><%= link_to t(:admin_on, scope: :layout), admin_mode_on_path %></li>
</ul>
</div><!-- /.navbar-collapse -->
Expand Down
9 changes: 8 additions & 1 deletion evaluationserver/bin/docker_start
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ bundle install --jobs 4 --retry 3
echo "Clearing logs"
bin/rake log:clear

production="production"

if [ "$RAILS_ENV" == "$production" ]
then
bin/rails assets:precompile
fi

echo "Setting up new db if one doesn't exist"
bundle exec rake db:migrate

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


echo "Starting app server"
bundle exec rails s -p 8081 -b 0.0.0.0
bundle exec rails s -p 8081 -b 0.0.0.0
2 changes: 1 addition & 1 deletion evaluationserver/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ development:
pool: 5
username: "<%=ENV['DEVELOPMENT_MYSQL_DB_USERNAME']%>"
password: "<%=ENV['DEVELOPMENT_MYSQL_DB_PASSWORD']%>"
#host: db
host: db


# Warning: The database defined as "test" will be erased and
Expand Down
2 changes: 1 addition & 1 deletion evaluationserver/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Attempt to read encrypted secrets from `config/secrets.yml.enc`.
# Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
# `config/secrets.yml.key`.
config.read_encrypted_secrets = true
config.read_encrypted_secrets = false

# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
Expand Down
2 changes: 2 additions & 0 deletions evaluationserver/config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ de:
successful_created: "Fragebogen erfolgreich erfolgt"
successful_updated: "Fragebogen erfolgreich aktualisiert"
layout:
privacy_declaration: "Datenschutzerklärung"
imprint: "Impressum"
experiments: "Experimente"
scenes: "Szenen"
steps: "Schritte"
Expand Down
2 changes: 2 additions & 0 deletions evaluationserver/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ en:
successful_created: "Questionaire successful created"
successful_updated: "Questionaire successful updated"
layout:
privacy_declaration: "Privacy Policy"
imprint: "Imprint"
experiments: "Experiments"
scenes: "Scenes"
other: "Other"
Expand Down
4 changes: 2 additions & 2 deletions evaluationserver/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
db:
image: mysql
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: dbpassword_for_user
MYSQL_DATABASE: eval_server_development
Expand All @@ -20,4 +20,4 @@ services:
- db
volumes:
bundle:
driver: local
driver: local
4 changes: 3 additions & 1 deletion generator/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ test-xtend-gen/
**/xtext/*RuntimeModule.xtend
.antlr-generator-3.2.0-patch.jar

# Ignore default models
# Ignore default models, but not properties
org.svis.generator.run/input
!*.properties

10 changes: 0 additions & 10 deletions generator/org.svis.generator.run/config.json

This file was deleted.

16 changes: 16 additions & 0 deletions generator/org.svis.generator.run/input/mrt.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Config for generating MRT visualizations for CapGemini

convert_to_multipart = true

structure.show_class_members = false
structure.containes_projects = true

history.show_versions = latest
history.show_histories = false
history.show_namespace_histories = false
history.time_format = yyyy-MM-dd

rd.class_size = number_of_statements
rd.class_color_metric = static
rd.class_height = number_of_incidents
rd.color.project = #000000
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ database_name = ../databases/graph.db

#
## History
history.repository_nameReekX3DHeightTest.properties
history.repository_name
history.repository_owner

#
Expand Down
12 changes: 12 additions & 0 deletions generator/org.svis.generator.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.svis.generator</groupId>
<artifactId>org.svis.xtext.famix</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.eclipse.xtext/org.eclipse.xtext.testing -->
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.testing</artifactId>
<version>2.14.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
Expand Down
Loading

0 comments on commit a6ee025

Please sign in to comment.