From 39bb733d20cfdd9f3970eca50975d89f330df136 Mon Sep 17 00:00:00 2001 From: Andrey Novikov Date: Tue, 7 May 2024 23:21:44 +0900 Subject: [PATCH] Depend on anycable-core to avoid installing grpc without need Fixes https://github.com/anycable/graphql-anycable/issues/43 --- CHANGELOG.md | 8 ++++++++ graphql-anycable.gemspec | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cd3227..e210af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +### Changed + +- Depend on `anycable-core` gem instead of `anycable`. + + This allows to avoid installing `grpc` gem when using alternate AnyCable broadcasting adapters (like HTTP). + + See https://github.com/anycable/graphql-anycable/issues/43 for details. + ### Removed - Handling of client-provided channel identifiers. **BREAKING CHANGE** diff --git a/graphql-anycable.gemspec b/graphql-anycable.gemspec index a5496e0..cfb6be3 100644 --- a/graphql-anycable.gemspec +++ b/graphql-anycable.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "anycable", "~> 1.0" + spec.add_dependency "anycable-core", "~> 1.1" spec.add_dependency "anyway_config", ">= 1.3", "< 3" spec.add_dependency "graphql", ">= 1.11", "< 3" spec.add_dependency "redis", ">= 4.2.0"