Skip to content

Commit 87a0896

Browse files
committed
Merge remote-tracking branch 'origin/main' into thread-safety
2 parents 7d4d26c + 3d11b22 commit 87a0896

File tree

7 files changed

+152
-251
lines changed

7 files changed

+152
-251
lines changed

.circleci/config.yml

-241
This file was deleted.

.github/workflows/tests.yml

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- ruby: "2.4"
12+
rails: ~> 4.2.0
13+
bundler: 1.17.3
14+
- ruby: "2.4"
15+
rails: ~> 5.0.0
16+
- ruby: "2.4"
17+
rails: ~> 5.1.0
18+
- ruby: "2.4"
19+
rails: ~> 5.2.0
20+
21+
- ruby: "2.5"
22+
rails: ~> 5.0.0
23+
- ruby: "2.5"
24+
rails: ~> 5.1.0
25+
- ruby: "2.5"
26+
rails: ~> 5.2.0
27+
- ruby: "2.5"
28+
rails: ~> 6.0.0
29+
- ruby: "2.5"
30+
rails: ~> 6.1.0
31+
32+
- ruby: "2.6"
33+
rails: ~> 5.0.0
34+
- ruby: "2.6"
35+
rails: ~> 5.1.0
36+
- ruby: "2.6"
37+
rails: ~> 5.2.0
38+
- ruby: "2.6"
39+
rails: ~> 6.0.0
40+
- ruby: "2.6"
41+
rails: ~> 6.1.0
42+
43+
- ruby: "2.7"
44+
rails: ~> 5.0.0
45+
- ruby: "2.7"
46+
rails: ~> 5.1.0
47+
- ruby: "2.7"
48+
rails: ~> 5.2.0
49+
- ruby: "2.7"
50+
rails: ~> 6.0.0
51+
- ruby: "2.7"
52+
rails: ~> 6.1.0
53+
- ruby: "2.7"
54+
rails: ~> 7.0.0
55+
- ruby: "2.7"
56+
rails: ~> 7.1.0
57+
58+
- ruby: "3.0"
59+
rails: ~> 6.0.0
60+
- ruby: "3.0"
61+
rails: ~> 6.1.0
62+
- ruby: "3.0"
63+
rails: ~> 7.0.0
64+
- ruby: "3.0"
65+
rails: ~> 7.1.0
66+
67+
- ruby: "3.1"
68+
rails: ~> 6.0.0
69+
- ruby: "3.1"
70+
rails: ~> 6.1.0
71+
- ruby: "3.1"
72+
rails: ~> 7.0.0
73+
- ruby: "3.1"
74+
rails: ~> 7.1.0
75+
- ruby: "3.1"
76+
rails: edge
77+
78+
- ruby: "3.2"
79+
rails: ~> 6.0.0
80+
- ruby: "3.2"
81+
rails: ~> 6.1.0
82+
- ruby: "3.2"
83+
rails: ~> 7.0.0
84+
- ruby: "3.2"
85+
rails: ~> 7.1.0
86+
- ruby: "3.2"
87+
rails: edge
88+
89+
- ruby: head
90+
rails: ~> 7.1.0
91+
- ruby: head
92+
rails: edge
93+
94+
env:
95+
RAILS_VERSION: ${{ matrix.rails }}
96+
runs-on: ubuntu-latest
97+
steps:
98+
- uses: actions/checkout@v4
99+
- uses: ruby/setup-ruby@v1
100+
with:
101+
ruby-version: ${{ matrix.ruby }}
102+
bundler: ${{ matrix.bundler }}
103+
- name: Run bundle update
104+
run: bundle update
105+
- name: Run tests
106+
run: bin/rake

Gemfile

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
source "https://rubygems.org"
22

3-
# rubocop:disable Bundler/DuplicatedGem
4-
if ENV["RAILS_VERSION"]
5-
gem "rails", ENV["RAILS_VERSION"]
6-
elsif ENV["RAILS_BRANCH"]
7-
gem "rails", git: "https://github.com/rails/rails.git", branch: ENV["RAILS_BRANCH"]
3+
if ENV["RAILS_VERSION"] == "edge"
4+
gem "rails", git: "https://github.com/rails/rails.git", branch: "main"
5+
end
6+
7+
# Lock loofah to old version for Ruby 2.4
8+
unless RUBY_VERSION > "2.5"
9+
gem "loofah", "~> 2.20.0"
810
end
9-
# rubocop:enable Bundler/DuplicatedGem
1011

1112
gemspec

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ Forgery on the request phase when using OmniAuth gem with a Ruby on Rails
55
application) by implementing a CSRF token verifier that directly uses
66
`ActionController::RequestForgeryProtection` code from Rails.
77

8-
[![CircleCI](https://circleci.com/gh/cookpad/omniauth-rails_csrf_protection/tree/main.svg?style=svg)](https://circleci.com/gh/cookpad/omniauth-rails_csrf_protection/tree/main)
9-
108
[CVE-2015-9284]: https://nvd.nist.gov/vuln/detail/CVE-2015-9284
119

1210
## Usage

0 commit comments

Comments
 (0)