Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into thread-safety
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Mar 15, 2024
2 parents 7d4d26c + 3d11b22 commit 87a0896
Show file tree
Hide file tree
Showing 7 changed files with 152 additions and 251 deletions.
241 changes: 0 additions & 241 deletions .circleci/config.yml

This file was deleted.

106 changes: 106 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: tests

on: [push, pull_request]

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ruby: "2.4"
rails: ~> 4.2.0
bundler: 1.17.3
- ruby: "2.4"
rails: ~> 5.0.0
- ruby: "2.4"
rails: ~> 5.1.0
- ruby: "2.4"
rails: ~> 5.2.0

- ruby: "2.5"
rails: ~> 5.0.0
- ruby: "2.5"
rails: ~> 5.1.0
- ruby: "2.5"
rails: ~> 5.2.0
- ruby: "2.5"
rails: ~> 6.0.0
- ruby: "2.5"
rails: ~> 6.1.0

- ruby: "2.6"
rails: ~> 5.0.0
- ruby: "2.6"
rails: ~> 5.1.0
- ruby: "2.6"
rails: ~> 5.2.0
- ruby: "2.6"
rails: ~> 6.0.0
- ruby: "2.6"
rails: ~> 6.1.0

- ruby: "2.7"
rails: ~> 5.0.0
- ruby: "2.7"
rails: ~> 5.1.0
- ruby: "2.7"
rails: ~> 5.2.0
- ruby: "2.7"
rails: ~> 6.0.0
- ruby: "2.7"
rails: ~> 6.1.0
- ruby: "2.7"
rails: ~> 7.0.0
- ruby: "2.7"
rails: ~> 7.1.0

- ruby: "3.0"
rails: ~> 6.0.0
- ruby: "3.0"
rails: ~> 6.1.0
- ruby: "3.0"
rails: ~> 7.0.0
- ruby: "3.0"
rails: ~> 7.1.0

- ruby: "3.1"
rails: ~> 6.0.0
- ruby: "3.1"
rails: ~> 6.1.0
- ruby: "3.1"
rails: ~> 7.0.0
- ruby: "3.1"
rails: ~> 7.1.0
- ruby: "3.1"
rails: edge

- ruby: "3.2"
rails: ~> 6.0.0
- ruby: "3.2"
rails: ~> 6.1.0
- ruby: "3.2"
rails: ~> 7.0.0
- ruby: "3.2"
rails: ~> 7.1.0
- ruby: "3.2"
rails: edge

- ruby: head
rails: ~> 7.1.0
- ruby: head
rails: edge

env:
RAILS_VERSION: ${{ matrix.rails }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: ${{ matrix.bundler }}
- name: Run bundle update
run: bundle update
- name: Run tests
run: bin/rake
13 changes: 7 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
source "https://rubygems.org"

# rubocop:disable Bundler/DuplicatedGem
if ENV["RAILS_VERSION"]
gem "rails", ENV["RAILS_VERSION"]
elsif ENV["RAILS_BRANCH"]
gem "rails", git: "https://github.com/rails/rails.git", branch: ENV["RAILS_BRANCH"]
if ENV["RAILS_VERSION"] == "edge"
gem "rails", git: "https://github.com/rails/rails.git", branch: "main"
end

# Lock loofah to old version for Ruby 2.4
unless RUBY_VERSION > "2.5"
gem "loofah", "~> 2.20.0"
end
# rubocop:enable Bundler/DuplicatedGem

gemspec
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Forgery on the request phase when using OmniAuth gem with a Ruby on Rails
application) by implementing a CSRF token verifier that directly uses
`ActionController::RequestForgeryProtection` code from Rails.

[![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)

[CVE-2015-9284]: https://nvd.nist.gov/vuln/detail/CVE-2015-9284

## Usage
Expand Down
Loading

0 comments on commit 87a0896

Please sign in to comment.