Skip to content

Commit

Permalink
Support graphql-ruby 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoasleep committed May 14, 2024
1 parent b87f569 commit 5c82f65
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
ruby: [2.7.6, 3.0.4, 3.1.2]
gemfile:
- graphql_1.x
- graphql_2.x
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
name: Ruby ${{ matrix.ruby }}
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
appraise 'graphql-1.x' do
gem 'graphql', '~> 1.9'
end

appraise 'graphql-2.x' do
gem 'graphql', '~> 2.0'
end
7 changes: 7 additions & 0 deletions gemfiles/graphql_2.x.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "graphql", "~> 2.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion graphql-kaminari_connection.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.7'

spec.add_dependency 'graphql', '~> 1.9'
spec.add_dependency 'graphql', '>= 1.9', '< 3.0'
spec.add_dependency 'kaminari', '~> 1.1'

spec.add_development_dependency 'activerecord', '~> 6.0'
Expand Down

0 comments on commit 5c82f65

Please sign in to comment.