Skip to content

Commit

Permalink
Merge branch 'master' into update-nokogiri-gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed May 25, 2017
2 parents 0ef06fb + 97fb6db commit c507082
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 32 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: ruby
cache: bundler
env:
- DB=postgresql
bundler_args: --without development staging production
Expand Down
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ group :development, :test do
# debug
gem 'pry', '0.10.1'

# code review
gem 'rubycritic', '3.2.0'
gem 'bullet', '4.14.7' # for finding database optimizations
gem 'bundler-audit'
gem 'brakeman', '3.6.1', require: false # for security audit'
Expand Down
28 changes: 1 addition & 27 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ GEM
xpath (~> 2.0)
chronic (0.10.2)
cliver (0.3.2)
codeclimate-engine-rb (0.4.0)
virtus (~> 1.0)
codeclimate-test-reporter (1.0.8)
simplecov (<= 0.13)
coderay (1.1.0)
Expand Down Expand Up @@ -195,15 +193,6 @@ GEM
ffi (1.9.18)
figaro (1.1.1)
thor (~> 0.14)
flay (2.8.1)
erubis (~> 2.7.0)
path_expander (~> 1.0)
ruby_parser (~> 3.0)
sexp_processor (~> 4.0)
flog (4.6.1)
path_expander (~> 1.0)
ruby_parser (~> 3.1, > 3.1.0)
sexp_processor (~> 4.8)
formatador (0.2.5)
globalid (0.3.7)
activesupport (>= 4.1.0)
Expand Down Expand Up @@ -297,7 +286,7 @@ GEM
loofah (2.0.3)
nokogiri (>= 1.5.9)
lumberjack (1.0.11)
mail (2.6.4)
mail (2.6.5)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
Expand Down Expand Up @@ -333,7 +322,6 @@ GEM
orm_adapter (0.5.0)
parser (2.4.0.0)
ast (~> 2.2)
path_expander (1.0.1)
pdfkit (0.6.2)
pg (0.19.0)
phantomjs (1.9.8.0)
Expand Down Expand Up @@ -405,10 +393,6 @@ GEM
rb-inotify (0.9.8)
ffi (>= 0.5.0)
rdoc (4.3.0)
reek (4.6.1)
codeclimate-engine-rb (~> 0.4.0)
parser (>= 2.3.1.2, < 2.5)
rainbow (~> 2.0)
ref (2.0.0)
request_store (1.1.0)
responders (2.3.0)
Expand Down Expand Up @@ -448,15 +432,6 @@ GEM
ruby_dep (1.5.0)
ruby_parser (3.8.4)
sexp_processor (~> 4.1)
rubycritic (3.2.0)
flay (~> 2.8)
flog (~> 4.4)
launchy (= 2.4.3)
parser (= 2.4.0)
rainbow (~> 2.1)
reek (~> 4.4)
ruby_parser (~> 3.8)
virtus (~> 1.0)
safe_yaml (1.0.4)
sass (3.4.23)
sass-rails (5.0.6)
Expand Down Expand Up @@ -620,7 +595,6 @@ DEPENDENCIES
rest-client
rspec-rails (~> 3.5)
rubocop (= 0.48.1)
rubycritic (= 3.2.0)
sass-rails (= 5.0.6)
sdoc (= 0.4.1)
select2-rails (= 3.5.9.3)
Expand Down
3 changes: 0 additions & 3 deletions bin/robot
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ BCODE=0 # tmp
bundle exec brakeman -q
echo "END_OF_SECURITY_RESULTS"

# update code review
bundle exec rubycritic app lib

if [ $RCODE == 0 ] && [ $TCODE == 0 ] &&[ $BCODE == 0 ]; then
exit 0
else
Expand Down
14 changes: 14 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
preload_app!

threads 1, 4
workers 2

on_worker_boot do
ActiveSupport.on_load(:active_record) do
ActiveRecord::Base.establish_connection
end
end

before_fork do
ActiveRecord::Base.connection_pool.disconnect!
end

0 comments on commit c507082

Please sign in to comment.