mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-11 09:06:42 +01:00
Compare commits
4 Commits
ee8b06aa59
...
a358b829cb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a358b829cb | ||
| c81a3c17ad | |||
| c81a590adb | |||
|
|
a57eca5737 |
3
Gemfile
3
Gemfile
@ -39,7 +39,7 @@ gem 'sdoc', '~> 2.1.0', group: :doc
|
|||||||
gem 'web-console', '~> 4.1.0', group: :development
|
gem 'web-console', '~> 4.1.0', group: :development
|
||||||
gem 'listen', '~> 3.5.1', group: :development
|
gem 'listen', '~> 3.5.1', group: :development
|
||||||
|
|
||||||
gem 'bootstrap', '~> 4.5.3'
|
gem 'bootstrap', '~> 5.0.1'
|
||||||
gem "bootstrap_form", "~> 4.5"
|
gem "bootstrap_form", "~> 4.5"
|
||||||
gem 'font-awesome-sass', '~> 5.15.1'
|
gem 'font-awesome-sass', '~> 5.15.1'
|
||||||
|
|
||||||
@ -52,6 +52,7 @@ gem 'will_paginate-bootstrap4', '~> 0.2.2'
|
|||||||
|
|
||||||
gem 'devise', '~> 4.8.0'
|
gem 'devise', '~> 4.8.0'
|
||||||
gem 'omniauth'
|
gem 'omniauth'
|
||||||
|
gem 'omniauth-rails_csrf_protection'
|
||||||
gem 'omniauth-github'
|
gem 'omniauth-github'
|
||||||
|
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
|
|||||||
51
Gemfile.lock
51
Gemfile.lock
@ -62,15 +62,15 @@ GEM
|
|||||||
zeitwerk (~> 2.3)
|
zeitwerk (~> 2.3)
|
||||||
addressable (2.7.0)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
autoprefixer-rails (10.0.2.0)
|
autoprefixer-rails (10.2.5.0)
|
||||||
execjs
|
execjs (< 2.8.0)
|
||||||
bcrypt (3.1.16)
|
bcrypt (3.1.16)
|
||||||
bindex (0.8.1)
|
bindex (0.8.1)
|
||||||
bootsnap (1.7.5)
|
bootsnap (1.7.5)
|
||||||
msgpack (~> 1.0)
|
msgpack (~> 1.0)
|
||||||
bootstrap (4.5.3)
|
bootstrap (5.0.1)
|
||||||
autoprefixer-rails (>= 9.1.0)
|
autoprefixer-rails (>= 9.1.0)
|
||||||
popper_js (>= 1.14.3, < 2)
|
popper_js (>= 2.9.2, < 3)
|
||||||
sassc-rails (>= 2.0.0)
|
sassc-rails (>= 2.0.0)
|
||||||
bootstrap_form (4.5.0)
|
bootstrap_form (4.5.0)
|
||||||
actionpack (>= 5.2)
|
actionpack (>= 5.2)
|
||||||
@ -97,8 +97,15 @@ GEM
|
|||||||
diffy (3.4.0)
|
diffy (3.4.0)
|
||||||
erubi (1.10.0)
|
erubi (1.10.0)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
faraday (1.0.0)
|
faraday (1.4.1)
|
||||||
|
faraday-excon (~> 1.1)
|
||||||
|
faraday-net_http (~> 1.0)
|
||||||
|
faraday-net_http_persistent (~> 1.1)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
|
ruby2_keywords (>= 0.0.4)
|
||||||
|
faraday-excon (1.1.0)
|
||||||
|
faraday-net_http (1.0.1)
|
||||||
|
faraday-net_http_persistent (1.1.0)
|
||||||
ffi (1.15.0)
|
ffi (1.15.0)
|
||||||
font-awesome-sass (5.15.1)
|
font-awesome-sass (5.15.1)
|
||||||
sassc (>= 1.11)
|
sassc (>= 1.11)
|
||||||
@ -114,7 +121,7 @@ GEM
|
|||||||
rails-dom-testing (>= 1, < 3)
|
rails-dom-testing (>= 1, < 3)
|
||||||
railties (>= 4.2.0)
|
railties (>= 4.2.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
jwt (2.2.1)
|
jwt (2.2.3)
|
||||||
listen (3.5.1)
|
listen (3.5.1)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
@ -129,36 +136,42 @@ GEM
|
|||||||
mini_portile2 (2.5.1)
|
mini_portile2 (2.5.1)
|
||||||
minitest (5.14.4)
|
minitest (5.14.4)
|
||||||
msgpack (1.4.2)
|
msgpack (1.4.2)
|
||||||
multi_json (1.14.1)
|
multi_json (1.15.0)
|
||||||
multi_xml (0.6.0)
|
multi_xml (0.6.0)
|
||||||
multipart-post (2.1.1)
|
multipart-post (2.1.1)
|
||||||
mysql2 (0.5.3)
|
mysql2 (0.5.3)
|
||||||
nio4r (2.5.7)
|
nio4r (2.5.7)
|
||||||
nokogiri (1.11.4)
|
nokogiri (1.11.5)
|
||||||
mini_portile2 (~> 2.5.0)
|
mini_portile2 (~> 2.5.0)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
oauth2 (1.4.3)
|
oauth2 (1.4.7)
|
||||||
faraday (>= 0.8, < 2.0)
|
faraday (>= 0.8, < 2.0)
|
||||||
jwt (>= 1.0, < 3.0)
|
jwt (>= 1.0, < 3.0)
|
||||||
multi_json (~> 1.3)
|
multi_json (~> 1.3)
|
||||||
multi_xml (~> 0.5)
|
multi_xml (~> 0.5)
|
||||||
rack (>= 1.2, < 3)
|
rack (>= 1.2, < 3)
|
||||||
omniauth (1.9.1)
|
omniauth (2.0.4)
|
||||||
hashie (>= 3.4.6)
|
hashie (>= 3.4.6)
|
||||||
rack (>= 1.6.2, < 3)
|
rack (>= 1.6.2, < 3)
|
||||||
omniauth-github (1.4.0)
|
rack-protection
|
||||||
omniauth (~> 1.5)
|
omniauth-github (2.0.0)
|
||||||
omniauth-oauth2 (>= 1.4.0, < 2.0)
|
omniauth (~> 2.0)
|
||||||
omniauth-oauth2 (1.6.0)
|
omniauth-oauth2 (~> 1.7.1)
|
||||||
oauth2 (~> 1.1)
|
omniauth-oauth2 (1.7.1)
|
||||||
omniauth (~> 1.9)
|
oauth2 (~> 1.4)
|
||||||
|
omniauth (>= 1.9, < 3)
|
||||||
|
omniauth-rails_csrf_protection (1.0.0)
|
||||||
|
actionpack (>= 4.2)
|
||||||
|
omniauth (~> 2.0)
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
popper_js (1.16.0)
|
popper_js (2.9.2)
|
||||||
public_suffix (4.0.6)
|
public_suffix (4.0.6)
|
||||||
puma (5.3.1)
|
puma (5.3.1)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
racc (1.5.2)
|
racc (1.5.2)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
|
rack-protection (2.1.0)
|
||||||
|
rack
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (6.1.3.2)
|
rails (6.1.3.2)
|
||||||
@ -203,6 +216,7 @@ GEM
|
|||||||
actionpack (>= 5.0)
|
actionpack (>= 5.0)
|
||||||
railties (>= 5.0)
|
railties (>= 5.0)
|
||||||
rexml (3.2.5)
|
rexml (3.2.5)
|
||||||
|
ruby2_keywords (0.0.4)
|
||||||
sassc (2.4.0)
|
sassc (2.4.0)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
sassc-rails (2.1.2)
|
sassc-rails (2.1.2)
|
||||||
@ -254,7 +268,7 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bootsnap
|
bootsnap
|
||||||
bootstrap (~> 4.5.3)
|
bootstrap (~> 5.0.1)
|
||||||
bootstrap_form (~> 4.5)
|
bootstrap_form (~> 4.5)
|
||||||
coffee-rails (~> 5.0.0)
|
coffee-rails (~> 5.0.0)
|
||||||
devise (~> 4.8.0)
|
devise (~> 4.8.0)
|
||||||
@ -267,6 +281,7 @@ DEPENDENCIES
|
|||||||
mysql2 (~> 0.5.2)
|
mysql2 (~> 0.5.2)
|
||||||
omniauth
|
omniauth
|
||||||
omniauth-github
|
omniauth-github
|
||||||
|
omniauth-rails_csrf_protection
|
||||||
puma (~> 5.0)
|
puma (~> 5.0)
|
||||||
rails (= 6.1.3.2)
|
rails (= 6.1.3.2)
|
||||||
rails-controller-testing
|
rails-controller-testing
|
||||||
|
|||||||
@ -32,9 +32,9 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<% if Rails.env.development? %>
|
<% if Rails.env.development? %>
|
||||||
<%= link_to t('application.sign_in_with_github'), user_developer_omniauth_authorize_path, class: 'nav-link' %>
|
<%= link_to t('application.sign_in_with_github'), user_developer_omniauth_authorize_path, method: :post, class: 'nav-link' %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to t('application.sign_in_with_github'), user_github_omniauth_authorize_path, class: 'nav-link' %>
|
<%= link_to t('application.sign_in_with_github'), user_github_omniauth_authorize_path, method: :post, class: 'nav-link' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@ -8,7 +8,7 @@ class TranslatorFlowTest < ActionDispatch::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "can login via github" do
|
test "can login via github" do
|
||||||
get '/users/auth/github'
|
post '/users/auth/github'
|
||||||
assert_response :redirect
|
assert_response :redirect
|
||||||
follow_redirect!
|
follow_redirect!
|
||||||
follow_redirect!
|
follow_redirect!
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user