graphql-anycable 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +8 -13
- data/CHANGELOG.md +6 -0
- data/README.md +35 -2
- data/graphql-anycable.gemspec +1 -1
- data/lib/graphql/anycable/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe8111474650b5580715d08c4122d70db3dcf45a4e1760d561e05119124181f7
|
|
4
|
+
data.tar.gz: 02e62b9ab477143af5889de901181de56aab1d88ec6a174041f4a2307090bbb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ff1cfaa560fc9361704545d6c071658e8847d07b8d37f72b2680396046788f5c65ce3d63a026b1af10192a96684a54e078d1b7a5572e13bf778d52fd1e5fd53
|
|
7
|
+
data.tar.gz: bc67b3fb5b20f6e0ec06637b40410ecdd6420d58f7cb4eb3eaa610a4258fda1139d2cfd24237280e1af74893c06a363b6e6611ae5c0146439c4d9094cb07b0c6
|
data/.github/workflows/test.yml
CHANGED
|
@@ -10,27 +10,24 @@ on:
|
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
12
|
test:
|
|
13
|
-
name: "GraphQL-Ruby ${{ matrix.graphql }}
|
|
13
|
+
name: "GraphQL-Ruby ${{ matrix.graphql }} on Ruby ${{ matrix.ruby }} (use_client_id: ${{ matrix.client_id }})"
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
strategy:
|
|
16
16
|
fail-fast: false
|
|
17
17
|
matrix:
|
|
18
18
|
include:
|
|
19
|
+
- ruby: "3.1"
|
|
20
|
+
graphql: '~> 2.0.0'
|
|
21
|
+
client_id: 'false'
|
|
22
|
+
anycable_rails: '~> 1.3'
|
|
19
23
|
- ruby: "3.0"
|
|
20
|
-
graphql: '~> 1.
|
|
24
|
+
graphql: '~> 1.13.0'
|
|
21
25
|
client_id: 'false'
|
|
22
|
-
|
|
23
|
-
anycable_rails: '~> 1.2'
|
|
26
|
+
anycable_rails: '~> 1.2.0'
|
|
24
27
|
- ruby: 2.7
|
|
25
28
|
graphql: '~> 1.12.0'
|
|
26
|
-
client_id: 'false'
|
|
27
|
-
interpreter: yes
|
|
28
|
-
anycable_rails: '~> 1.2.0'
|
|
29
|
-
- ruby: 2.6
|
|
30
|
-
graphql: '~> 1.11.0'
|
|
31
29
|
client_id: 'true'
|
|
32
|
-
|
|
33
|
-
anycable_rails: '~> 1.0'
|
|
30
|
+
anycable_rails: '~> 1.1.0'
|
|
34
31
|
container:
|
|
35
32
|
image: ruby:${{ matrix.ruby }}
|
|
36
33
|
env:
|
|
@@ -55,6 +52,4 @@ jobs:
|
|
|
55
52
|
bundle install
|
|
56
53
|
bundle update
|
|
57
54
|
- name: Run RSpec
|
|
58
|
-
env:
|
|
59
|
-
GRAPHQL_RUBY_INTERPRETER: ${{ matrix.interpreter }}
|
|
60
55
|
run: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 1.1.3 - 2022-03-11
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Allow using graphql-anycable with GraphQL-Ruby 2.x (it seem to be already compatible). [@Envek]
|
|
15
|
+
|
|
10
16
|
## 1.1.2 - 2022-03-11
|
|
11
17
|
|
|
12
18
|
### Fixed
|
data/README.md
CHANGED
|
@@ -111,8 +111,8 @@ By default all fields are marked as _not safe for broadcasting_. If a subscripti
|
|
|
111
111
|
|
|
112
112
|
```ruby
|
|
113
113
|
class MySchema < GraphQL::Schema
|
|
114
|
-
use GraphQL::Execution::Interpreter # Required for graphql-ruby before 1.12.
|
|
115
|
-
use GraphQL::Analysis::AST
|
|
114
|
+
use GraphQL::Execution::Interpreter # Required for graphql-ruby before 1.12. Remove it when upgrading to 2.0
|
|
115
|
+
use GraphQL::Analysis::AST # Required for graphql-ruby before 1.12. Remove it when upgrading to 2.0
|
|
116
116
|
use GraphQL::AnyCable, broadcast: true, default_broadcastable: true
|
|
117
117
|
|
|
118
118
|
subscription SubscriptionType
|
|
@@ -215,6 +215,39 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
215
215
|
|
|
216
216
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
217
217
|
|
|
218
|
+
### Releasing new versions
|
|
219
|
+
|
|
220
|
+
1. Bump version number in `lib/graphql/anycable/version.rb`
|
|
221
|
+
|
|
222
|
+
In case of pre-releases keep in mind [rubygems/rubygems#3086](https://github.com/rubygems/rubygems/issues/3086) and check version with command like `Gem::Version.new(AfterCommitEverywhere::VERSION).to_s`
|
|
223
|
+
|
|
224
|
+
2. Fill `CHANGELOG.md` with missing changes, add header with version and date.
|
|
225
|
+
|
|
226
|
+
3. Make a commit:
|
|
227
|
+
|
|
228
|
+
```sh
|
|
229
|
+
git add lib/graphql/anycable/version.rb CHANGELOG.md
|
|
230
|
+
version=$(ruby -r ./lib/graphql/anycable/version.rb -e "puts Gem::Version.new(GraphQL::AnyCable::VERSION)")
|
|
231
|
+
git commit --message="${version}: " --edit
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
4. Create annotated tag:
|
|
235
|
+
|
|
236
|
+
```sh
|
|
237
|
+
git tag v${version} --annotate --message="${version}: " --edit --sign
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
5. Fill version name into subject line and (optionally) some description (list of changes will be taken from `CHANGELOG.md` and appended automatically)
|
|
241
|
+
|
|
242
|
+
6. Push it:
|
|
243
|
+
|
|
244
|
+
```sh
|
|
245
|
+
git push --follow-tags
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
7. GitHub Actions will create a new release, build and push gem into [rubygems.org](https://rubygems.org)! You're done!
|
|
249
|
+
|
|
250
|
+
|
|
218
251
|
## Contributing
|
|
219
252
|
|
|
220
253
|
Bug reports and pull requests are welcome on GitHub at https://github.com/Envek/graphql-anycable.
|
data/graphql-anycable.gemspec
CHANGED
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
|
|
29
29
|
spec.add_dependency "anycable", "~> 1.0"
|
|
30
30
|
spec.add_dependency "anyway_config", ">= 1.3", "< 3"
|
|
31
|
-
spec.add_dependency "graphql", "
|
|
31
|
+
spec.add_dependency "graphql", ">= 1.11", "< 3"
|
|
32
32
|
spec.add_dependency "redis", ">= 4.2.0"
|
|
33
33
|
|
|
34
34
|
spec.add_development_dependency "anycable-rails"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql-anycable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrey Novikov
|
|
@@ -48,16 +48,22 @@ dependencies:
|
|
|
48
48
|
name: graphql
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- - "
|
|
51
|
+
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '1.11'
|
|
54
|
+
- - "<"
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '3'
|
|
54
57
|
type: :runtime
|
|
55
58
|
prerelease: false
|
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
60
|
requirements:
|
|
58
|
-
- - "
|
|
61
|
+
- - ">="
|
|
59
62
|
- !ruby/object:Gem::Version
|
|
60
63
|
version: '1.11'
|
|
64
|
+
- - "<"
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: '3'
|
|
61
67
|
- !ruby/object:Gem::Dependency
|
|
62
68
|
name: redis
|
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|