yabeda-graphql 0.2.1 → 0.2.2

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: a185f068a3e317111f36e4074e80e6a27a4d142f20c57ec06c9804395d947332
4
- data.tar.gz: '0701549814d5ef3f5d96f12802598ff36f720419f7e33c43140ab672c8f3aca0'
3
+ metadata.gz: c20464a4af09f93903f183db49444de64e2271b32c5b64b1006bdf957097cb99
4
+ data.tar.gz: b3e99429dc2d3f8d8484d89816c31c0f90e2136eae9936785da4a0a9763f3c8c
5
5
  SHA512:
6
- metadata.gz: 84506afb23434d0f2c30097b0cdbe3dfda06b932281f97af97318df43b43db1a82ec485947ad28f2c015ce8f986f190a9d64fd29158b8f09c8885c246ae758d5
7
- data.tar.gz: d3c13baaa78ef0556ae4c18bc5d7085532a048ba3c1f784079d1746215c3e64b87e3fb100b994630565f03f0a3eecf7a57324b715daf67dbf076b62c0de57dfc
6
+ metadata.gz: e8855101b02efb9cf195dd76967c37331ff83726369bab33e3982ef093f18f90e3e34cbc817b0d8f2f600d551cccbefd11bde963ff60f3e3af77d26e9e2805ff
7
+ data.tar.gz: 888fc148f9d812a62914945f22340d39397016ecbcce565119c98debbc23fbd277095365ee21f1bc34a8b7b156b7503954097c4d4dd2774e4ef5e68397e6ff53
@@ -1,4 +1,4 @@
1
- name: Run tests
1
+ name: Tests
2
2
 
3
3
  on:
4
4
  pull_request:
@@ -10,42 +10,28 @@ on:
10
10
 
11
11
  jobs:
12
12
  test:
13
- name: "Run tests"
14
- if: "!contains(github.event.head_commit.message, '[ci skip]')"
13
+ name: "GraphQL-Ruby ${{ matrix.graphql-ruby }} on Ruby ${{ matrix.ruby }}"
15
14
  runs-on: ubuntu-latest
16
15
  strategy:
17
16
  fail-fast: false
18
17
  matrix:
19
18
  include:
19
+ - ruby: "3.1"
20
+ graphql-ruby: "2.0"
20
21
  - ruby: "3.0"
21
- graphql-ruby: "1.12"
22
- interpreter: yes
23
- - ruby: "3.0"
24
- graphql-ruby: "1.12"
25
- interpreter: no
22
+ graphql-ruby: "1.13"
26
23
  - ruby: "2.7"
27
- graphql-ruby: "1.11"
28
- interpreter: yes
29
- - ruby: "2.7"
30
- graphql-ruby: "1.11"
31
- interpreter: no
32
- - ruby: "2.6"
33
- graphql-ruby: "1.10"
34
- interpreter: yes
24
+ graphql-ruby: "1.12"
35
25
  - ruby: "2.6"
36
- graphql-ruby: "1.10"
37
- interpreter: no
26
+ graphql-ruby: "1.11"
38
27
  - ruby: "2.5"
39
- graphql-ruby: "1.9"
40
- interpreter: yes
28
+ graphql-ruby: "1.10"
41
29
  - ruby: "2.5"
42
30
  graphql-ruby: "1.9"
43
- interpreter: no
44
31
  container:
45
32
  image: ruby:${{ matrix.ruby }}
46
33
  env:
47
34
  CI: true
48
- GRAPHQL_RUBY_INTERPRETER: ${{ matrix.interpreter }}
49
35
  BUNDLE_GEMFILE: gemfiles/graphql_${{ matrix.graphql-ruby }}.gemfile
50
36
  steps:
51
37
  - uses: actions/checkout@v2
data/Appraisals CHANGED
@@ -13,3 +13,11 @@ end
13
13
  appraise "graphql-1.12" do
14
14
  gem "graphql", "~> 1.12.0"
15
15
  end
16
+
17
+ appraise "graphql-1.13" do
18
+ gem "graphql", "~> 1.13.0"
19
+ end
20
+
21
+ appraise "graphql-2.0" do
22
+ gem "graphql", "~> 2.0.0"
23
+ end
data/CHANGELOG.md CHANGED
@@ -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.2.2 - 2022-04-04
9
+
10
+ ### Fixed
11
+
12
+ - GraphQL-Ruby 2.0 compatibility (allow it in gemspec). [@Envek]
13
+
8
14
  ## 0.2.1 - 2021-02-09
9
15
 
10
16
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,25 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yabeda-graphql (0.2.0)
5
- graphql (~> 1.9)
4
+ yabeda-graphql (0.2.1)
5
+ graphql (>= 1.9, < 3)
6
6
  yabeda (~> 0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.3.0)
11
+ anyway_config (2.3.0)
12
+ ruby-next-core (>= 0.14.0)
13
+ appraisal (2.4.1)
12
14
  bundler
13
15
  rake
14
16
  thor (>= 0.14.0)
15
17
  byebug (11.1.3)
16
18
  coderay (1.1.3)
17
- concurrent-ruby (1.1.8)
18
- diff-lcs (1.4.4)
19
- dry-initializer (3.0.4)
20
- graphql (1.12.4)
21
- graphql-batch (0.4.3)
22
- graphql (>= 1.3, < 2)
19
+ concurrent-ruby (1.1.10)
20
+ diff-lcs (1.5.0)
21
+ dry-initializer (3.1.1)
22
+ graphql (1.13.11)
23
+ graphql-batch (0.5.1)
24
+ graphql (>= 1.10, < 3)
23
25
  promise.rb (~> 0.7.2)
24
26
  method_source (1.0.0)
25
27
  promise.rb (0.7.4)
@@ -32,23 +34,25 @@ GEM
32
34
  pry-inline (1.0.7)
33
35
  pry (> 0.10.0)
34
36
  unicode (~> 0.4.4)
35
- rake (13.0.3)
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.1)
41
- rspec-support (~> 3.10.0)
42
- rspec-expectations (3.10.1)
37
+ rake (13.0.6)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
43
45
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-mocks (3.10.2)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
46
48
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.10.0)
48
- rspec-support (3.10.2)
49
- thor (1.1.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ ruby-next-core (0.15.0)
52
+ thor (1.2.1)
50
53
  unicode (0.4.4.4)
51
- yabeda (0.8.0)
54
+ yabeda (0.11.0)
55
+ anyway_config (>= 1.0, < 3)
52
56
  concurrent-ruby
53
57
  dry-initializer
54
58
 
@@ -67,4 +71,4 @@ DEPENDENCIES
67
71
  yabeda-graphql!
68
72
 
69
73
  BUNDLED WITH
70
- 2.2.9
74
+ 2.3.10
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
- # Yabeda::[GraphQL][GraphQL-Ruby]
1
+ # ![Yabeda::GraphQL](./yabeda-graphql-logo.png)
2
2
 
3
- [![Build Status](https://travis-ci.org/yabeda-rb/yabeda-graphql.svg?branch=master)](https://travis-ci.org/yabeda-rb/yabeda-graphql)
3
+ [![Gem Version](https://badge.fury.io/rb/yabeda-graphql.svg)](https://badge.fury.io/rb/yabeda-graphql)
4
+ [![Tests](https://github.com/yabeda-rb/yabeda-graphql/actions/workflows/test.yml/badge.svg)](https://github.com/yabeda-rb/yabeda-graphql/actions/workflows/test.yml)
4
5
 
5
6
  Built-in metrics for [GraphQL-Ruby] monitoring out of the box! Part of the [yabeda] suite.
6
7
 
8
+ Get sample Grafana dashboard from [Grafana.com #14774](https://grafana.com/grafana/dashboards/14774) or from [`grafana-dashboard.json`](./grafana-dashboard.json) file.
9
+
7
10
  ## Installation
8
11
 
9
12
  1. Add the gem to your Gemfile:
@@ -14,7 +17,7 @@ Built-in metrics for [GraphQL-Ruby] monitoring out of the box! Part of the [yabe
14
17
  # Then add monitoring system adapter, e.g.:
15
18
  # gem 'yabeda-prometheus'
16
19
 
17
- # If you're using Railsm don't forget to add plugin for it:
20
+ # If you're using Rails don't forget to add plugin for it:
18
21
  # gem 'yabeda-rails'
19
22
  # But if not then you should run `Yabeda.configure!` manually when your app is ready.
20
23
  ```
@@ -53,8 +56,7 @@ After checking out the repo, run `bin/setup` to install dependencies.
53
56
  Then, run fololowing commands to run the tests against all supported versions of [GraphQL-Ruby]:
54
57
 
55
58
  ```sh
56
- GRAPHQL_RUBY_INTERPRETER=yes bundle exec appraisal rspec
57
- GRAPHQL_RUBY_INTERPRETER=no bundle exec appraisal rspec
59
+ bundle exec appraisal rspec
58
60
  ```
59
61
 
60
62
  You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,54 +1,58 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- yabeda-graphql (0.2.0)
5
- graphql (~> 1.9)
4
+ yabeda-graphql (0.2.1)
5
+ graphql (>= 1.9, < 3)
6
6
  yabeda (~> 0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.3.0)
11
+ anyway_config (2.3.0)
12
+ ruby-next-core (>= 0.14.0)
13
+ appraisal (2.4.1)
12
14
  bundler
13
15
  rake
14
16
  thor (>= 0.14.0)
15
17
  byebug (11.1.3)
16
18
  coderay (1.1.3)
17
- concurrent-ruby (1.1.8)
18
- diff-lcs (1.4.4)
19
+ concurrent-ruby (1.1.10)
20
+ diff-lcs (1.5.0)
19
21
  dry-initializer (3.0.4)
20
22
  graphql (1.10.14)
21
- graphql-batch (0.4.3)
22
- graphql (>= 1.3, < 2)
23
+ graphql-batch (0.5.1)
24
+ graphql (>= 1.10, < 3)
23
25
  promise.rb (~> 0.7.2)
24
26
  method_source (1.0.0)
25
27
  promise.rb (0.7.4)
26
- pry (0.13.1)
28
+ pry (0.14.1)
27
29
  coderay (~> 1.1)
28
30
  method_source (~> 1.0)
29
- pry-byebug (3.9.0)
31
+ pry-byebug (3.8.0)
30
32
  byebug (~> 11.0)
31
- pry (~> 0.13.0)
33
+ pry (~> 0.10)
32
34
  pry-inline (1.0.7)
33
35
  pry (> 0.10.0)
34
36
  unicode (~> 0.4.4)
35
- rake (13.0.3)
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.1)
41
- rspec-support (~> 3.10.0)
42
- rspec-expectations (3.10.1)
37
+ rake (13.0.6)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
43
45
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-mocks (3.10.2)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
46
48
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.10.0)
48
- rspec-support (3.10.2)
49
- thor (1.1.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ ruby-next-core (0.15.0)
52
+ thor (1.2.1)
50
53
  unicode (0.4.4.4)
51
- yabeda (0.8.0)
54
+ yabeda (0.11.0)
55
+ anyway_config (>= 1.0, < 3)
52
56
  concurrent-ruby
53
57
  dry-initializer
54
58
 
@@ -68,4 +72,4 @@ DEPENDENCIES
68
72
  yabeda-graphql!
69
73
 
70
74
  BUNDLED WITH
71
- 2.1.4
75
+ 2.3.10
@@ -1,25 +1,27 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- yabeda-graphql (0.2.0)
5
- graphql (~> 1.9)
4
+ yabeda-graphql (0.2.1)
5
+ graphql (>= 1.9, < 3)
6
6
  yabeda (~> 0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.3.0)
11
+ anyway_config (2.3.0)
12
+ ruby-next-core (>= 0.14.0)
13
+ appraisal (2.4.1)
12
14
  bundler
13
15
  rake
14
16
  thor (>= 0.14.0)
15
17
  byebug (11.1.3)
16
18
  coderay (1.1.3)
17
- concurrent-ruby (1.1.8)
18
- diff-lcs (1.4.4)
19
+ concurrent-ruby (1.1.10)
20
+ diff-lcs (1.5.0)
19
21
  dry-initializer (3.0.4)
20
- graphql (1.11.7)
21
- graphql-batch (0.4.3)
22
- graphql (>= 1.3, < 2)
22
+ graphql (1.11.10)
23
+ graphql-batch (0.5.1)
24
+ graphql (>= 1.10, < 3)
23
25
  promise.rb (~> 0.7.2)
24
26
  method_source (1.0.0)
25
27
  promise.rb (0.7.4)
@@ -32,23 +34,25 @@ GEM
32
34
  pry-inline (1.0.7)
33
35
  pry (> 0.10.0)
34
36
  unicode (~> 0.4.4)
35
- rake (13.0.3)
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.1)
41
- rspec-support (~> 3.10.0)
42
- rspec-expectations (3.10.1)
37
+ rake (13.0.6)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
43
45
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-mocks (3.10.2)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
46
48
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.10.0)
48
- rspec-support (3.10.2)
49
- thor (1.1.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ ruby-next-core (0.15.0)
52
+ thor (1.2.1)
50
53
  unicode (0.4.4.4)
51
- yabeda (0.8.0)
54
+ yabeda (0.11.0)
55
+ anyway_config (>= 1.0, < 3)
52
56
  concurrent-ruby
53
57
  dry-initializer
54
58
 
@@ -68,4 +72,4 @@ DEPENDENCIES
68
72
  yabeda-graphql!
69
73
 
70
74
  BUNDLED WITH
71
- 2.1.4
75
+ 2.3.10
@@ -1,25 +1,27 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- yabeda-graphql (0.2.0)
5
- graphql (~> 1.9)
4
+ yabeda-graphql (0.2.1)
5
+ graphql (>= 1.9, < 3)
6
6
  yabeda (~> 0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.3.0)
11
+ anyway_config (2.3.0)
12
+ ruby-next-core (>= 0.14.0)
13
+ appraisal (2.4.1)
12
14
  bundler
13
15
  rake
14
16
  thor (>= 0.14.0)
15
17
  byebug (11.1.3)
16
18
  coderay (1.1.3)
17
- concurrent-ruby (1.1.8)
18
- diff-lcs (1.4.4)
19
- dry-initializer (3.0.4)
20
- graphql (1.12.4)
21
- graphql-batch (0.4.3)
22
- graphql (>= 1.3, < 2)
19
+ concurrent-ruby (1.1.10)
20
+ diff-lcs (1.5.0)
21
+ dry-initializer (3.1.1)
22
+ graphql (1.12.24)
23
+ graphql-batch (0.5.1)
24
+ graphql (>= 1.10, < 3)
23
25
  promise.rb (~> 0.7.2)
24
26
  method_source (1.0.0)
25
27
  promise.rb (0.7.4)
@@ -32,23 +34,25 @@ GEM
32
34
  pry-inline (1.0.7)
33
35
  pry (> 0.10.0)
34
36
  unicode (~> 0.4.4)
35
- rake (13.0.3)
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.1)
41
- rspec-support (~> 3.10.0)
42
- rspec-expectations (3.10.1)
37
+ rake (13.0.6)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
43
45
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-mocks (3.10.2)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
46
48
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.10.0)
48
- rspec-support (3.10.2)
49
- thor (1.1.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ ruby-next-core (0.15.0)
52
+ thor (1.2.1)
50
53
  unicode (0.4.4.4)
51
- yabeda (0.8.0)
54
+ yabeda (0.11.0)
55
+ anyway_config (>= 1.0, < 3)
52
56
  concurrent-ruby
53
57
  dry-initializer
54
58
 
@@ -68,4 +72,4 @@ DEPENDENCIES
68
72
  yabeda-graphql!
69
73
 
70
74
  BUNDLED WITH
71
- 2.1.4
75
+ 2.3.10
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "graphql", "~> 1.13.0"
6
+
7
+ group :development, :test do
8
+ gem "pry"
9
+ gem "pry-inline"
10
+ gem "pry-byebug", platform: :mri
11
+ gem "graphql-batch"
12
+ end
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,75 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ yabeda-graphql (0.2.1)
5
+ graphql (>= 1.9, < 3)
6
+ yabeda (~> 0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ anyway_config (2.3.0)
12
+ ruby-next-core (>= 0.14.0)
13
+ appraisal (2.4.1)
14
+ bundler
15
+ rake
16
+ thor (>= 0.14.0)
17
+ byebug (11.1.3)
18
+ coderay (1.1.3)
19
+ concurrent-ruby (1.1.10)
20
+ diff-lcs (1.5.0)
21
+ dry-initializer (3.1.1)
22
+ graphql (1.13.11)
23
+ graphql-batch (0.5.1)
24
+ graphql (>= 1.10, < 3)
25
+ promise.rb (~> 0.7.2)
26
+ method_source (1.0.0)
27
+ promise.rb (0.7.4)
28
+ pry (0.13.1)
29
+ coderay (~> 1.1)
30
+ method_source (~> 1.0)
31
+ pry-byebug (3.9.0)
32
+ byebug (~> 11.0)
33
+ pry (~> 0.13.0)
34
+ pry-inline (1.0.7)
35
+ pry (> 0.10.0)
36
+ unicode (~> 0.4.4)
37
+ rake (13.0.6)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ ruby-next-core (0.15.0)
52
+ thor (1.2.1)
53
+ unicode (0.4.4.4)
54
+ yabeda (0.11.0)
55
+ anyway_config (>= 1.0, < 3)
56
+ concurrent-ruby
57
+ dry-initializer
58
+
59
+ PLATFORMS
60
+ x86_64-linux
61
+
62
+ DEPENDENCIES
63
+ appraisal
64
+ bundler
65
+ graphql (~> 1.13.0)
66
+ graphql-batch
67
+ pry
68
+ pry-byebug
69
+ pry-inline
70
+ rake (~> 13.0)
71
+ rspec (~> 3.0)
72
+ yabeda-graphql!
73
+
74
+ BUNDLED WITH
75
+ 2.3.10
@@ -1,21 +1,23 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- yabeda-graphql (0.2.0)
5
- graphql (~> 1.9)
4
+ yabeda-graphql (0.2.1)
5
+ graphql (>= 1.9, < 3)
6
6
  yabeda (~> 0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.3.0)
11
+ anyway_config (2.3.0)
12
+ ruby-next-core (>= 0.14.0)
13
+ appraisal (2.4.1)
12
14
  bundler
13
15
  rake
14
16
  thor (>= 0.14.0)
15
17
  byebug (11.1.3)
16
18
  coderay (1.1.3)
17
- concurrent-ruby (1.1.8)
18
- diff-lcs (1.4.4)
19
+ concurrent-ruby (1.1.10)
20
+ diff-lcs (1.5.0)
19
21
  dry-initializer (3.0.4)
20
22
  graphql (1.9.21)
21
23
  graphql-batch (0.4.3)
@@ -23,32 +25,34 @@ GEM
23
25
  promise.rb (~> 0.7.2)
24
26
  method_source (1.0.0)
25
27
  promise.rb (0.7.4)
26
- pry (0.13.1)
28
+ pry (0.14.1)
27
29
  coderay (~> 1.1)
28
30
  method_source (~> 1.0)
29
- pry-byebug (3.9.0)
31
+ pry-byebug (3.8.0)
30
32
  byebug (~> 11.0)
31
- pry (~> 0.13.0)
33
+ pry (~> 0.10)
32
34
  pry-inline (1.0.7)
33
35
  pry (> 0.10.0)
34
36
  unicode (~> 0.4.4)
35
- rake (13.0.3)
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.1)
41
- rspec-support (~> 3.10.0)
42
- rspec-expectations (3.10.1)
37
+ rake (13.0.6)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
43
45
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-mocks (3.10.2)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
46
48
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.10.0)
48
- rspec-support (3.10.2)
49
- thor (1.1.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ ruby-next-core (0.15.0)
52
+ thor (1.2.1)
50
53
  unicode (0.4.4.4)
51
- yabeda (0.8.0)
54
+ yabeda (0.11.0)
55
+ anyway_config (>= 1.0, < 3)
52
56
  concurrent-ruby
53
57
  dry-initializer
54
58
 
@@ -68,4 +72,4 @@ DEPENDENCIES
68
72
  yabeda-graphql!
69
73
 
70
74
  BUNDLED WITH
71
- 2.1.4
75
+ 2.3.10
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "graphql", "~> 2.0.0"
6
+
7
+ group :development, :test do
8
+ gem "pry"
9
+ gem "pry-inline"
10
+ gem "pry-byebug", platform: :mri
11
+ gem "graphql-batch"
12
+ end
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,75 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ yabeda-graphql (0.2.1)
5
+ graphql (>= 1.9, < 3)
6
+ yabeda (~> 0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ anyway_config (2.3.0)
12
+ ruby-next-core (>= 0.14.0)
13
+ appraisal (2.4.1)
14
+ bundler
15
+ rake
16
+ thor (>= 0.14.0)
17
+ byebug (11.1.3)
18
+ coderay (1.1.3)
19
+ concurrent-ruby (1.1.10)
20
+ diff-lcs (1.5.0)
21
+ dry-initializer (3.1.1)
22
+ graphql (2.0.5)
23
+ graphql-batch (0.5.1)
24
+ graphql (>= 1.10, < 3)
25
+ promise.rb (~> 0.7.2)
26
+ method_source (1.0.0)
27
+ promise.rb (0.7.4)
28
+ pry (0.13.1)
29
+ coderay (~> 1.1)
30
+ method_source (~> 1.0)
31
+ pry-byebug (3.9.0)
32
+ byebug (~> 11.0)
33
+ pry (~> 0.13.0)
34
+ pry-inline (1.0.7)
35
+ pry (> 0.10.0)
36
+ unicode (~> 0.4.4)
37
+ rake (13.0.6)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ ruby-next-core (0.15.0)
52
+ thor (1.2.1)
53
+ unicode (0.4.4.4)
54
+ yabeda (0.11.0)
55
+ anyway_config (>= 1.0, < 3)
56
+ concurrent-ruby
57
+ dry-initializer
58
+
59
+ PLATFORMS
60
+ x86_64-linux
61
+
62
+ DEPENDENCIES
63
+ appraisal
64
+ bundler
65
+ graphql (~> 2.0.0)
66
+ graphql-batch
67
+ pry
68
+ pry-byebug
69
+ pry-inline
70
+ rake (~> 13.0)
71
+ rspec (~> 3.0)
72
+ yabeda-graphql!
73
+
74
+ BUNDLED WITH
75
+ 2.3.10
@@ -0,0 +1,483 @@
1
+ {
2
+ "__inputs": [
3
+ {
4
+ "name": "DS_PROMETHEUS",
5
+ "label": "Prometheus",
6
+ "description": "",
7
+ "type": "datasource",
8
+ "pluginId": "prometheus",
9
+ "pluginName": "Prometheus"
10
+ }
11
+ ],
12
+ "__requires": [
13
+ {
14
+ "type": "grafana",
15
+ "id": "grafana",
16
+ "name": "Grafana",
17
+ "version": "6.6.0"
18
+ },
19
+ {
20
+ "type": "panel",
21
+ "id": "graph",
22
+ "name": "Graph",
23
+ "version": ""
24
+ },
25
+ {
26
+ "type": "datasource",
27
+ "id": "prometheus",
28
+ "name": "Prometheus",
29
+ "version": "1.0.0"
30
+ }
31
+ ],
32
+ "annotations": {
33
+ "list": [
34
+ {
35
+ "builtIn": 1,
36
+ "datasource": "-- Grafana --",
37
+ "enable": true,
38
+ "hide": true,
39
+ "iconColor": "rgba(0, 211, 255, 1)",
40
+ "name": "Annotations & Alerts",
41
+ "type": "dashboard"
42
+ }
43
+ ]
44
+ },
45
+ "description": "Example dashboard for metrics provided by yabeda-graphql gem for monitoring of APIs powered by GraphQL-Ruby.",
46
+ "editable": true,
47
+ "gnetId": null,
48
+ "graphTooltip": 0,
49
+ "id": null,
50
+ "links": [
51
+ {
52
+ "asDropdown": false,
53
+ "icon": "doc",
54
+ "includeVars": false,
55
+ "keepTime": false,
56
+ "tags": [],
57
+ "targetBlank": true,
58
+ "title": "yabeda-graphql",
59
+ "tooltip": "Open yabeda-graphql page on GitHub",
60
+ "type": "link",
61
+ "url": "https://github.com/yabeda-rb/yabeda-graphql/"
62
+ }
63
+ ],
64
+ "panels": [
65
+ {
66
+ "aliasColors": {},
67
+ "bars": false,
68
+ "dashLength": 10,
69
+ "dashes": false,
70
+ "datasource": null,
71
+ "fieldConfig": {
72
+ "defaults": {},
73
+ "overrides": []
74
+ },
75
+ "fill": 1,
76
+ "fillGradient": 0,
77
+ "gridPos": {
78
+ "h": 9,
79
+ "w": 24,
80
+ "x": 0,
81
+ "y": 0
82
+ },
83
+ "hiddenSeries": false,
84
+ "id": 2,
85
+ "legend": {
86
+ "alignAsTable": true,
87
+ "avg": false,
88
+ "current": true,
89
+ "hideEmpty": true,
90
+ "hideZero": true,
91
+ "max": true,
92
+ "min": false,
93
+ "rightSide": true,
94
+ "show": true,
95
+ "sort": "max",
96
+ "sortDesc": true,
97
+ "total": false,
98
+ "values": true
99
+ },
100
+ "lines": true,
101
+ "linewidth": 1,
102
+ "nullPointMode": "null",
103
+ "options": {
104
+ "alertThreshold": true
105
+ },
106
+ "percentage": false,
107
+ "pluginVersion": "7.5.3",
108
+ "pointradius": 2,
109
+ "points": false,
110
+ "renderer": "flot",
111
+ "seriesOverrides": [],
112
+ "spaceLength": 10,
113
+ "stack": false,
114
+ "steppedLine": false,
115
+ "targets": [
116
+ {
117
+ "exemplar": true,
118
+ "expr": "histogram_quantile(0.95, sum(rate(graphql_field_resolve_runtime_seconds_bucket[1m])) by (type,field,le))",
119
+ "interval": "",
120
+ "legendFormat": "{{type}}.{{field}}",
121
+ "queryType": "randomWalk",
122
+ "refId": "A"
123
+ }
124
+ ],
125
+ "thresholds": [],
126
+ "timeFrom": null,
127
+ "timeRegions": [],
128
+ "timeShift": null,
129
+ "title": "Field resolve time (95th percentile)",
130
+ "tooltip": {
131
+ "shared": true,
132
+ "sort": 2,
133
+ "value_type": "individual"
134
+ },
135
+ "type": "graph",
136
+ "xaxis": {
137
+ "buckets": null,
138
+ "mode": "time",
139
+ "name": null,
140
+ "show": true,
141
+ "values": []
142
+ },
143
+ "yaxes": [
144
+ {
145
+ "format": "s",
146
+ "label": null,
147
+ "logBase": 1,
148
+ "max": null,
149
+ "min": null,
150
+ "show": true
151
+ },
152
+ {
153
+ "format": "short",
154
+ "label": null,
155
+ "logBase": 1,
156
+ "max": null,
157
+ "min": null,
158
+ "show": false
159
+ }
160
+ ],
161
+ "yaxis": {
162
+ "align": false,
163
+ "alignLevel": null
164
+ }
165
+ },
166
+ {
167
+ "aliasColors": {},
168
+ "bars": false,
169
+ "dashLength": 10,
170
+ "dashes": false,
171
+ "datasource": null,
172
+ "fieldConfig": {
173
+ "defaults": {},
174
+ "overrides": []
175
+ },
176
+ "fill": 1,
177
+ "fillGradient": 0,
178
+ "gridPos": {
179
+ "h": 8,
180
+ "w": 9,
181
+ "x": 0,
182
+ "y": 9
183
+ },
184
+ "hiddenSeries": false,
185
+ "id": 6,
186
+ "legend": {
187
+ "alignAsTable": true,
188
+ "avg": false,
189
+ "current": true,
190
+ "hideEmpty": true,
191
+ "max": true,
192
+ "min": false,
193
+ "rightSide": true,
194
+ "show": true,
195
+ "sort": "current",
196
+ "sortDesc": true,
197
+ "total": false,
198
+ "values": true
199
+ },
200
+ "lines": true,
201
+ "linewidth": 1,
202
+ "nullPointMode": "null",
203
+ "options": {
204
+ "alertThreshold": true
205
+ },
206
+ "percentage": false,
207
+ "pluginVersion": "7.5.3",
208
+ "pointradius": 2,
209
+ "points": false,
210
+ "renderer": "flot",
211
+ "seriesOverrides": [],
212
+ "spaceLength": 10,
213
+ "stack": false,
214
+ "steppedLine": false,
215
+ "targets": [
216
+ {
217
+ "exemplar": true,
218
+ "expr": "sum(rate(graphql_query_fields_count[1m])) by (name)",
219
+ "interval": "",
220
+ "legendFormat": "{{name}}",
221
+ "refId": "A"
222
+ }
223
+ ],
224
+ "thresholds": [],
225
+ "timeFrom": null,
226
+ "timeRegions": [],
227
+ "timeShift": null,
228
+ "title": "Queries throughput",
229
+ "tooltip": {
230
+ "shared": true,
231
+ "sort": 2,
232
+ "value_type": "individual"
233
+ },
234
+ "type": "graph",
235
+ "xaxis": {
236
+ "buckets": null,
237
+ "mode": "time",
238
+ "name": null,
239
+ "show": true,
240
+ "values": []
241
+ },
242
+ "yaxes": [
243
+ {
244
+ "decimals": 0,
245
+ "format": "reqps",
246
+ "label": null,
247
+ "logBase": 1,
248
+ "max": null,
249
+ "min": "0",
250
+ "show": true
251
+ },
252
+ {
253
+ "format": "short",
254
+ "label": null,
255
+ "logBase": 1,
256
+ "max": null,
257
+ "min": null,
258
+ "show": false
259
+ }
260
+ ],
261
+ "yaxis": {
262
+ "align": false,
263
+ "alignLevel": null
264
+ }
265
+ },
266
+ {
267
+ "aliasColors": {},
268
+ "bars": false,
269
+ "dashLength": 10,
270
+ "dashes": false,
271
+ "datasource": null,
272
+ "fieldConfig": {
273
+ "defaults": {},
274
+ "overrides": []
275
+ },
276
+ "fill": 1,
277
+ "fillGradient": 0,
278
+ "gridPos": {
279
+ "h": 8,
280
+ "w": 9,
281
+ "x": 9,
282
+ "y": 9
283
+ },
284
+ "hiddenSeries": false,
285
+ "id": 8,
286
+ "legend": {
287
+ "alignAsTable": true,
288
+ "avg": false,
289
+ "current": true,
290
+ "hideEmpty": true,
291
+ "max": true,
292
+ "min": false,
293
+ "rightSide": true,
294
+ "show": true,
295
+ "sort": "current",
296
+ "sortDesc": true,
297
+ "total": false,
298
+ "values": true
299
+ },
300
+ "lines": true,
301
+ "linewidth": 1,
302
+ "nullPointMode": "null",
303
+ "options": {
304
+ "alertThreshold": true
305
+ },
306
+ "percentage": false,
307
+ "pluginVersion": "7.5.3",
308
+ "pointradius": 2,
309
+ "points": false,
310
+ "renderer": "flot",
311
+ "seriesOverrides": [],
312
+ "spaceLength": 10,
313
+ "stack": false,
314
+ "steppedLine": false,
315
+ "targets": [
316
+ {
317
+ "exemplar": true,
318
+ "expr": "sum(rate(graphql_mutation_fields_count[1m])) by (name)",
319
+ "interval": "",
320
+ "legendFormat": "{{name}}",
321
+ "refId": "A"
322
+ }
323
+ ],
324
+ "thresholds": [],
325
+ "timeFrom": null,
326
+ "timeRegions": [],
327
+ "timeShift": null,
328
+ "title": "Mutations throughput",
329
+ "tooltip": {
330
+ "shared": true,
331
+ "sort": 2,
332
+ "value_type": "individual"
333
+ },
334
+ "type": "graph",
335
+ "xaxis": {
336
+ "buckets": null,
337
+ "mode": "time",
338
+ "name": null,
339
+ "show": true,
340
+ "values": []
341
+ },
342
+ "yaxes": [
343
+ {
344
+ "decimals": 0,
345
+ "format": "reqps",
346
+ "label": null,
347
+ "logBase": 1,
348
+ "max": null,
349
+ "min": "0",
350
+ "show": true
351
+ },
352
+ {
353
+ "format": "short",
354
+ "label": null,
355
+ "logBase": 1,
356
+ "max": null,
357
+ "min": null,
358
+ "show": false
359
+ }
360
+ ],
361
+ "yaxis": {
362
+ "align": false,
363
+ "alignLevel": null
364
+ }
365
+ },
366
+ {
367
+ "aliasColors": {},
368
+ "bars": false,
369
+ "dashLength": 10,
370
+ "dashes": false,
371
+ "datasource": null,
372
+ "decimals": 0,
373
+ "fieldConfig": {
374
+ "defaults": {},
375
+ "overrides": []
376
+ },
377
+ "fill": 1,
378
+ "fillGradient": 0,
379
+ "gridPos": {
380
+ "h": 8,
381
+ "w": 6,
382
+ "x": 18,
383
+ "y": 9
384
+ },
385
+ "hiddenSeries": false,
386
+ "id": 4,
387
+ "legend": {
388
+ "alignAsTable": true,
389
+ "avg": false,
390
+ "current": false,
391
+ "hideEmpty": true,
392
+ "hideZero": false,
393
+ "max": false,
394
+ "min": false,
395
+ "rightSide": true,
396
+ "show": true,
397
+ "total": false,
398
+ "values": false
399
+ },
400
+ "lines": true,
401
+ "linewidth": 1,
402
+ "nullPointMode": "null",
403
+ "options": {
404
+ "alertThreshold": true
405
+ },
406
+ "percentage": false,
407
+ "pluginVersion": "7.5.3",
408
+ "pointradius": 2,
409
+ "points": false,
410
+ "renderer": "flot",
411
+ "seriesOverrides": [],
412
+ "spaceLength": 10,
413
+ "stack": false,
414
+ "steppedLine": false,
415
+ "targets": [
416
+ {
417
+ "exemplar": true,
418
+ "expr": "sum(rate(graphql_fields_request_count{deprecated=\"true\"}[1m])) by (type, field)",
419
+ "interval": "",
420
+ "legendFormat": "{{type}}.{{field}}",
421
+ "refId": "A"
422
+ }
423
+ ],
424
+ "thresholds": [],
425
+ "timeFrom": null,
426
+ "timeRegions": [],
427
+ "timeShift": null,
428
+ "title": "Deprecated fields usage",
429
+ "tooltip": {
430
+ "shared": true,
431
+ "sort": 0,
432
+ "value_type": "individual"
433
+ },
434
+ "type": "graph",
435
+ "xaxis": {
436
+ "buckets": null,
437
+ "mode": "time",
438
+ "name": null,
439
+ "show": true,
440
+ "values": []
441
+ },
442
+ "yaxes": [
443
+ {
444
+ "decimals": 0,
445
+ "format": "reqps",
446
+ "label": null,
447
+ "logBase": 1,
448
+ "max": null,
449
+ "min": "0",
450
+ "show": true
451
+ },
452
+ {
453
+ "format": "short",
454
+ "label": null,
455
+ "logBase": 1,
456
+ "max": null,
457
+ "min": null,
458
+ "show": false
459
+ }
460
+ ],
461
+ "yaxis": {
462
+ "align": false,
463
+ "alignLevel": null
464
+ }
465
+ }
466
+ ],
467
+ "refresh": "10s",
468
+ "schemaVersion": 27,
469
+ "style": "dark",
470
+ "tags": [],
471
+ "templating": {
472
+ "list": []
473
+ },
474
+ "time": {
475
+ "from": "now-6h",
476
+ "to": "now"
477
+ },
478
+ "timepicker": {},
479
+ "timezone": "",
480
+ "title": "GraphQL API",
481
+ "uid": "yabeda-graphql",
482
+ "version": 1
483
+ }
@@ -1,5 +1,5 @@
1
1
  module Yabeda
2
2
  module GraphQL
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
Binary file
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_runtime_dependency "yabeda", "~> 0.2"
27
- spec.add_runtime_dependency "graphql", "~> 1.9"
27
+ spec.add_runtime_dependency "graphql", ">= 1.9", "< 3"
28
28
 
29
29
  spec.add_development_dependency "bundler"
30
30
  spec.add_development_dependency "rake", "~> 13.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabeda-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-09 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yabeda
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: graphql
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.9'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '1.9'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: bundler
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -122,12 +128,18 @@ files:
122
128
  - gemfiles/graphql_1.11.gemfile.lock
123
129
  - gemfiles/graphql_1.12.gemfile
124
130
  - gemfiles/graphql_1.12.gemfile.lock
131
+ - gemfiles/graphql_1.13.gemfile
132
+ - gemfiles/graphql_1.13.gemfile.lock
125
133
  - gemfiles/graphql_1.9.gemfile
126
134
  - gemfiles/graphql_1.9.gemfile.lock
135
+ - gemfiles/graphql_2.0.gemfile
136
+ - gemfiles/graphql_2.0.gemfile.lock
137
+ - grafana-dashboard.json
127
138
  - lib/yabeda/graphql.rb
128
139
  - lib/yabeda/graphql/instrumentation.rb
129
140
  - lib/yabeda/graphql/tracing.rb
130
141
  - lib/yabeda/graphql/version.rb
142
+ - yabeda-graphql-logo.png
131
143
  - yabeda-graphql.gemspec
132
144
  homepage: http://github.com/yabeda-rb/yabeda-graphql
133
145
  licenses:
@@ -149,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
161
  - !ruby/object:Gem::Version
150
162
  version: '0'
151
163
  requirements: []
152
- rubygems_version: 3.1.4
164
+ rubygems_version: 3.1.6
153
165
  signing_key:
154
166
  specification_version: 4
155
167
  summary: Collects metrics to monitor execution of your GraphQL queries