Skip to content

Commit

Permalink
Update gems
Browse files Browse the repository at this point in the history
* Passwords now need to be 8 characters long (new default in authlogic).
* To login to the Sidekiq web interface, log in to opensnp.org, if you
  have the `admin` flag set, you will find it at the usual place.
  • Loading branch information
tsujigiri committed Dec 26, 2016
1 parent 3624468 commit ab107f3
Show file tree
Hide file tree
Showing 12 changed files with 230 additions and 218 deletions.
133 changes: 67 additions & 66 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,26 @@ GEM
activemodel (= 4.2.7.1)
activesupport (= 4.2.7.1)
arel (~> 6.0)
activerecord-import (0.15.0)
activerecord-import (0.16.2)
activerecord (>= 3.2)
activesupport (4.2.7.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
airbrake (4.3.8)
builder
multi_json
arel (6.0.3)
ast (2.3.0)
authlogic (3.4.6)
activerecord (>= 3.2)
activesupport (>= 3.2)
authlogic (3.5.0)
activerecord (>= 3.2, < 5.1)
activesupport (>= 3.2, < 5.1)
request_store (~> 1.0)
scrypt (>= 1.2, < 3.0)
scrypt (>= 1.2, < 4.0)
bcrypt (3.1.11)
bcrypt-ruby (3.1.5)
bcrypt (>= 3.1.3)
Expand All @@ -82,7 +83,7 @@ GEM
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
capybara (2.7.1)
capybara (2.11.0)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
Expand All @@ -95,21 +96,21 @@ GEM
cliver (0.3.2)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
codeclimate-test-reporter (0.6.0)
simplecov (>= 0.7.1, < 1.0.0)
codeclimate-test-reporter (1.0.3)
simplecov
coderay (1.1.1)
commonjs (0.2.7)
composite_primary_keys (8.1.4)
activerecord (~> 4.2.0)
concurrent-ruby (1.0.2)
connection_pool (2.2.0)
concurrent-ruby (1.0.3)
connection_pool (2.2.1)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.2)
database_cleaner (1.5.3)
diff-lcs (1.2.5)
docile (1.1.5)
domain_name (0.5.20160615)
domain_name (0.5.20161129)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.1.1)
dotenv-rails (2.1.1)
Expand All @@ -118,10 +119,10 @@ GEM
dynamic_form (1.1.4)
erubis (2.7.0)
execjs (2.7.0)
factory_girl (4.7.0)
factory_girl (4.8.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.7.0)
factory_girl (~> 4.7.0)
factory_girl_rails (4.8.0)
factory_girl (~> 4.8.0)
railties (>= 3.0.0)
ffi (1.9.14)
ffi-compiler (1.0.1)
Expand All @@ -130,7 +131,7 @@ GEM
fitgem (0.12.1)
oauth
formatador (0.2.5)
friendly_id (5.1.0)
friendly_id (5.2.0)
activerecord (>= 4.0.0)
globalid (0.3.7)
activesupport (>= 4.1.0)
Expand All @@ -148,28 +149,28 @@ GEM
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
hashdiff (0.3.0)
hashdiff (0.3.1)
highline (1.7.8)
http-cookie (1.0.2)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (0.7.0)
jquery-rails (4.1.1)
jquery-rails (4.2.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
json (1.8.3)
launchy (2.4.3)
addressable (~> 2.3)
less (2.6.0)
commonjs (~> 0.2.7)
less-rails (2.7.1)
less-rails (2.8.0)
actionpack (>= 4.0)
less (~> 2.6.0)
sprockets (> 2, < 4)
tilt
libv8 (3.16.14.15)
libv8 (3.16.14.17)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
Expand All @@ -187,26 +188,25 @@ GEM
rest-client (~> 1.7)
metaclass (0.0.4)
method_source (0.8.2)
mime-types (2.99.2)
mime-types (2.99.3)
mimemagic (0.3.0)
mini_portile2 (2.1.0)
minitest (5.9.0)
mocha (1.1.0)
minitest (5.10.1)
mocha (1.2.1)
metaclass (~> 0.0.1)
multi_json (1.12.1)
nenv (0.3.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (3.2.0)
net-ssh (4.0.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
netrc (0.11.0)
nokogiri (1.6.8)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
nokogumbo (1.4.9)
nokogumbo (1.4.10)
nokogiri
notiffany (0.1.1)
nenv (~> 0.1)
Expand All @@ -218,30 +218,30 @@ GEM
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
parser (2.3.1.2)
parser (2.3.3.1)
ast (~> 2.2)
pg (0.18.4)
pg_search (1.0.6)
activerecord (>= 3.1)
activesupport (>= 3.1)
arel
pkg-config (1.1.7)
pg (0.19.0)
pg_search (2.0.1)
activerecord (>= 4.2)
activesupport (>= 4.2)
arel (>= 6)
plos (0.0.7)
nokogiri
rest-client
poltergeist (1.10.0)
poltergeist (1.12.0)
capybara (~> 2.1)
cliver (~> 0.3.1)
websocket-driver (>= 0.2.0)
power_assert (0.3.0)
power_assert (0.4.1)
powerpack (0.1.1)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-rails (0.3.4)
pry (>= 0.9.10)
rack (1.6.4)
public_suffix (2.0.4)
rack (1.6.5)
rack-protection (1.5.3)
rack
rack-test (0.6.3)
Expand Down Expand Up @@ -273,13 +273,13 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (2.1.0)
rake (11.2.2)
rb-fsevent (0.9.7)
rake (12.0.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
recaptcha (3.3.0)
recaptcha (4.0.1)
json
redis (3.3.1)
redis (3.3.2)
ref (2.0.0)
request_store (1.3.1)
rest-client (1.8.0)
Expand All @@ -290,15 +290,15 @@ GEM
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.2)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-rails (3.5.1)
rspec-rails (3.5.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
Expand All @@ -307,40 +307,40 @@ GEM
rspec-mocks (~> 3.5.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
rubocop (0.42.0)
rubocop (0.46.0)
parser (>= 2.3.1.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
ruby_dep (1.4.0)
ruby_dep (1.5.0)
rubyzip (1.2.0)
rvm-capistrano (1.4.4)
capistrano (>= 2.15.4)
safe_yaml (1.0.4)
sanitize (4.1.0)
sanitize (4.4.0)
crass (~> 1.0.2)
nokogiri (>= 1.4.4)
nokogumbo (~> 1.4.1)
sass (3.4.22)
sass (3.4.23)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
scrypt (2.1.1)
ffi-compiler (>= 0.0.2)
scrypt (3.0.3)
ffi-compiler (>= 1.0.0)
rake
shellany (0.0.1)
shoulda-context (1.2.1)
sidekiq (4.1.4)
shoulda-context (1.2.2)
sidekiq (4.2.7)
concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0)
rack-protection (>= 1.5.0)
redis (~> 3.2, >= 3.2.1)
sinatra (>= 1.4.7)
sidekiq-limit_fetch (3.3.0)
sidekiq-limit_fetch (3.4.0)
sidekiq (>= 4)
simplecov (0.12.0)
docile (~> 1.1.0)
Expand All @@ -355,23 +355,24 @@ GEM
temple (~> 0.6.3)
tilt (~> 1.3, >= 1.3.3)
slop (3.6.0)
spring (1.7.2)
spring (2.0.0)
activesupport (>= 4.2)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (3.7.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.1.1)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
temple (0.6.10)
test-unit (3.2.1)
test-unit (3.2.3)
power_assert
therubyracer (0.12.2)
libv8 (~> 3.16.14.0)
ref
thor (0.19.1)
thor (0.19.4)
thread_safe (0.3.5)
tilt (1.4.1)
timecop (0.8.1)
Expand All @@ -382,15 +383,15 @@ GEM
railties (>= 3.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.0.1)
uglifier (3.0.4)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.2)
unicode-display_width (1.1.0)
unicode-display_width (1.1.2)
uuidtools (2.1.5)
vcr (3.0.3)
webmock (2.1.0)
webmock (2.3.1)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
Expand All @@ -399,10 +400,10 @@ GEM
websocket-extensions (0.1.2)
whenever (0.9.7)
chronic (>= 0.6.3)
will_paginate (3.1.0)
will_paginate (3.1.5)
xpath (2.0.0)
nokogiri (~> 1.3)
yajl-ruby (1.2.1)
yajl-ruby (1.3.0)

PLATFORMS
ruby
Expand Down Expand Up @@ -472,4 +473,4 @@ DEPENDENCIES
will_paginate

BUNDLED WITH
1.12.5
1.13.6
8 changes: 7 additions & 1 deletion app/controllers/user_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def new
end

def create
@user_session = UserSession.new(params[:user_session])
@user_session = UserSession.new(user_session_params)
if @user_session.save
flash[:notice] = "Login successful!"
redirect_to @user_session.user
Expand All @@ -22,4 +22,10 @@ def destroy
flash[:notice] = "Logout successful!"
redirect_to root_url
end

private

def user_session_params
params.require(:user_session).permit(:email, :password, :remember_me)
end
end
11 changes: 2 additions & 9 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
require 'sidekiq/web'
require ::File.expand_path('../config/environment', __FILE__)

Sidekiq::Web.use Rack::Session::Cookie, :secret => ENV['RACK_SESSION_COOKIE']
Sidekiq::Web.instance_eval { @middleware.reverse! } # make session the first middleware to run
run Rack::URLMap.new(
"/" => Rails.application,
"/sidekiq" => Sidekiq::Web
)
require ::File.expand_path('../config/environment', __FILE__)
run Rails.application
8 changes: 0 additions & 8 deletions config/initializers/sidekiq.rb

This file was deleted.

0 comments on commit ab107f3

Please sign in to comment.