1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-13 09:46:41 +01:00

Compare commits

..

No commits in common. "87cdfccc6c3546a36f87597eff9446c12bb2908c" and "e6986b85a91ca6935a5ab01f3444f08734900a58" have entirely different histories.

6 changed files with 16 additions and 39 deletions

View File

@ -1,7 +0,0 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10

View File

@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0']
ruby: ['2.5', '2.6', '2.7']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
@ -17,7 +17,7 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v2
uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Install dependencies

View File

@ -52,7 +52,6 @@ gem 'will_paginate-bootstrap4', '~> 0.2.2'
gem 'devise', '~> 4.8.0'
gem 'omniauth'
gem 'omniauth-rails_csrf_protection'
gem 'omniauth-github'
# Use ActiveModel has_secure_password

View File

@ -97,15 +97,8 @@ GEM
diffy (3.4.0)
erubi (1.10.0)
execjs (2.7.0)
faraday (1.4.1)
faraday-excon (~> 1.1)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday (1.0.0)
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)
font-awesome-sass (5.15.1)
sassc (>= 1.11)
@ -121,7 +114,7 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jwt (2.2.3)
jwt (2.2.1)
listen (3.5.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
@ -136,7 +129,7 @@ GEM
mini_portile2 (2.5.1)
minitest (5.14.4)
msgpack (1.4.2)
multi_json (1.15.0)
multi_json (1.14.1)
multi_xml (0.6.0)
multipart-post (2.1.1)
mysql2 (0.5.3)
@ -144,25 +137,21 @@ GEM
nokogiri (1.11.4)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
oauth2 (1.4.7)
oauth2 (1.4.3)
faraday (>= 0.8, < 2.0)
jwt (>= 1.0, < 3.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
omniauth (2.0.4)
omniauth (1.9.1)
hashie (>= 3.4.6)
rack (>= 1.6.2, < 3)
rack-protection
omniauth-github (2.0.0)
omniauth (~> 2.0)
omniauth-oauth2 (~> 1.7.1)
omniauth-oauth2 (1.7.1)
oauth2 (~> 1.4)
omniauth (>= 1.9, < 3)
omniauth-rails_csrf_protection (1.0.0)
actionpack (>= 4.2)
omniauth (~> 2.0)
omniauth-github (1.4.0)
omniauth (~> 1.5)
omniauth-oauth2 (>= 1.4.0, < 2.0)
omniauth-oauth2 (1.6.0)
oauth2 (~> 1.1)
omniauth (~> 1.9)
orm_adapter (0.5.0)
popper_js (1.16.0)
public_suffix (4.0.6)
@ -170,8 +159,6 @@ GEM
nio4r (~> 2.0)
racc (1.5.2)
rack (2.2.3)
rack-protection (2.1.0)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (6.1.3.2)
@ -216,7 +203,6 @@ GEM
actionpack (>= 5.0)
railties (>= 5.0)
rexml (3.2.5)
ruby2_keywords (0.0.4)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
@ -281,7 +267,6 @@ DEPENDENCIES
mysql2 (~> 0.5.2)
omniauth
omniauth-github
omniauth-rails_csrf_protection
puma (~> 5.0)
rails (= 6.1.3.2)
rails-controller-testing

View File

@ -32,9 +32,9 @@
<% else %>
<li class="nav-item">
<% if Rails.env.development? %>
<%= link_to t('application.sign_in_with_github'), user_developer_omniauth_authorize_path, method: :post, class: 'nav-link' %>
<%= link_to t('application.sign_in_with_github'), user_developer_omniauth_authorize_path, class: 'nav-link' %>
<% else %>
<%= link_to t('application.sign_in_with_github'), user_github_omniauth_authorize_path, method: :post, class: 'nav-link' %>
<%= link_to t('application.sign_in_with_github'), user_github_omniauth_authorize_path, class: 'nav-link' %>
<% end %>
</li>
<% end %>

View File

@ -8,7 +8,7 @@ class TranslatorFlowTest < ActionDispatch::IntegrationTest
end
test "can login via github" do
post '/users/auth/github'
get '/users/auth/github'
assert_response :redirect
follow_redirect!
follow_redirect!