mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-23 08:03:14 +01:00
commit
0b4d7896dc
8 changed files with 152 additions and 181 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,3 +17,4 @@
|
||||||
config/morph.yml
|
config/morph.yml
|
||||||
/coverage
|
/coverage
|
||||||
.vagrant
|
.vagrant
|
||||||
|
/node_modules
|
||||||
|
|
|
@ -8,4 +8,4 @@ services:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- docker-compose run web rake db:setup
|
- docker-compose run web rake db:setup
|
||||||
- docker-compose run -e CI=true -e TRAVIS=true -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_COMMIT=$TRAVIS_COMMIT -e TRAVIS_JOB_NUMBER=$TRAVIS_JOB_NUMBER -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG web rspec
|
- docker-compose run -e CI=true -e TRAVIS=true -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_COMMIT=$TRAVIS_COMMIT -e TRAVIS_JOB_NUMBER=$TRAVIS_JOB_NUMBER -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG web bin/run-tests
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
FROM ruby:2.2
|
FROM ruby:2.2
|
||||||
RUN apt-get update && apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy npm
|
RUN apt-get update && \
|
||||||
|
apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy npm \
|
||||||
RUN npm install phantomjs-prebuilt
|
libxml2-dev libxslt1-dev pkg-config \
|
||||||
RUN ln -sf /node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /usr/local/bin/
|
libqt4-webkit libqt4-dev xvfb
|
||||||
|
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ WORKDIR /tmp
|
||||||
|
|
||||||
COPY Gemfile Gemfile
|
COPY Gemfile Gemfile
|
||||||
COPY Gemfile.lock Gemfile.lock
|
COPY Gemfile.lock Gemfile.lock
|
||||||
|
RUN bundle config build.nokogiri --use-system-libraries
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
||||||
ADD . /app
|
ADD . /app
|
||||||
|
|
6
Gemfile
6
Gemfile
|
@ -22,7 +22,7 @@ gem 'jquery-rails'
|
||||||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
||||||
gem 'turbolinks'
|
gem 'turbolinks'
|
||||||
# Assets
|
# Assets
|
||||||
gem 'foundation-rails'
|
gem 'foundation-rails', '~> 5.5'
|
||||||
|
|
||||||
gem 'validate_url'
|
gem 'validate_url'
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ group :development do
|
||||||
gem 'spring-commands-rspec'
|
gem 'spring-commands-rspec'
|
||||||
gem 'quiet_assets'
|
gem 'quiet_assets'
|
||||||
gem 'awesome_print'
|
gem 'awesome_print'
|
||||||
gem 'guard-rspec', require: false
|
# gem 'guard-rspec', require: false
|
||||||
# gem 'terminal-notifier-guard' # FIXME cross-platform
|
# gem 'terminal-notifier-guard' # FIXME cross-platform
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ group :test do
|
||||||
gem 'test_after_commit' # TODO remove when moving to rails 5
|
gem 'test_after_commit' # TODO remove when moving to rails 5
|
||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
gem 'coveralls', require: false
|
gem 'coveralls', require: false
|
||||||
gem 'poltergeist'
|
gem 'capybara-webkit'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
|
|
289
Gemfile.lock
289
Gemfile.lock
|
@ -1,253 +1,216 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actionmailer (4.2.1)
|
actionmailer (4.2.6)
|
||||||
actionpack (= 4.2.1)
|
actionpack (= 4.2.6)
|
||||||
actionview (= 4.2.1)
|
actionview (= 4.2.6)
|
||||||
activejob (= 4.2.1)
|
activejob (= 4.2.6)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
actionpack (4.2.1)
|
actionpack (4.2.6)
|
||||||
actionview (= 4.2.1)
|
actionview (= 4.2.6)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.6)
|
||||||
rack (~> 1.6)
|
rack (~> 1.6)
|
||||||
rack-test (~> 0.6.2)
|
rack-test (~> 0.6.2)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
actionview (4.2.1)
|
actionview (4.2.6)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.6)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubis (~> 2.7.0)
|
erubis (~> 2.7.0)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
activejob (4.2.1)
|
activejob (4.2.6)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.6)
|
||||||
globalid (>= 0.3.0)
|
globalid (>= 0.3.0)
|
||||||
activemodel (4.2.1)
|
activemodel (4.2.6)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.6)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
activerecord (4.2.1)
|
activerecord (4.2.6)
|
||||||
activemodel (= 4.2.1)
|
activemodel (= 4.2.6)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.6)
|
||||||
arel (~> 6.0)
|
arel (~> 6.0)
|
||||||
activesupport (4.2.1)
|
activesupport (4.2.6)
|
||||||
i18n (~> 0.7)
|
i18n (~> 0.7)
|
||||||
json (~> 1.7, >= 1.7.7)
|
json (~> 1.7, >= 1.7.7)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
thread_safe (~> 0.3, >= 0.3.4)
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.3.8)
|
addressable (2.4.0)
|
||||||
arel (6.0.0)
|
arel (6.0.3)
|
||||||
awesome_print (1.6.1)
|
awesome_print (1.6.1)
|
||||||
builder (3.2.2)
|
builder (3.2.2)
|
||||||
capybara (2.4.4)
|
capybara (2.7.1)
|
||||||
|
addressable
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
nokogiri (>= 1.3.3)
|
nokogiri (>= 1.3.3)
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
rack-test (>= 0.5.4)
|
rack-test (>= 0.5.4)
|
||||||
xpath (~> 2.0)
|
xpath (~> 2.0)
|
||||||
cliver (0.3.2)
|
capybara-webkit (1.11.1)
|
||||||
coderay (1.1.0)
|
capybara (>= 2.3.0, < 2.8.0)
|
||||||
coffee-rails (4.1.0)
|
json
|
||||||
|
coderay (1.1.1)
|
||||||
|
coffee-rails (4.1.1)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.1.x)
|
||||||
coffee-script (2.4.1)
|
coffee-script (2.4.1)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.9.1.1)
|
coffee-script-source (1.10.0)
|
||||||
|
concurrent-ruby (1.0.2)
|
||||||
coveralls (0.8.13)
|
coveralls (0.8.13)
|
||||||
json (~> 1.8)
|
json (~> 1.8)
|
||||||
simplecov (~> 0.11.0)
|
simplecov (~> 0.11.0)
|
||||||
term-ansicolor (~> 1.3)
|
term-ansicolor (~> 1.3)
|
||||||
thor (~> 0.19.1)
|
thor (~> 0.19.1)
|
||||||
tins (~> 1.6.0)
|
tins (~> 1.6.0)
|
||||||
database_cleaner (1.5.1)
|
database_cleaner (1.5.3)
|
||||||
diff-lcs (1.2.5)
|
diff-lcs (1.2.5)
|
||||||
docile (1.1.5)
|
docile (1.1.5)
|
||||||
elasticsearch (1.0.8)
|
elasticsearch (1.0.17)
|
||||||
elasticsearch-api (= 1.0.7)
|
elasticsearch-api (= 1.0.17)
|
||||||
elasticsearch-transport (= 1.0.7)
|
elasticsearch-transport (= 1.0.17)
|
||||||
elasticsearch-api (1.0.7)
|
elasticsearch-api (1.0.17)
|
||||||
multi_json
|
multi_json
|
||||||
elasticsearch-dsl (0.1.0)
|
elasticsearch-dsl (0.1.3)
|
||||||
elasticsearch-model (0.1.7)
|
elasticsearch-model (0.1.8)
|
||||||
activesupport (> 3)
|
activesupport (> 3)
|
||||||
elasticsearch (> 0.4)
|
elasticsearch (> 0.4)
|
||||||
hashie
|
hashie
|
||||||
elasticsearch-transport (1.0.7)
|
elasticsearch-transport (1.0.17)
|
||||||
faraday
|
faraday
|
||||||
multi_json
|
multi_json
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.5.2)
|
execjs (2.6.0)
|
||||||
factory_girl (4.5.0)
|
factory_girl (4.7.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
factory_girl_rails (4.5.0)
|
factory_girl_rails (4.7.0)
|
||||||
factory_girl (~> 4.5.0)
|
factory_girl (~> 4.7.0)
|
||||||
railties (>= 3.0.0)
|
railties (>= 3.0.0)
|
||||||
faker (1.4.3)
|
faker (1.6.3)
|
||||||
i18n (~> 0.5)
|
i18n (~> 0.5)
|
||||||
faraday (0.9.1)
|
faraday (0.9.2)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
ffi (1.9.10)
|
foundation-rails (5.5.3.2)
|
||||||
ffi (1.9.10-x64-mingw32)
|
|
||||||
formatador (0.2.5)
|
|
||||||
foundation-rails (5.5.1.2)
|
|
||||||
railties (>= 3.1.0)
|
railties (>= 3.1.0)
|
||||||
sass (>= 3.3.0, < 3.5)
|
sass (>= 3.3.0, < 3.5)
|
||||||
globalid (0.3.5)
|
globalid (0.3.6)
|
||||||
activesupport (>= 4.1.0)
|
activesupport (>= 4.1.0)
|
||||||
guard (2.13.0)
|
hashie (3.4.4)
|
||||||
formatador (>= 0.2.4)
|
|
||||||
listen (>= 2.7, <= 4.0)
|
|
||||||
lumberjack (~> 1.0)
|
|
||||||
nenv (~> 0.1)
|
|
||||||
notiffany (~> 0.0)
|
|
||||||
pry (>= 0.9.12)
|
|
||||||
shellany (~> 0.0)
|
|
||||||
thor (>= 0.18.1)
|
|
||||||
guard-compat (1.2.1)
|
|
||||||
guard-rspec (4.6.4)
|
|
||||||
guard (~> 2.1)
|
|
||||||
guard-compat (~> 1.1)
|
|
||||||
rspec (>= 2.99.0, < 4.0)
|
|
||||||
hashie (3.4.1)
|
|
||||||
i18n (0.7.0)
|
i18n (0.7.0)
|
||||||
jquery-rails (4.0.3)
|
jquery-rails (4.1.1)
|
||||||
rails-dom-testing (~> 1.0)
|
rails-dom-testing (>= 1, < 3)
|
||||||
railties (>= 4.2.0)
|
railties (>= 4.2.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
json (1.8.2)
|
json (1.8.3)
|
||||||
kaminari (0.16.3)
|
kaminari (0.16.3)
|
||||||
actionpack (>= 3.0.0)
|
actionpack (>= 3.0.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
kaminari-i18n (0.3.2)
|
kaminari-i18n (0.4.0)
|
||||||
kaminari
|
kaminari
|
||||||
rails
|
rails
|
||||||
launchy (2.4.3)
|
launchy (2.4.3)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
listen (3.0.6)
|
loofah (2.0.3)
|
||||||
rb-fsevent (>= 0.9.3)
|
|
||||||
rb-inotify (>= 0.9.7)
|
|
||||||
loofah (2.0.1)
|
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
lumberjack (1.0.10)
|
mail (2.6.4)
|
||||||
mail (2.6.3)
|
mime-types (>= 1.16, < 4)
|
||||||
mime-types (>= 1.16, < 3)
|
|
||||||
method_source (0.8.2)
|
method_source (0.8.2)
|
||||||
mime-types (2.5)
|
mime-types (3.0)
|
||||||
mini_portile (0.6.2)
|
mime-types-data (~> 3.2015)
|
||||||
minitest (5.6.0)
|
mime-types-data (3.2016.0221)
|
||||||
multi_json (1.11.0)
|
mini_portile2 (2.0.0)
|
||||||
|
minitest (5.8.4)
|
||||||
|
multi_json (1.12.0)
|
||||||
multipart-post (2.0.0)
|
multipart-post (2.0.0)
|
||||||
nenv (0.3.0)
|
nokogiri (1.6.7.2)
|
||||||
nokogiri (1.6.6.2)
|
mini_portile2 (~> 2.0.0.rc2)
|
||||||
mini_portile (~> 0.6.0)
|
nokogiri (1.6.7.2-x64-mingw32)
|
||||||
nokogiri (1.6.6.2-x64-mingw32)
|
mini_portile2 (~> 2.0.0.rc2)
|
||||||
mini_portile (~> 0.6.0)
|
omniauth (1.3.1)
|
||||||
notiffany (0.0.8)
|
|
||||||
nenv (~> 0.1)
|
|
||||||
shellany (~> 0.0)
|
|
||||||
omniauth (1.2.2)
|
|
||||||
hashie (>= 1.2, < 4)
|
hashie (>= 1.2, < 4)
|
||||||
rack (~> 1.0)
|
rack (>= 1.0, < 3)
|
||||||
omniauth-browserid (0.0.1)
|
omniauth-browserid (0.0.1)
|
||||||
faraday
|
faraday
|
||||||
multi_json
|
multi_json
|
||||||
omniauth (~> 1.0)
|
omniauth (~> 1.0)
|
||||||
poltergeist (1.9.0)
|
pry (0.10.3)
|
||||||
capybara (~> 2.1)
|
|
||||||
cliver (~> 0.3.1)
|
|
||||||
multi_json (~> 1.0)
|
|
||||||
websocket-driver (>= 0.2.0)
|
|
||||||
pry (0.10.1)
|
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
method_source (~> 0.8.1)
|
method_source (~> 0.8.1)
|
||||||
slop (~> 3.4)
|
slop (~> 3.4)
|
||||||
pry (0.10.1-x64-mingw32)
|
|
||||||
coderay (~> 1.1.0)
|
|
||||||
method_source (~> 0.8.1)
|
|
||||||
slop (~> 3.4)
|
|
||||||
win32console (~> 1.3)
|
|
||||||
pry-rails (0.3.4)
|
pry-rails (0.3.4)
|
||||||
pry (>= 0.9.10)
|
pry (>= 0.9.10)
|
||||||
quiet_assets (1.1.0)
|
quiet_assets (1.1.0)
|
||||||
railties (>= 3.1, < 5.0)
|
railties (>= 3.1, < 5.0)
|
||||||
rack (1.6.0)
|
rack (1.6.4)
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (4.2.1)
|
rails (4.2.6)
|
||||||
actionmailer (= 4.2.1)
|
actionmailer (= 4.2.6)
|
||||||
actionpack (= 4.2.1)
|
actionpack (= 4.2.6)
|
||||||
actionview (= 4.2.1)
|
actionview (= 4.2.6)
|
||||||
activejob (= 4.2.1)
|
activejob (= 4.2.6)
|
||||||
activemodel (= 4.2.1)
|
activemodel (= 4.2.6)
|
||||||
activerecord (= 4.2.1)
|
activerecord (= 4.2.6)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.6)
|
||||||
bundler (>= 1.3.0, < 2.0)
|
bundler (>= 1.3.0, < 2.0)
|
||||||
railties (= 4.2.1)
|
railties (= 4.2.6)
|
||||||
sprockets-rails
|
sprockets-rails
|
||||||
rails-deprecated_sanitizer (1.0.3)
|
rails-deprecated_sanitizer (1.0.3)
|
||||||
activesupport (>= 4.2.0.alpha)
|
activesupport (>= 4.2.0.alpha)
|
||||||
rails-dom-testing (1.0.6)
|
rails-dom-testing (1.0.7)
|
||||||
activesupport (>= 4.2.0.beta, < 5.0)
|
activesupport (>= 4.2.0.beta, < 5.0)
|
||||||
nokogiri (~> 1.6.0)
|
nokogiri (~> 1.6.0)
|
||||||
rails-deprecated_sanitizer (>= 1.0.1)
|
rails-deprecated_sanitizer (>= 1.0.1)
|
||||||
rails-html-sanitizer (1.0.2)
|
rails-html-sanitizer (1.0.3)
|
||||||
loofah (~> 2.0)
|
loofah (~> 2.0)
|
||||||
rails-i18n (4.0.4)
|
rails-i18n (4.0.8)
|
||||||
i18n (~> 0.6)
|
i18n (~> 0.7)
|
||||||
railties (~> 4.0)
|
railties (~> 4.0)
|
||||||
railties (4.2.1)
|
railties (4.2.6)
|
||||||
actionpack (= 4.2.1)
|
actionpack (= 4.2.6)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.6)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
rake (10.4.2)
|
rake (11.1.2)
|
||||||
rb-fsevent (0.9.7)
|
rdoc (4.2.2)
|
||||||
rb-inotify (0.9.7)
|
|
||||||
ffi (>= 0.5.0)
|
|
||||||
rdoc (4.2.0)
|
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
rspec (3.3.0)
|
rspec-core (3.4.4)
|
||||||
rspec-core (~> 3.3.0)
|
rspec-support (~> 3.4.0)
|
||||||
rspec-expectations (~> 3.3.0)
|
rspec-expectations (3.4.0)
|
||||||
rspec-mocks (~> 3.3.0)
|
|
||||||
rspec-core (3.3.2)
|
|
||||||
rspec-support (~> 3.3.0)
|
|
||||||
rspec-expectations (3.3.1)
|
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.3.0)
|
rspec-support (~> 3.4.0)
|
||||||
rspec-mocks (3.3.2)
|
rspec-mocks (3.4.1)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.3.0)
|
rspec-support (~> 3.4.0)
|
||||||
rspec-rails (3.3.3)
|
rspec-rails (3.4.2)
|
||||||
actionpack (>= 3.0, < 4.3)
|
actionpack (>= 3.0, < 4.3)
|
||||||
activesupport (>= 3.0, < 4.3)
|
activesupport (>= 3.0, < 4.3)
|
||||||
railties (>= 3.0, < 4.3)
|
railties (>= 3.0, < 4.3)
|
||||||
rspec-core (~> 3.3.0)
|
rspec-core (~> 3.4.0)
|
||||||
rspec-expectations (~> 3.3.0)
|
rspec-expectations (~> 3.4.0)
|
||||||
rspec-mocks (~> 3.3.0)
|
rspec-mocks (~> 3.4.0)
|
||||||
rspec-support (~> 3.3.0)
|
rspec-support (~> 3.4.0)
|
||||||
rspec-support (3.3.0)
|
rspec-support (3.4.1)
|
||||||
sass (3.4.13)
|
sass (3.4.22)
|
||||||
sass-rails (5.0.3)
|
sass-rails (5.0.4)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
sass (~> 3.1)
|
sass (~> 3.1)
|
||||||
sprockets (>= 2.8, < 4.0)
|
sprockets (>= 2.8, < 4.0)
|
||||||
sprockets-rails (>= 2.0, < 4.0)
|
sprockets-rails (>= 2.0, < 4.0)
|
||||||
tilt (~> 1.1)
|
tilt (>= 1.1, < 3)
|
||||||
sdoc (0.4.1)
|
sdoc (0.4.1)
|
||||||
json (~> 1.7, >= 1.7.7)
|
json (~> 1.7, >= 1.7.7)
|
||||||
rdoc (~> 4.0)
|
rdoc (~> 4.0)
|
||||||
shellany (0.0.1)
|
|
||||||
shoulda-matchers (3.1.1)
|
shoulda-matchers (3.1.1)
|
||||||
activesupport (>= 4.0.0)
|
activesupport (>= 4.0.0)
|
||||||
simplecov (0.11.1)
|
simplecov (0.11.2)
|
||||||
docile (~> 1.1.0)
|
docile (~> 1.1.0)
|
||||||
json (~> 1.8)
|
json (~> 1.8)
|
||||||
simplecov-html (~> 0.10.0)
|
simplecov-html (~> 0.10.0)
|
||||||
simplecov-html (0.10.0)
|
simplecov-html (0.10.0)
|
||||||
slim (3.0.3)
|
slim (3.0.6)
|
||||||
temple (~> 0.7.3)
|
temple (~> 0.7.3)
|
||||||
tilt (>= 1.3.3, < 2.1)
|
tilt (>= 1.3.3, < 2.1)
|
||||||
slim-rails (3.0.1)
|
slim-rails (3.0.1)
|
||||||
|
@ -257,42 +220,38 @@ GEM
|
||||||
railties (>= 3.1, < 5.0)
|
railties (>= 3.1, < 5.0)
|
||||||
slim (~> 3.0)
|
slim (~> 3.0)
|
||||||
slop (3.6.0)
|
slop (3.6.0)
|
||||||
spring (1.6.4)
|
spring (1.7.1)
|
||||||
spring-commands-rspec (1.0.4)
|
spring-commands-rspec (1.0.4)
|
||||||
spring (>= 0.9.1)
|
spring (>= 0.9.1)
|
||||||
sprockets (3.0.2)
|
sprockets (3.6.0)
|
||||||
rack (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
sprockets-rails (2.2.4)
|
rack (> 1, < 3)
|
||||||
actionpack (>= 3.0)
|
sprockets-rails (3.0.4)
|
||||||
activesupport (>= 3.0)
|
actionpack (>= 4.0)
|
||||||
sprockets (>= 2.8, < 4.0)
|
activesupport (>= 4.0)
|
||||||
sqlite3 (1.3.10)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.3.10-x64-mingw32)
|
sqlite3 (1.3.11)
|
||||||
temple (0.7.5)
|
sqlite3 (1.3.11-x64-mingw32)
|
||||||
|
temple (0.7.6)
|
||||||
term-ansicolor (1.3.2)
|
term-ansicolor (1.3.2)
|
||||||
tins (~> 1.0)
|
tins (~> 1.0)
|
||||||
test_after_commit (0.4.2)
|
test_after_commit (1.0.0)
|
||||||
activerecord (>= 3.2)
|
activerecord (>= 3.2)
|
||||||
thor (0.19.1)
|
thor (0.19.1)
|
||||||
thread_safe (0.3.5)
|
thread_safe (0.3.5)
|
||||||
tilt (1.4.1)
|
tilt (2.0.2)
|
||||||
tins (1.6.0)
|
tins (1.6.0)
|
||||||
turbolinks (2.5.3)
|
turbolinks (2.5.3)
|
||||||
coffee-rails
|
coffee-rails
|
||||||
tzinfo (1.2.2)
|
tzinfo (1.2.2)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
tzinfo-data (1.2015.7)
|
tzinfo-data (1.2016.4)
|
||||||
tzinfo (>= 1.0.0)
|
tzinfo (>= 1.0.0)
|
||||||
uglifier (2.7.1)
|
uglifier (3.0.0)
|
||||||
execjs (>= 0.3.0)
|
execjs (>= 0.3.0, < 3)
|
||||||
json (>= 1.8.0)
|
|
||||||
validate_url (1.0.2)
|
validate_url (1.0.2)
|
||||||
activemodel (>= 3.0.0)
|
activemodel (>= 3.0.0)
|
||||||
addressable
|
addressable
|
||||||
websocket-driver (0.6.3)
|
|
||||||
websocket-extensions (>= 0.1.0)
|
|
||||||
websocket-extensions (0.1.2)
|
|
||||||
win32console (1.3.2)
|
|
||||||
xpath (2.0.0)
|
xpath (2.0.0)
|
||||||
nokogiri (~> 1.3)
|
nokogiri (~> 1.3)
|
||||||
|
|
||||||
|
@ -303,6 +262,7 @@ PLATFORMS
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
awesome_print
|
awesome_print
|
||||||
capybara
|
capybara
|
||||||
|
capybara-webkit
|
||||||
coffee-rails
|
coffee-rails
|
||||||
coveralls
|
coveralls
|
||||||
database_cleaner
|
database_cleaner
|
||||||
|
@ -311,15 +271,13 @@ DEPENDENCIES
|
||||||
elasticsearch-model
|
elasticsearch-model
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
faker
|
faker
|
||||||
foundation-rails
|
foundation-rails (~> 5.5)
|
||||||
guard-rspec
|
|
||||||
jquery-rails
|
jquery-rails
|
||||||
kaminari
|
kaminari
|
||||||
kaminari-i18n
|
kaminari-i18n
|
||||||
launchy
|
launchy
|
||||||
omniauth
|
omniauth
|
||||||
omniauth-browserid
|
omniauth-browserid
|
||||||
poltergeist
|
|
||||||
pry
|
pry
|
||||||
pry-rails
|
pry-rails
|
||||||
quiet_assets
|
quiet_assets
|
||||||
|
@ -339,3 +297,6 @@ DEPENDENCIES
|
||||||
tzinfo-data
|
tzinfo-data
|
||||||
uglifier
|
uglifier
|
||||||
validate_url
|
validate_url
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.11.2
|
||||||
|
|
|
@ -76,3 +76,9 @@ docker.
|
||||||
Edit the morph.yml file and insert the Morph API key
|
Edit the morph.yml file and insert the Morph API key
|
||||||
1. Import the data from our scraper: `docker-compose run web rake import_papers`
|
1. Import the data from our scraper: `docker-compose run web rake import_papers`
|
||||||
1. Build the elasticsearch index: `docker-compose run web rake index:rebuild`
|
1. Build the elasticsearch index: `docker-compose run web rake index:rebuild`
|
||||||
|
|
||||||
|
### Running tests
|
||||||
|
|
||||||
|
Assuming docker and docker-compose is installed:
|
||||||
|
|
||||||
|
1. `docker-compose run web bin/run-tests`
|
||||||
|
|
3
bin/run-tests
Executable file
3
bin/run-tests
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
xvfb-run bundle exec rspec
|
|
@ -1,2 +1 @@
|
||||||
require 'capybara/poltergeist'
|
Capybara.javascript_driver = :webkit
|
||||||
Capybara.javascript_driver = :poltergeist
|
|
||||||
|
|
Loading…
Reference in a new issue