Skip to content

Commit

Permalink
Merge pull request #175 from jmortlock/align-support-with-doorkeeper
Browse files Browse the repository at this point in the history
Align support with doorkeeper
  • Loading branch information
nbulaj authored Aug 30, 2022
2 parents a8e2c88 + 3a8701c commit 9f1a522
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 68 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,23 @@ jobs:
matrix:
os: [ ubuntu-latest ]
ruby:
- 2.5
- 2.6
- 2.7
- '3.0'
- '3.1'
- head
gemfile:
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
- gemfiles/rails_6.1.gemfile
- gemfiles/rails_7.0.gemfile
- gemfiles/doorkeeper_master.gemfile
exclude:
- ruby: 3.0
gemfile: gemfiles/rails_5_2.gemfile
- ruby: 2.6
gemfile: gemfiles/rails_7_0.gemfile
steps:
- name: Repo checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.2
3.1.2
2 changes: 1 addition & 1 deletion doorkeeper-openid_connect.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.5'
spec.required_ruby_version = '>= 2.6'

spec.add_runtime_dependency 'doorkeeper', '>= 5.5', '< 5.7'
spec.add_runtime_dependency 'json-jwt', '>= 1.11.0'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/doorkeeper_master.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source 'https://rubygems.org'

gem 'rails', '~> 6.0.0'
gem 'rails', '~> 7.0.0'
gem 'rails-controller-testing'
gem 'sqlite3', '~> 1.4', platform: %i[ruby mswin mingw x64_mingw]
gem 'doorkeeper', git: 'https://github.com/doorkeeper-gem/doorkeeper.git'
Expand Down
9 changes: 9 additions & 0 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'rails', '~> 7.0.0'
gem 'rails-controller-testing'
gem 'sqlite3', '~> 1.4', platform: %i[ruby mswin mingw x64_mingw]

gemspec path: '../'
13 changes: 7 additions & 6 deletions spec/dummy/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
development:
adapter: sqlite3
pool: 5
timeout: 5000

development:
<<: *default
database: db/development.sqlite3

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
adapter: sqlite3
pool: 5
timeout: 5000
database: db/test.sqlite3

production:
<<: *default
adapter: sqlite3
pool: 5
timeout: 5000
database: db/production.sqlite3
19 changes: 0 additions & 19 deletions spec/dummy/config/initializers/new_framework_defaults.rb

This file was deleted.

3 changes: 0 additions & 3 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
ActiveRecord::Migration.maintain_test_schema!
end

# Remove after dropping support of Rails 4.2
require_relative 'support/http_method_shim.rb'

require_relative 'support/doorkeeper_configuration.rb'

require 'factory_bot'
Expand Down
36 changes: 0 additions & 36 deletions spec/support/http_method_shim.rb

This file was deleted.

0 comments on commit 9f1a522

Please sign in to comment.