yabeda-graphql 0.2.2 → 0.3.0
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/{build-release.yml → release.yml} +8 -4
- data/.github/workflows/test.yml +13 -30
- data/Appraisals +8 -16
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +40 -34
- data/gemfiles/{graphql_1.9.gemfile → graphql_2.2.gemfile} +1 -1
- data/gemfiles/graphql_2.2.gemfile.lock +78 -0
- data/gemfiles/{graphql_2.0.gemfile → graphql_2.3.gemfile} +1 -1
- data/gemfiles/graphql_2.3.gemfile.lock +80 -0
- data/gemfiles/{graphql_1.13.gemfile → graphql_2.4.gemfile} +1 -1
- data/gemfiles/graphql_2.4.gemfile.lock +82 -0
- data/gemfiles/{graphql_1.11.gemfile → graphql_2.5.gemfile} +1 -1
- data/gemfiles/graphql_2.5.gemfile.lock +82 -0
- data/lib/yabeda/graphql/instrumentation.rb +11 -9
- data/lib/yabeda/graphql/version.rb +1 -1
- data/lib/yabeda/graphql/yabeda_tracing.rb +63 -0
- data/lib/yabeda/graphql.rb +3 -3
- data/yabeda-graphql.gemspec +1 -1
- metadata +17 -30
- data/gemfiles/graphql_1.10.gemfile +0 -14
- data/gemfiles/graphql_1.10.gemfile.lock +0 -75
- data/gemfiles/graphql_1.11.gemfile.lock +0 -75
- data/gemfiles/graphql_1.12.gemfile +0 -14
- data/gemfiles/graphql_1.12.gemfile.lock +0 -75
- data/gemfiles/graphql_1.13.gemfile.lock +0 -75
- data/gemfiles/graphql_1.9.gemfile.lock +0 -75
- data/gemfiles/graphql_2.0.gemfile.lock +0 -75
- data/lib/yabeda/graphql/tracing.rb +0 -100
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3abfbdf067a6e5b53a72377bf4efe6cc99db8d9d4669aaf0ad8f6ade9c49a5d9
|
|
4
|
+
data.tar.gz: 7e3da9fed086cf72f7359f26e6a06458f655aa40035580f13e96fcff61547838
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cccd95e22eca816e93cd283057f9282caed96e8a69ded9fad94f1542b1ceb4e0f160ee90ac9bc60aec7626070067a51554775ba9981741a6099a8ebbefb1488
|
|
7
|
+
data.tar.gz: d9d381a0431b7928e7a6f52859a6d858613803f1a974098a66074fb55dd81d25ba3cafcd3cd2a757728ac831e5eec4be55e83021e4d4ad3f4755b594a131cf0f
|
|
@@ -8,13 +8,17 @@ on:
|
|
|
8
8
|
jobs:
|
|
9
9
|
release:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
id-token: write
|
|
14
|
+
packages: write
|
|
11
15
|
steps:
|
|
12
|
-
- uses: actions/checkout@
|
|
16
|
+
- uses: actions/checkout@v4
|
|
13
17
|
with:
|
|
14
18
|
fetch-depth: 0 # Fetch current tag as annotated. See https://github.com/actions/checkout/issues/290
|
|
15
19
|
- uses: ruby/setup-ruby@v1
|
|
16
20
|
with:
|
|
17
|
-
ruby-version:
|
|
21
|
+
ruby-version: "3.4"
|
|
18
22
|
- name: "Extract data from tag: version, message, body"
|
|
19
23
|
id: tag
|
|
20
24
|
run: |
|
|
@@ -75,8 +79,8 @@ jobs:
|
|
|
75
79
|
GEM_HOST_API_KEY: Bearer ${{ secrets.GITHUB_TOKEN }}
|
|
76
80
|
run: |
|
|
77
81
|
gem push yabeda-graphql-${{ steps.tag.outputs.version }}.gem --host https://rubygems.pkg.github.com/${{ github.repository_owner }}
|
|
82
|
+
- name: Configure RubyGems Credentials
|
|
83
|
+
uses: rubygems/configure-rubygems-credentials@main
|
|
78
84
|
- name: Publish to RubyGems
|
|
79
|
-
env:
|
|
80
|
-
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_API_KEY }}"
|
|
81
85
|
run: |
|
|
82
86
|
gem push yabeda-graphql-${{ steps.tag.outputs.version }}.gem
|
data/.github/workflows/test.yml
CHANGED
|
@@ -16,38 +16,21 @@ jobs:
|
|
|
16
16
|
fail-fast: false
|
|
17
17
|
matrix:
|
|
18
18
|
include:
|
|
19
|
+
- ruby: "3.4"
|
|
20
|
+
graphql-ruby: "2.5"
|
|
21
|
+
- ruby: "3.3"
|
|
22
|
+
graphql-ruby: "2.4"
|
|
23
|
+
- ruby: "3.2"
|
|
24
|
+
graphql-ruby: "2.3"
|
|
19
25
|
- ruby: "3.1"
|
|
20
|
-
graphql-ruby: "2.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- ruby: "2.7"
|
|
24
|
-
graphql-ruby: "1.12"
|
|
25
|
-
- ruby: "2.6"
|
|
26
|
-
graphql-ruby: "1.11"
|
|
27
|
-
- ruby: "2.5"
|
|
28
|
-
graphql-ruby: "1.10"
|
|
29
|
-
- ruby: "2.5"
|
|
30
|
-
graphql-ruby: "1.9"
|
|
31
|
-
container:
|
|
32
|
-
image: ruby:${{ matrix.ruby }}
|
|
33
|
-
env:
|
|
34
|
-
CI: true
|
|
35
|
-
BUNDLE_GEMFILE: gemfiles/graphql_${{ matrix.graphql-ruby }}.gemfile
|
|
26
|
+
graphql-ruby: "2.2"
|
|
27
|
+
env:
|
|
28
|
+
BUNDLE_GEMFILE: gemfiles/graphql_${{ matrix.graphql-ruby }}.gemfile
|
|
36
29
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
38
|
-
- uses:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
- uses: ruby/setup-ruby@v1
|
|
39
32
|
with:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
restore-keys: |
|
|
43
|
-
bundle-${{ matrix.ruby }}-${{ matrix.graphql-ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
|
|
44
|
-
bundle-${{ matrix.ruby }}-
|
|
45
|
-
- name: Upgrade Bundler to 2.x (for older Rubies)
|
|
46
|
-
run: gem install bundler -v '~> 2.0'
|
|
47
|
-
- name: Bundle install
|
|
48
|
-
run: |
|
|
49
|
-
bundle config path vendor/bundle
|
|
50
|
-
bundle install
|
|
51
|
-
bundle update
|
|
33
|
+
ruby-version: ${{ matrix.ruby }}
|
|
34
|
+
bundler-cache: true
|
|
52
35
|
- name: Run RSpec
|
|
53
36
|
run: bundle exec rspec
|
data/Appraisals
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
appraise "graphql-
|
|
2
|
-
gem "graphql", "~>
|
|
1
|
+
appraise "graphql-2.2" do
|
|
2
|
+
gem "graphql", "~> 2.2.0"
|
|
3
3
|
end
|
|
4
4
|
|
|
5
|
-
appraise "graphql-
|
|
6
|
-
gem "graphql", "~>
|
|
5
|
+
appraise "graphql-2.3" do
|
|
6
|
+
gem "graphql", "~> 2.3.0"
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
appraise "graphql-
|
|
10
|
-
gem "graphql", "~>
|
|
9
|
+
appraise "graphql-2.4" do
|
|
10
|
+
gem "graphql", "~> 2.4.0"
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
appraise "graphql-
|
|
14
|
-
gem "graphql", "~>
|
|
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"
|
|
13
|
+
appraise "graphql-2.5" do
|
|
14
|
+
gem "graphql", "~> 2.5.0"
|
|
23
15
|
end
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ 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.3.0 - 2025-12-03
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Switch to [current GraphQL-Ruby Tracing API](https://graphql-ruby.org/queries/tracing) (`GraphQL::Schema.trace_with`) API. [#9](https://github.com/yabeda-rb/yabeda-graphql/pull/9) by [@loadkpi]
|
|
13
|
+
|
|
14
|
+
### Removed
|
|
15
|
+
|
|
16
|
+
- Support for GraphQL-Ruby versions older than 2.2. [@Envek]
|
|
17
|
+
|
|
18
|
+
## 0.2.3 - 2023-05-29
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Compatibility with GraphQL-Ruby 2.0 tracing API. [#5](https://github.com/yabeda-rb/yabeda-graphql/pull/5) by [@skateman]
|
|
23
|
+
|
|
8
24
|
## 0.2.2 - 2022-04-04
|
|
9
25
|
|
|
10
26
|
### Fixed
|
|
@@ -29,3 +45,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
29
45
|
- Initial release of yabeda-graphql gem. [@Envek]
|
|
30
46
|
|
|
31
47
|
[@Envek]: https://github.com/Envek "Andrey Novikov"
|
|
48
|
+
[@skateman]: https://github.com/skateman "Halász Dávid"
|
|
49
|
+
[@loadkpi]: https://github.com/loadkpi "Pavel Kozlov"
|
data/Gemfile.lock
CHANGED
|
@@ -1,57 +1,63 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
yabeda-graphql (0.2.
|
|
5
|
-
graphql (
|
|
4
|
+
yabeda-graphql (0.2.3)
|
|
5
|
+
graphql (~> 2.2)
|
|
6
6
|
yabeda (~> 0.2)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
anyway_config (2.
|
|
12
|
-
ruby-next-core (
|
|
13
|
-
appraisal (2.
|
|
11
|
+
anyway_config (2.7.2)
|
|
12
|
+
ruby-next-core (~> 1.0)
|
|
13
|
+
appraisal (2.5.0)
|
|
14
14
|
bundler
|
|
15
15
|
rake
|
|
16
16
|
thor (>= 0.14.0)
|
|
17
|
-
|
|
17
|
+
base64 (0.3.0)
|
|
18
|
+
byebug (12.0.0)
|
|
18
19
|
coderay (1.1.3)
|
|
19
|
-
concurrent-ruby (1.
|
|
20
|
-
diff-lcs (1.
|
|
21
|
-
dry-initializer (3.
|
|
22
|
-
|
|
23
|
-
graphql
|
|
24
|
-
|
|
20
|
+
concurrent-ruby (1.3.5)
|
|
21
|
+
diff-lcs (1.6.2)
|
|
22
|
+
dry-initializer (3.2.0)
|
|
23
|
+
fiber-storage (1.0.1)
|
|
24
|
+
graphql (2.5.14)
|
|
25
|
+
base64
|
|
26
|
+
fiber-storage
|
|
27
|
+
logger
|
|
28
|
+
graphql-batch (0.6.1)
|
|
29
|
+
graphql (>= 1.13, < 3)
|
|
25
30
|
promise.rb (~> 0.7.2)
|
|
26
|
-
|
|
31
|
+
logger (1.7.0)
|
|
32
|
+
method_source (1.1.0)
|
|
27
33
|
promise.rb (0.7.4)
|
|
28
|
-
pry (0.
|
|
34
|
+
pry (0.15.2)
|
|
29
35
|
coderay (~> 1.1)
|
|
30
36
|
method_source (~> 1.0)
|
|
31
|
-
pry-byebug (3.
|
|
32
|
-
byebug (~>
|
|
33
|
-
pry (
|
|
37
|
+
pry-byebug (3.11.0)
|
|
38
|
+
byebug (~> 12.0)
|
|
39
|
+
pry (>= 0.13, < 0.16)
|
|
34
40
|
pry-inline (1.0.7)
|
|
35
41
|
pry (> 0.10.0)
|
|
36
42
|
unicode (~> 0.4.4)
|
|
37
|
-
rake (13.
|
|
38
|
-
rspec (3.
|
|
39
|
-
rspec-core (~> 3.
|
|
40
|
-
rspec-expectations (~> 3.
|
|
41
|
-
rspec-mocks (~> 3.
|
|
42
|
-
rspec-core (3.
|
|
43
|
-
rspec-support (~> 3.
|
|
44
|
-
rspec-expectations (3.
|
|
43
|
+
rake (13.3.1)
|
|
44
|
+
rspec (3.13.2)
|
|
45
|
+
rspec-core (~> 3.13.0)
|
|
46
|
+
rspec-expectations (~> 3.13.0)
|
|
47
|
+
rspec-mocks (~> 3.13.0)
|
|
48
|
+
rspec-core (3.13.6)
|
|
49
|
+
rspec-support (~> 3.13.0)
|
|
50
|
+
rspec-expectations (3.13.5)
|
|
45
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
46
|
-
rspec-support (~> 3.
|
|
47
|
-
rspec-mocks (3.
|
|
52
|
+
rspec-support (~> 3.13.0)
|
|
53
|
+
rspec-mocks (3.13.7)
|
|
48
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
49
|
-
rspec-support (~> 3.
|
|
50
|
-
rspec-support (3.
|
|
51
|
-
ruby-next-core (
|
|
52
|
-
thor (1.
|
|
53
|
-
unicode (0.4.4.
|
|
54
|
-
yabeda (0.
|
|
55
|
+
rspec-support (~> 3.13.0)
|
|
56
|
+
rspec-support (3.13.6)
|
|
57
|
+
ruby-next-core (1.1.2)
|
|
58
|
+
thor (1.4.0)
|
|
59
|
+
unicode (0.4.4.5)
|
|
60
|
+
yabeda (0.14.0)
|
|
55
61
|
anyway_config (>= 1.0, < 3)
|
|
56
62
|
concurrent-ruby
|
|
57
63
|
dry-initializer
|
|
@@ -71,4 +77,4 @@ DEPENDENCIES
|
|
|
71
77
|
yabeda-graphql!
|
|
72
78
|
|
|
73
79
|
BUNDLED WITH
|
|
74
|
-
2.
|
|
80
|
+
2.7.2
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
yabeda-graphql (0.2.3)
|
|
5
|
+
graphql (~> 2.2)
|
|
6
|
+
yabeda (~> 0.2)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
anyway_config (2.7.2)
|
|
12
|
+
ruby-next-core (~> 1.0)
|
|
13
|
+
appraisal (2.5.0)
|
|
14
|
+
bundler
|
|
15
|
+
rake
|
|
16
|
+
thor (>= 0.14.0)
|
|
17
|
+
base64 (0.3.0)
|
|
18
|
+
byebug (12.0.0)
|
|
19
|
+
coderay (1.1.3)
|
|
20
|
+
concurrent-ruby (1.3.5)
|
|
21
|
+
diff-lcs (1.6.2)
|
|
22
|
+
dry-initializer (3.2.0)
|
|
23
|
+
graphql (2.2.17)
|
|
24
|
+
base64
|
|
25
|
+
graphql-batch (0.6.1)
|
|
26
|
+
graphql (>= 1.13, < 3)
|
|
27
|
+
promise.rb (~> 0.7.2)
|
|
28
|
+
method_source (1.1.0)
|
|
29
|
+
promise.rb (0.7.4)
|
|
30
|
+
pry (0.15.2)
|
|
31
|
+
coderay (~> 1.1)
|
|
32
|
+
method_source (~> 1.0)
|
|
33
|
+
pry-byebug (3.11.0)
|
|
34
|
+
byebug (~> 12.0)
|
|
35
|
+
pry (>= 0.13, < 0.16)
|
|
36
|
+
pry-inline (1.0.7)
|
|
37
|
+
pry (> 0.10.0)
|
|
38
|
+
unicode (~> 0.4.4)
|
|
39
|
+
rake (13.3.1)
|
|
40
|
+
rspec (3.13.2)
|
|
41
|
+
rspec-core (~> 3.13.0)
|
|
42
|
+
rspec-expectations (~> 3.13.0)
|
|
43
|
+
rspec-mocks (~> 3.13.0)
|
|
44
|
+
rspec-core (3.13.6)
|
|
45
|
+
rspec-support (~> 3.13.0)
|
|
46
|
+
rspec-expectations (3.13.5)
|
|
47
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
48
|
+
rspec-support (~> 3.13.0)
|
|
49
|
+
rspec-mocks (3.13.7)
|
|
50
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
51
|
+
rspec-support (~> 3.13.0)
|
|
52
|
+
rspec-support (3.13.6)
|
|
53
|
+
ruby-next-core (1.1.2)
|
|
54
|
+
thor (1.4.0)
|
|
55
|
+
unicode (0.4.4.5)
|
|
56
|
+
yabeda (0.14.0)
|
|
57
|
+
anyway_config (>= 1.0, < 3)
|
|
58
|
+
concurrent-ruby
|
|
59
|
+
dry-initializer
|
|
60
|
+
|
|
61
|
+
PLATFORMS
|
|
62
|
+
ruby
|
|
63
|
+
x86_64-linux
|
|
64
|
+
|
|
65
|
+
DEPENDENCIES
|
|
66
|
+
appraisal
|
|
67
|
+
bundler
|
|
68
|
+
graphql (~> 2.2.0)
|
|
69
|
+
graphql-batch
|
|
70
|
+
pry
|
|
71
|
+
pry-byebug
|
|
72
|
+
pry-inline
|
|
73
|
+
rake (~> 13.0)
|
|
74
|
+
rspec (~> 3.0)
|
|
75
|
+
yabeda-graphql!
|
|
76
|
+
|
|
77
|
+
BUNDLED WITH
|
|
78
|
+
2.6.9
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
yabeda-graphql (0.2.3)
|
|
5
|
+
graphql (~> 2.2)
|
|
6
|
+
yabeda (~> 0.2)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
anyway_config (2.7.2)
|
|
12
|
+
ruby-next-core (~> 1.0)
|
|
13
|
+
appraisal (2.5.0)
|
|
14
|
+
bundler
|
|
15
|
+
rake
|
|
16
|
+
thor (>= 0.14.0)
|
|
17
|
+
base64 (0.3.0)
|
|
18
|
+
byebug (12.0.0)
|
|
19
|
+
coderay (1.1.3)
|
|
20
|
+
concurrent-ruby (1.3.5)
|
|
21
|
+
diff-lcs (1.6.2)
|
|
22
|
+
dry-initializer (3.2.0)
|
|
23
|
+
fiber-storage (1.0.1)
|
|
24
|
+
graphql (2.3.22)
|
|
25
|
+
base64
|
|
26
|
+
fiber-storage
|
|
27
|
+
graphql-batch (0.6.1)
|
|
28
|
+
graphql (>= 1.13, < 3)
|
|
29
|
+
promise.rb (~> 0.7.2)
|
|
30
|
+
method_source (1.1.0)
|
|
31
|
+
promise.rb (0.7.4)
|
|
32
|
+
pry (0.15.2)
|
|
33
|
+
coderay (~> 1.1)
|
|
34
|
+
method_source (~> 1.0)
|
|
35
|
+
pry-byebug (3.11.0)
|
|
36
|
+
byebug (~> 12.0)
|
|
37
|
+
pry (>= 0.13, < 0.16)
|
|
38
|
+
pry-inline (1.0.7)
|
|
39
|
+
pry (> 0.10.0)
|
|
40
|
+
unicode (~> 0.4.4)
|
|
41
|
+
rake (13.3.1)
|
|
42
|
+
rspec (3.13.2)
|
|
43
|
+
rspec-core (~> 3.13.0)
|
|
44
|
+
rspec-expectations (~> 3.13.0)
|
|
45
|
+
rspec-mocks (~> 3.13.0)
|
|
46
|
+
rspec-core (3.13.6)
|
|
47
|
+
rspec-support (~> 3.13.0)
|
|
48
|
+
rspec-expectations (3.13.5)
|
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
50
|
+
rspec-support (~> 3.13.0)
|
|
51
|
+
rspec-mocks (3.13.7)
|
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
53
|
+
rspec-support (~> 3.13.0)
|
|
54
|
+
rspec-support (3.13.6)
|
|
55
|
+
ruby-next-core (1.1.2)
|
|
56
|
+
thor (1.4.0)
|
|
57
|
+
unicode (0.4.4.5)
|
|
58
|
+
yabeda (0.14.0)
|
|
59
|
+
anyway_config (>= 1.0, < 3)
|
|
60
|
+
concurrent-ruby
|
|
61
|
+
dry-initializer
|
|
62
|
+
|
|
63
|
+
PLATFORMS
|
|
64
|
+
ruby
|
|
65
|
+
x86_64-linux
|
|
66
|
+
|
|
67
|
+
DEPENDENCIES
|
|
68
|
+
appraisal
|
|
69
|
+
bundler
|
|
70
|
+
graphql (~> 2.3.0)
|
|
71
|
+
graphql-batch
|
|
72
|
+
pry
|
|
73
|
+
pry-byebug
|
|
74
|
+
pry-inline
|
|
75
|
+
rake (~> 13.0)
|
|
76
|
+
rspec (~> 3.0)
|
|
77
|
+
yabeda-graphql!
|
|
78
|
+
|
|
79
|
+
BUNDLED WITH
|
|
80
|
+
2.7.2
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
yabeda-graphql (0.2.3)
|
|
5
|
+
graphql (~> 2.2)
|
|
6
|
+
yabeda (~> 0.2)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
anyway_config (2.7.2)
|
|
12
|
+
ruby-next-core (~> 1.0)
|
|
13
|
+
appraisal (2.5.0)
|
|
14
|
+
bundler
|
|
15
|
+
rake
|
|
16
|
+
thor (>= 0.14.0)
|
|
17
|
+
base64 (0.3.0)
|
|
18
|
+
byebug (12.0.0)
|
|
19
|
+
coderay (1.1.3)
|
|
20
|
+
concurrent-ruby (1.3.5)
|
|
21
|
+
diff-lcs (1.6.2)
|
|
22
|
+
dry-initializer (3.2.0)
|
|
23
|
+
fiber-storage (1.0.1)
|
|
24
|
+
graphql (2.4.17)
|
|
25
|
+
base64
|
|
26
|
+
fiber-storage
|
|
27
|
+
logger
|
|
28
|
+
graphql-batch (0.6.1)
|
|
29
|
+
graphql (>= 1.13, < 3)
|
|
30
|
+
promise.rb (~> 0.7.2)
|
|
31
|
+
logger (1.7.0)
|
|
32
|
+
method_source (1.1.0)
|
|
33
|
+
promise.rb (0.7.4)
|
|
34
|
+
pry (0.15.2)
|
|
35
|
+
coderay (~> 1.1)
|
|
36
|
+
method_source (~> 1.0)
|
|
37
|
+
pry-byebug (3.11.0)
|
|
38
|
+
byebug (~> 12.0)
|
|
39
|
+
pry (>= 0.13, < 0.16)
|
|
40
|
+
pry-inline (1.0.7)
|
|
41
|
+
pry (> 0.10.0)
|
|
42
|
+
unicode (~> 0.4.4)
|
|
43
|
+
rake (13.3.1)
|
|
44
|
+
rspec (3.13.2)
|
|
45
|
+
rspec-core (~> 3.13.0)
|
|
46
|
+
rspec-expectations (~> 3.13.0)
|
|
47
|
+
rspec-mocks (~> 3.13.0)
|
|
48
|
+
rspec-core (3.13.6)
|
|
49
|
+
rspec-support (~> 3.13.0)
|
|
50
|
+
rspec-expectations (3.13.5)
|
|
51
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
52
|
+
rspec-support (~> 3.13.0)
|
|
53
|
+
rspec-mocks (3.13.7)
|
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
+
rspec-support (~> 3.13.0)
|
|
56
|
+
rspec-support (3.13.6)
|
|
57
|
+
ruby-next-core (1.1.2)
|
|
58
|
+
thor (1.4.0)
|
|
59
|
+
unicode (0.4.4.5)
|
|
60
|
+
yabeda (0.14.0)
|
|
61
|
+
anyway_config (>= 1.0, < 3)
|
|
62
|
+
concurrent-ruby
|
|
63
|
+
dry-initializer
|
|
64
|
+
|
|
65
|
+
PLATFORMS
|
|
66
|
+
ruby
|
|
67
|
+
x86_64-linux
|
|
68
|
+
|
|
69
|
+
DEPENDENCIES
|
|
70
|
+
appraisal
|
|
71
|
+
bundler
|
|
72
|
+
graphql (~> 2.4.0)
|
|
73
|
+
graphql-batch
|
|
74
|
+
pry
|
|
75
|
+
pry-byebug
|
|
76
|
+
pry-inline
|
|
77
|
+
rake (~> 13.0)
|
|
78
|
+
rspec (~> 3.0)
|
|
79
|
+
yabeda-graphql!
|
|
80
|
+
|
|
81
|
+
BUNDLED WITH
|
|
82
|
+
2.7.2
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
yabeda-graphql (0.2.3)
|
|
5
|
+
graphql (~> 2.2)
|
|
6
|
+
yabeda (~> 0.2)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
anyway_config (2.7.2)
|
|
12
|
+
ruby-next-core (~> 1.0)
|
|
13
|
+
appraisal (2.5.0)
|
|
14
|
+
bundler
|
|
15
|
+
rake
|
|
16
|
+
thor (>= 0.14.0)
|
|
17
|
+
base64 (0.3.0)
|
|
18
|
+
byebug (12.0.0)
|
|
19
|
+
coderay (1.1.3)
|
|
20
|
+
concurrent-ruby (1.3.5)
|
|
21
|
+
diff-lcs (1.6.2)
|
|
22
|
+
dry-initializer (3.2.0)
|
|
23
|
+
fiber-storage (1.0.1)
|
|
24
|
+
graphql (2.5.14)
|
|
25
|
+
base64
|
|
26
|
+
fiber-storage
|
|
27
|
+
logger
|
|
28
|
+
graphql-batch (0.6.1)
|
|
29
|
+
graphql (>= 1.13, < 3)
|
|
30
|
+
promise.rb (~> 0.7.2)
|
|
31
|
+
logger (1.7.0)
|
|
32
|
+
method_source (1.1.0)
|
|
33
|
+
promise.rb (0.7.4)
|
|
34
|
+
pry (0.15.2)
|
|
35
|
+
coderay (~> 1.1)
|
|
36
|
+
method_source (~> 1.0)
|
|
37
|
+
pry-byebug (3.11.0)
|
|
38
|
+
byebug (~> 12.0)
|
|
39
|
+
pry (>= 0.13, < 0.16)
|
|
40
|
+
pry-inline (1.0.7)
|
|
41
|
+
pry (> 0.10.0)
|
|
42
|
+
unicode (~> 0.4.4)
|
|
43
|
+
rake (13.3.1)
|
|
44
|
+
rspec (3.13.2)
|
|
45
|
+
rspec-core (~> 3.13.0)
|
|
46
|
+
rspec-expectations (~> 3.13.0)
|
|
47
|
+
rspec-mocks (~> 3.13.0)
|
|
48
|
+
rspec-core (3.13.6)
|
|
49
|
+
rspec-support (~> 3.13.0)
|
|
50
|
+
rspec-expectations (3.13.5)
|
|
51
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
52
|
+
rspec-support (~> 3.13.0)
|
|
53
|
+
rspec-mocks (3.13.7)
|
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
+
rspec-support (~> 3.13.0)
|
|
56
|
+
rspec-support (3.13.6)
|
|
57
|
+
ruby-next-core (1.1.2)
|
|
58
|
+
thor (1.4.0)
|
|
59
|
+
unicode (0.4.4.5)
|
|
60
|
+
yabeda (0.14.0)
|
|
61
|
+
anyway_config (>= 1.0, < 3)
|
|
62
|
+
concurrent-ruby
|
|
63
|
+
dry-initializer
|
|
64
|
+
|
|
65
|
+
PLATFORMS
|
|
66
|
+
ruby
|
|
67
|
+
x86_64-linux
|
|
68
|
+
|
|
69
|
+
DEPENDENCIES
|
|
70
|
+
appraisal
|
|
71
|
+
bundler
|
|
72
|
+
graphql (~> 2.5.0)
|
|
73
|
+
graphql-batch
|
|
74
|
+
pry
|
|
75
|
+
pry-byebug
|
|
76
|
+
pry-inline
|
|
77
|
+
rake (~> 13.0)
|
|
78
|
+
rspec (~> 3.0)
|
|
79
|
+
yabeda-graphql!
|
|
80
|
+
|
|
81
|
+
BUNDLED WITH
|
|
82
|
+
2.7.2
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
module Yabeda
|
|
2
2
|
module GraphQL
|
|
3
|
-
|
|
4
|
-
def
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
module Instrumentation
|
|
4
|
+
def execute_multiplex(multiplex:)
|
|
5
|
+
queries = multiplex.queries
|
|
6
|
+
queries.each { |query| reset_cache!(query) }
|
|
7
|
+
result = super
|
|
8
|
+
queries.each do |query|
|
|
9
|
+
cache(query).each do |_path, options|
|
|
10
|
+
Yabeda.graphql.field_resolve_runtime.measure(options[:tags], options[:duration])
|
|
11
|
+
Yabeda.graphql.fields_request_count.increment(options[:tags])
|
|
12
|
+
end
|
|
12
13
|
end
|
|
14
|
+
result
|
|
13
15
|
end
|
|
14
16
|
|
|
15
17
|
private
|