graphql-anycable 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a2206509c7d0e76ae86f48a40a2983f4519f71be6e7ce040be69ffebc899c91
4
- data.tar.gz: 218a906bfa8bc0349870051252d49451d4f3f0fe2441c179f84082b88ddf0b21
3
+ metadata.gz: f463febbc62debd78ca0f3beffb7a6e97f9f10a850256cd97ad49f3af4894587
4
+ data.tar.gz: 8d10b35e3bed8d8e8f0524540cc1a049d6af9ed7673f5335dec09e9a0deb420d
5
5
  SHA512:
6
- metadata.gz: f5bd487aceb0b69041d5e2a5357f3477917a88e50b7569cf4c21ce3def5cf1c812e28675769dcedd53905d14423b2ace1eb88352ded215cdaa56fa1f6f417f96
7
- data.tar.gz: 8913553cb1eb8211cedb941d782df676b4821287684de6f2c0029738313aa2b502503b01f75b1f0faad7a5bc0927a2a7893efe407b65d88b7ec83581afd68b52
6
+ metadata.gz: 9f0f7636f5062096548548acfb4dd16d7762d55b39d0e53fb750f5ae549936adb9511cc179cf06becdf2e67b513f9d3ebb15b44d3e9dd9f6146da99087ce801c
7
+ data.tar.gz: 94880103ba2deb26aa42549591e18aeee903c7fc33a09a5f26c3498174250ae583acccc1ded333890a6150846cc91dd975a5ee187c16eaebca3de82f996a23a2
@@ -1,35 +1,34 @@
1
1
  ---
2
- sudo: false
3
2
  language: ruby
4
3
  cache: bundler
5
4
  rvm:
6
- - 2.7.0
7
- - 2.6.5
8
- - 2.5.7
9
- - 2.4.9
5
+ - 2.7.1
6
+ - 2.6.6
7
+ - 2.5.8
10
8
  gemfile:
11
9
  - gemfiles/graphql_1.9.gemfile
12
10
  - gemfiles/graphql_1.10.gemfile
11
+ - gemfiles/graphql_1.11.gemfile
13
12
  - gemfiles/anycable_0.6.gemfile
14
13
  - gemfiles/anycable_1.0.gemfile
14
+ env:
15
+ - GRAPHQL_RUBY_INTERPRETER=yes
16
+ - GRAPHQL_RUBY_INTERPRETER=no
15
17
  before_install: gem install bundler -v "~> 2.0"
16
18
 
17
- matrix:
19
+ jobs:
18
20
  exclude:
19
- # grpc gem isn't ready for ruby 2.7 yet: https://github.com/grpc/grpc/issues/21514
20
- # goole-protobuf gem isn't ready for ruby 2.7 yet: https://github.com/protocolbuffers/protobuf/issues/7070
21
- - rvm: 2.7.0
22
21
  # Exclude new dependencies on old rubies to run less jobs
23
- - rvm: 2.4.9
22
+ - rvm: 2.5.8
24
23
  gemfile: gemfiles/anycable_1.0.gemfile
25
- - rvm: 2.4.9
26
- gemfile: gemfiles/graphql_1.10.gemfile
27
- - rvm: 2.5.7
28
- gemfile: gemfiles/anycable_1.0.gemfile
29
- - rvm: 2.5.7
24
+ - rvm: 2.5.8
30
25
  gemfile: gemfiles/graphql_1.10.gemfile
26
+ - rvm: 2.5.8
27
+ gemfile: gemfiles/graphql_1.11.gemfile
31
28
  # Exclude old dependencies on new rubies to run less jobs
32
29
  - rvm: 2.6.5
33
30
  gemfile: gemfiles/anycable_0.6.gemfile
34
31
  - rvm: 2.6.5
35
32
  gemfile: gemfiles/graphql_1.9.gemfile
33
+ - rvm: 2.6.5
34
+ gemfile: gemfiles/graphql_1.10.gemfile
data/Appraisals CHANGED
@@ -6,6 +6,10 @@ appraise "graphql-1.10" do
6
6
  gem "graphql", "~> 1.10.0"
7
7
  end
8
8
 
9
+ appraise "graphql-1.11" do
10
+ gem "graphql", "~> 1.11.0"
11
+ end
12
+
9
13
  appraise "anycable-0.6" do
10
14
  gem "anycable", "~> 0.6.0"
11
15
  end
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.4.1 - 2020-08-21
9
+
10
+ ### Fixed
11
+
12
+ - Deprecation warning for `Redis#exist` usage on Redis Ruby client 4.2+. Switch to `exists?` method and require Redis 4.2+ (see [#14](https://github.com/anycable/graphql-anycable/issues/14)). [@Envek]
13
+
8
14
  ## 0.4.0 - 2020-03-19
9
15
 
10
16
  ### Added
data/Gemfile CHANGED
@@ -13,4 +13,7 @@ group :development, :test do
13
13
 
14
14
  gem "rubocop"
15
15
  gem "rubocop-rspec"
16
+
17
+ # See https://github.com/guilleiguaran/fakeredis/pull/247
18
+ gem "fakeredis", github: 'artygus/fakeredis', branch: 'exists-should-return-number'
16
19
  end
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "graphql", "~> 1.11.0"
6
+
7
+ group :development, :test do
8
+ gem "pry"
9
+ gem "pry-byebug", platform: :mri
10
+ gem "rubocop"
11
+ gem "rubocop-rspec"
12
+ end
13
+
14
+ gemspec path: "../"
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "anycable", ">= 0.6.0", "< 2"
30
30
  spec.add_dependency "anyway_config", ">= 1.3", "< 3"
31
31
  spec.add_dependency "graphql", "~> 1.8"
32
+ spec.add_dependency "redis", ">= 4.2.0"
32
33
 
33
34
  spec.add_development_dependency "bundler", "~> 2.0"
34
35
  spec.add_development_dependency "fakeredis"
@@ -38,7 +38,7 @@ module GraphQL
38
38
  def clean_events
39
39
  redis.scan_each(match: "#{adapter::SUBSCRIPTION_EVENTS_PREFIX}*") do |key|
40
40
  subscription_id = key.sub(/\A#{adapter::SUBSCRIPTION_EVENTS_PREFIX}/, "")
41
- next if redis.exists(adapter::SUBSCRIPTION_PREFIX + subscription_id)
41
+ next if redis.exists?(adapter::SUBSCRIPTION_PREFIX + subscription_id)
42
42
 
43
43
  redis.smembers(key).each do |event_topic|
44
44
  redis.srem(adapter::EVENT_PREFIX + event_topic, subscription_id)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module Anycable
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
  end
7
7
  end
@@ -71,7 +71,7 @@ module GraphQL
71
71
  # Re-evaluate all subscribed queries and push the data over ActionCable.
72
72
  def execute_all(event, object)
73
73
  redis.smembers(EVENT_PREFIX + event.topic).each do |subscription_id|
74
- next unless redis.exists(SUBSCRIPTION_PREFIX + subscription_id)
74
+ next unless redis.exists?(SUBSCRIPTION_PREFIX + subscription_id)
75
75
  execute(subscription_id, event, object)
76
76
  end
77
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-anycable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anycable
@@ -64,6 +64,20 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '1.8'
67
+ - !ruby/object:Gem::Dependency
68
+ name: redis
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 4.2.0
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 4.2.0
67
81
  - !ruby/object:Gem::Dependency
68
82
  name: bundler
69
83
  requirement: !ruby/object:Gem::Requirement
@@ -159,6 +173,7 @@ files:
159
173
  - gemfiles/anycable_0.6.gemfile
160
174
  - gemfiles/anycable_1.0.gemfile
161
175
  - gemfiles/graphql_1.10.gemfile
176
+ - gemfiles/graphql_1.11.gemfile
162
177
  - gemfiles/graphql_1.9.gemfile
163
178
  - graphql-anycable.gemspec
164
179
  - lib/Rakefile
@@ -189,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
204
  - !ruby/object:Gem::Version
190
205
  version: '0'
191
206
  requirements: []
192
- rubygems_version: 3.0.3
207
+ rubygems_version: 3.1.2
193
208
  signing_key:
194
209
  specification_version: 4
195
210
  summary: A drop-in replacement for GraphQL ActionCable subscriptions for AnyCable.