Skip to content

Commit

Permalink
fix: rack version, args forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Aug 13, 2024
1 parent 2108f9d commit b74e179
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
redis_version: latest
- ruby: "3.2"
graphql: '~> 2.2.0'
anycable: '~> 1.4.0'
anycable: '~> 1.5.0'
redis_version: '7.2'
- ruby: "3.1"
graphql: '~> 2.0.0'
anycable: '~> 1.3.0'
graphql: '~> 2.1.0'
anycable: '~> 1.4.0'
redis_version: '6.2'
- ruby: "3.0"
graphql: '~> 2.0.0'
anycable: '~> 1.3.0'
anycable: '~> 1.4.0'
redis_version: '6.2'
env:
CI: true
Expand Down
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ AllCops:
NewCops: disable
SuggestExtensions: false
TargetRubyVersion: 3.2

Style/ArgumentsForwarding:
Enabled: false
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gemspec
gem "graphql", ENV.fetch("GRAPHQL_RUBY_VERSION", "~> 2.3")
gem "anycable", ENV.fetch("ANYCABLE_VERSION", "~> 1.5")
gem "anycable-rails", ENV.fetch("ANYCABLE_RAILS_VERSION", "~> 1.5")
gem "rack", "< 3.0" if /1\.4/.match?(ENV.fetch("ANYCABLE_VERSION", "~> 1.5"))

gem "ostruct"

Expand Down
8 changes: 4 additions & 4 deletions lib/graphql-anycable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

module GraphQL
module AnyCable
def self.use(schema, **)
schema.use(GraphQL::Subscriptions::AnyCableSubscriptions, **)
def self.use(schema, **opts)
schema.use(GraphQL::Subscriptions::AnyCableSubscriptions, **opts)
end

def self.stats(**)
Stats.new(**).collect
def self.stats(**opts)
Stats.new(**opts).collect
end

module_function
Expand Down

0 comments on commit b74e179

Please sign in to comment.