graphql-anycable 1.1.2 → 1.1.3

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: 4eb249dbc6328d60349c77133acf85310aed8327970a566a29948150e273ccd4
4
- data.tar.gz: 63ed46c57e0edcaab0070bc76b7302d132c08e66d82e4df50952eea179df1d46
3
+ metadata.gz: fe8111474650b5580715d08c4122d70db3dcf45a4e1760d561e05119124181f7
4
+ data.tar.gz: 02e62b9ab477143af5889de901181de56aab1d88ec6a174041f4a2307090bbb0
5
5
  SHA512:
6
- metadata.gz: eaf554708a593aba20f54f3fe02f8cb841253e61a2485da7761d7ac68a33f0f154bee17c8f9642697692e26d98a603e507ae48da847a7303809657a6c3f8bdad
7
- data.tar.gz: 4d48e480589166950e962f08f70ce38f0022a306608315ff1b3509f75211ef5902e9cafe803551cfd645fd55fc759057d3d6c0e0a4002a2a28850933a958a641
6
+ metadata.gz: 9ff1cfaa560fc9361704545d6c071658e8847d07b8d37f72b2680396046788f5c65ce3d63a026b1af10192a96684a54e078d1b7a5572e13bf778d52fd1e5fd53
7
+ data.tar.gz: bc67b3fb5b20f6e0ec06637b40410ecdd6420d58f7cb4eb3eaa610a4258fda1139d2cfd24237280e1af74893c06a363b6e6611ae5c0146439c4d9094cb07b0c6
@@ -10,27 +10,24 @@ on:
10
10
 
11
11
  jobs:
12
12
  test:
13
- name: "GraphQL-Ruby ${{ matrix.graphql }} (interpreter: ${{ matrix.interpreter }}, use_client_id: ${{ matrix.client_id }}) on Ruby ${{ matrix.ruby }}"
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.12.0'
24
+ graphql: '~> 1.13.0'
21
25
  client_id: 'false'
22
- interpreter: yes
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
- interpreter: no
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.4
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.
@@ -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", "~> 1.11"
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"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module AnyCable
5
- VERSION = "1.1.2"
5
+ VERSION = "1.1.3"
6
6
  end
7
7
  end
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.2
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