yabeda-graphql 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a08157e5e641a56c7ca1a966c76c2e468571871a38bc3662fc4be6fa9f1301f2
4
- data.tar.gz: 463081c19996433cea8a02d8226b1375bafc2cbc5ef2738c5dafce873553362f
3
+ metadata.gz: a185f068a3e317111f36e4074e80e6a27a4d142f20c57ec06c9804395d947332
4
+ data.tar.gz: '0701549814d5ef3f5d96f12802598ff36f720419f7e33c43140ab672c8f3aca0'
5
5
  SHA512:
6
- metadata.gz: bfb1be162dd40907f2ad7229602e8a844f8fb5edb578e2d93fef93411c4a20d33a631c4560e071b5c025a5bd019ea62b0488b7dcc4bc86a76e46e17873ac5e37
7
- data.tar.gz: 2aab2eb5e7e9ed55cc16611ec372107c4d3316deb7eb630ddf1422106a8574f4737b0a7a3aafdfad11074aff68a34f0eaedb4bd19ec3880ae2b955171869037a
6
+ metadata.gz: 84506afb23434d0f2c30097b0cdbe3dfda06b932281f97af97318df43b43db1a82ec485947ad28f2c015ce8f986f190a9d64fd29158b8f09c8885c246ae758d5
7
+ data.tar.gz: d3c13baaa78ef0556ae4c18bc5d7085532a048ba3c1f784079d1746215c3e64b87e3fb100b994630565f03f0a3eecf7a57324b715daf67dbf076b62c0de57dfc
@@ -0,0 +1,82 @@
1
+ name: Build and release gem to RubyGems
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ with:
14
+ fetch-depth: 0 # Fetch current tag as annotated. See https://github.com/actions/checkout/issues/290
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.7
18
+ - name: "Extract data from tag: version, message, body"
19
+ id: tag
20
+ run: |
21
+ git fetch --tags --force # Really fetch annotated tag. See https://github.com/actions/checkout/issues/290#issuecomment-680260080
22
+ echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
23
+ echo ::set-output name=subject::$(git for-each-ref $GITHUB_REF --format='%(contents:subject)')
24
+ BODY="$(git for-each-ref $GITHUB_REF --format='%(contents:body)')"
25
+ # Extract changelog entries between this and previous version headers
26
+ escaped_version=$(echo ${GITHUB_REF#refs/tags/v} | sed -e 's/[]\/$*.^[]/\\&/g')
27
+ changelog=$(awk "BEGIN{inrelease=0} /## ${escaped_version}/{inrelease=1;next} /## [0-9]+\.[0-9]+\.[0-9]+/{inrelease=0;exit} {if (inrelease) print}" CHANGELOG.md)
28
+ # Multiline body for release. See https://github.community/t/set-output-truncates-multiline-strings/16852/5
29
+ BODY="${BODY}"$'\n'"${changelog}"
30
+ BODY="${BODY//'%'/'%25'}"
31
+ BODY="${BODY//$'\n'/'%0A'}"
32
+ BODY="${BODY//$'\r'/'%0D'}"
33
+ echo "::set-output name=body::$BODY"
34
+ # Add pre-release option if tag name has any suffix after vMAJOR.MINOR.PATCH
35
+ if [[ ${GITHUB_REF#refs/tags/} =~ ^v[0-9]+\.[0-9]+\.[0-9]+.+ ]]; then
36
+ echo ::set-output name=prerelease::true
37
+ fi
38
+ - name: Build gem
39
+ run: gem build
40
+ - name: Calculate checksums
41
+ run: sha256sum yabeda-graphql-${{ steps.tag.outputs.version }}.gem > SHA256SUM
42
+ - name: Check version
43
+ run: ls -l yabeda-graphql-${{ steps.tag.outputs.version }}.gem
44
+ - name: Create Release
45
+ id: create_release
46
+ uses: actions/create-release@v1
47
+ env:
48
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
+ with:
50
+ tag_name: ${{ github.ref }}
51
+ release_name: ${{ steps.tag.outputs.subject }}
52
+ body: ${{ steps.tag.outputs.body }}
53
+ draft: false
54
+ prerelease: ${{ steps.tag.outputs.prerelease }}
55
+ - name: Upload built gem as release asset
56
+ uses: actions/upload-release-asset@v1
57
+ env:
58
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59
+ with:
60
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
61
+ asset_path: yabeda-graphql-${{ steps.tag.outputs.version }}.gem
62
+ asset_name: yabeda-graphql-${{ steps.tag.outputs.version }}.gem
63
+ asset_content_type: application/x-tar
64
+ - name: Upload checksums as release asset
65
+ uses: actions/upload-release-asset@v1
66
+ env:
67
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68
+ with:
69
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
70
+ asset_path: SHA256SUM
71
+ asset_name: SHA256SUM
72
+ asset_content_type: text/plain
73
+ - name: Publish to GitHub packages
74
+ env:
75
+ GEM_HOST_API_KEY: Bearer ${{ secrets.GITHUB_TOKEN }}
76
+ run: |
77
+ gem push yabeda-graphql-${{ steps.tag.outputs.version }}.gem --host https://rubygems.pkg.github.com/${{ github.repository_owner }}
78
+ - name: Publish to RubyGems
79
+ env:
80
+ GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_API_KEY }}"
81
+ run: |
82
+ gem push yabeda-graphql-${{ steps.tag.outputs.version }}.gem
@@ -0,0 +1,67 @@
1
+ name: Run tests
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - '**'
8
+ tags-ignore:
9
+ - 'v*'
10
+
11
+ jobs:
12
+ test:
13
+ name: "Run tests"
14
+ if: "!contains(github.event.head_commit.message, '[ci skip]')"
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ include:
20
+ - ruby: "3.0"
21
+ graphql-ruby: "1.12"
22
+ interpreter: yes
23
+ - ruby: "3.0"
24
+ graphql-ruby: "1.12"
25
+ interpreter: no
26
+ - 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
35
+ - ruby: "2.6"
36
+ graphql-ruby: "1.10"
37
+ interpreter: no
38
+ - ruby: "2.5"
39
+ graphql-ruby: "1.9"
40
+ interpreter: yes
41
+ - ruby: "2.5"
42
+ graphql-ruby: "1.9"
43
+ interpreter: no
44
+ container:
45
+ image: ruby:${{ matrix.ruby }}
46
+ env:
47
+ CI: true
48
+ GRAPHQL_RUBY_INTERPRETER: ${{ matrix.interpreter }}
49
+ BUNDLE_GEMFILE: gemfiles/graphql_${{ matrix.graphql-ruby }}.gemfile
50
+ steps:
51
+ - uses: actions/checkout@v2
52
+ - uses: actions/cache@v2
53
+ with:
54
+ path: vendor/bundle
55
+ key: bundle-${{ matrix.ruby }}-${{ matrix.graphql-ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
56
+ restore-keys: |
57
+ bundle-${{ matrix.ruby }}-${{ matrix.graphql-ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
58
+ bundle-${{ matrix.ruby }}-
59
+ - name: Upgrade Bundler to 2.x (for older Rubies)
60
+ run: gem install bundler -v '~> 2.0'
61
+ - name: Bundle install
62
+ run: |
63
+ bundle config path vendor/bundle
64
+ bundle install
65
+ bundle update
66
+ - name: Run RSpec
67
+ run: bundle exec rspec
data/Appraisals CHANGED
@@ -5,3 +5,11 @@ end
5
5
  appraise "graphql-1.10" do
6
6
  gem "graphql", "~> 1.10.0"
7
7
  end
8
+
9
+ appraise "graphql-1.11" do
10
+ gem "graphql", "~> 1.11.0"
11
+ end
12
+
13
+ appraise "graphql-1.12" do
14
+ gem "graphql", "~> 1.12.0"
15
+ 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.1 - 2021-02-09
9
+
10
+ ### Fixed
11
+
12
+ - Ruby 3.0 compatibility. [@Envek]
13
+
8
14
  ## 0.2.0 - 2020-03-21
9
15
 
10
16
  ### Changed
data/Gemfile.lock CHANGED
@@ -8,47 +8,47 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.2.0)
11
+ appraisal (2.3.0)
12
12
  bundler
13
13
  rake
14
14
  thor (>= 0.14.0)
15
- byebug (11.1.1)
16
- coderay (1.1.2)
17
- concurrent-ruby (1.1.6)
18
- diff-lcs (1.3)
19
- dry-initializer (3.0.3)
20
- graphql (1.10.5)
21
- graphql-batch (0.4.2)
15
+ byebug (11.1.3)
16
+ 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
22
  graphql (>= 1.3, < 2)
23
23
  promise.rb (~> 0.7.2)
24
- method_source (0.9.2)
24
+ method_source (1.0.0)
25
25
  promise.rb (0.7.4)
26
- pry (0.12.2)
27
- coderay (~> 1.1.0)
28
- method_source (~> 0.9.0)
29
- pry-byebug (3.8.0)
26
+ pry (0.13.1)
27
+ coderay (~> 1.1)
28
+ method_source (~> 1.0)
29
+ pry-byebug (3.9.0)
30
30
  byebug (~> 11.0)
31
- pry (~> 0.10)
32
- pry-inline (1.0.5)
33
- pry (> 0.10.0, <= 0.12.2)
31
+ pry (~> 0.13.0)
32
+ pry-inline (1.0.7)
33
+ pry (> 0.10.0)
34
34
  unicode (~> 0.4.4)
35
- rake (13.0.1)
36
- rspec (3.9.0)
37
- rspec-core (~> 3.9.0)
38
- rspec-expectations (~> 3.9.0)
39
- rspec-mocks (~> 3.9.0)
40
- rspec-core (3.9.1)
41
- rspec-support (~> 3.9.1)
42
- rspec-expectations (3.9.1)
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)
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.9.0)
45
- rspec-mocks (3.9.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-mocks (3.10.2)
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.9.0)
48
- rspec-support (3.9.2)
49
- thor (1.0.1)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-support (3.10.2)
49
+ thor (1.1.0)
50
50
  unicode (0.4.4.4)
51
- yabeda (0.5.0)
51
+ yabeda (0.8.0)
52
52
  concurrent-ruby
53
53
  dry-initializer
54
54
 
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  yabeda-graphql!
68
68
 
69
69
  BUNDLED WITH
70
- 2.1.4
70
+ 2.2.9
data/README.md CHANGED
@@ -65,6 +65,38 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
65
65
 
66
66
  Bug reports and pull requests are welcome on GitHub at https://github.com/yabeda-rb/yabeda-graphql.
67
67
 
68
+ ### Releasing
69
+
70
+ 1. Bump version number in `lib/yabeda/graphql/version.rb`
71
+
72
+ 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(Yabeda::GraphQL::VERSION).to_s`
73
+
74
+ 2. Fill `CHANGELOG.md` with missing changes, add header with version and date.
75
+
76
+ 3. Make a commit:
77
+
78
+ ```sh
79
+ git add lib/yabeda/graphql/version.rb CHANGELOG.md
80
+ version=$(ruby -r ./lib/yabeda/graphql/version.rb -e "puts Gem::Version.new(Yabeda::GraphQL::VERSION)")
81
+ git commit --message="${version}: " --edit
82
+ ```
83
+
84
+ 4. Create annotated tag:
85
+
86
+ ```sh
87
+ git tag v${version} --annotate --message="${version}: " --edit --sign
88
+ ```
89
+
90
+ 5. Fill version name into subject line and (optionally) some description (list of changes will be taken from changelog and appended automatically)
91
+
92
+ 6. Push it:
93
+
94
+ ```sh
95
+ git push --follow-tags
96
+ ```
97
+
98
+ 7. GitHub Actions will create a new release, build and push gem into RubyGems! You're done!
99
+
68
100
  ## License
69
101
 
70
102
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -8,47 +8,47 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.2.0)
11
+ appraisal (2.3.0)
12
12
  bundler
13
13
  rake
14
14
  thor (>= 0.14.0)
15
- byebug (11.1.1)
16
- coderay (1.1.2)
17
- concurrent-ruby (1.1.6)
18
- diff-lcs (1.3)
19
- dry-initializer (3.0.3)
20
- graphql (1.10.5)
21
- graphql-batch (0.4.2)
15
+ byebug (11.1.3)
16
+ 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.10.14)
21
+ graphql-batch (0.4.3)
22
22
  graphql (>= 1.3, < 2)
23
23
  promise.rb (~> 0.7.2)
24
- method_source (0.9.2)
24
+ method_source (1.0.0)
25
25
  promise.rb (0.7.4)
26
- pry (0.12.2)
27
- coderay (~> 1.1.0)
28
- method_source (~> 0.9.0)
29
- pry-byebug (3.8.0)
26
+ pry (0.13.1)
27
+ coderay (~> 1.1)
28
+ method_source (~> 1.0)
29
+ pry-byebug (3.9.0)
30
30
  byebug (~> 11.0)
31
- pry (~> 0.10)
32
- pry-inline (1.0.5)
33
- pry (> 0.10.0, <= 0.12.2)
31
+ pry (~> 0.13.0)
32
+ pry-inline (1.0.7)
33
+ pry (> 0.10.0)
34
34
  unicode (~> 0.4.4)
35
- rake (13.0.1)
36
- rspec (3.9.0)
37
- rspec-core (~> 3.9.0)
38
- rspec-expectations (~> 3.9.0)
39
- rspec-mocks (~> 3.9.0)
40
- rspec-core (3.9.1)
41
- rspec-support (~> 3.9.1)
42
- rspec-expectations (3.9.1)
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)
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.9.0)
45
- rspec-mocks (3.9.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-mocks (3.10.2)
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.9.0)
48
- rspec-support (3.9.2)
49
- thor (1.0.1)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-support (3.10.2)
49
+ thor (1.1.0)
50
50
  unicode (0.4.4.4)
51
- yabeda (0.5.0)
51
+ yabeda (0.8.0)
52
52
  concurrent-ruby
53
53
  dry-initializer
54
54
 
@@ -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-inline"
10
+ gem "pry-byebug", platform: :mri
11
+ gem "graphql-batch"
12
+ end
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,71 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ yabeda-graphql (0.2.0)
5
+ graphql (~> 1.9)
6
+ yabeda (~> 0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (2.3.0)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ byebug (11.1.3)
16
+ 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.11.7)
21
+ graphql-batch (0.4.3)
22
+ graphql (>= 1.3, < 2)
23
+ promise.rb (~> 0.7.2)
24
+ method_source (1.0.0)
25
+ promise.rb (0.7.4)
26
+ pry (0.13.1)
27
+ coderay (~> 1.1)
28
+ method_source (~> 1.0)
29
+ pry-byebug (3.9.0)
30
+ byebug (~> 11.0)
31
+ pry (~> 0.13.0)
32
+ pry-inline (1.0.7)
33
+ pry (> 0.10.0)
34
+ 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)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-mocks (3.10.2)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-support (3.10.2)
49
+ thor (1.1.0)
50
+ unicode (0.4.4.4)
51
+ yabeda (0.8.0)
52
+ concurrent-ruby
53
+ dry-initializer
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ appraisal
60
+ bundler
61
+ graphql (~> 1.11.0)
62
+ graphql-batch
63
+ pry
64
+ pry-byebug
65
+ pry-inline
66
+ rake (~> 13.0)
67
+ rspec (~> 3.0)
68
+ yabeda-graphql!
69
+
70
+ BUNDLED WITH
71
+ 2.1.4
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "graphql", "~> 1.12.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,71 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ yabeda-graphql (0.2.0)
5
+ graphql (~> 1.9)
6
+ yabeda (~> 0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ appraisal (2.3.0)
12
+ bundler
13
+ rake
14
+ thor (>= 0.14.0)
15
+ byebug (11.1.3)
16
+ 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)
23
+ promise.rb (~> 0.7.2)
24
+ method_source (1.0.0)
25
+ promise.rb (0.7.4)
26
+ pry (0.13.1)
27
+ coderay (~> 1.1)
28
+ method_source (~> 1.0)
29
+ pry-byebug (3.9.0)
30
+ byebug (~> 11.0)
31
+ pry (~> 0.13.0)
32
+ pry-inline (1.0.7)
33
+ pry (> 0.10.0)
34
+ 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)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-mocks (3.10.2)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-support (3.10.2)
49
+ thor (1.1.0)
50
+ unicode (0.4.4.4)
51
+ yabeda (0.8.0)
52
+ concurrent-ruby
53
+ dry-initializer
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ appraisal
60
+ bundler
61
+ graphql (~> 1.12.0)
62
+ graphql-batch
63
+ pry
64
+ pry-byebug
65
+ pry-inline
66
+ rake (~> 13.0)
67
+ rspec (~> 3.0)
68
+ yabeda-graphql!
69
+
70
+ BUNDLED WITH
71
+ 2.1.4
@@ -8,47 +8,47 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- appraisal (2.2.0)
11
+ appraisal (2.3.0)
12
12
  bundler
13
13
  rake
14
14
  thor (>= 0.14.0)
15
- byebug (11.1.1)
16
- coderay (1.1.2)
17
- concurrent-ruby (1.1.6)
18
- diff-lcs (1.3)
19
- dry-initializer (3.0.3)
20
- graphql (1.9.19)
21
- graphql-batch (0.4.2)
15
+ byebug (11.1.3)
16
+ 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.9.21)
21
+ graphql-batch (0.4.3)
22
22
  graphql (>= 1.3, < 2)
23
23
  promise.rb (~> 0.7.2)
24
- method_source (0.9.2)
24
+ method_source (1.0.0)
25
25
  promise.rb (0.7.4)
26
- pry (0.12.2)
27
- coderay (~> 1.1.0)
28
- method_source (~> 0.9.0)
29
- pry-byebug (3.8.0)
26
+ pry (0.13.1)
27
+ coderay (~> 1.1)
28
+ method_source (~> 1.0)
29
+ pry-byebug (3.9.0)
30
30
  byebug (~> 11.0)
31
- pry (~> 0.10)
32
- pry-inline (1.0.5)
33
- pry (> 0.10.0, <= 0.12.2)
31
+ pry (~> 0.13.0)
32
+ pry-inline (1.0.7)
33
+ pry (> 0.10.0)
34
34
  unicode (~> 0.4.4)
35
- rake (13.0.1)
36
- rspec (3.9.0)
37
- rspec-core (~> 3.9.0)
38
- rspec-expectations (~> 3.9.0)
39
- rspec-mocks (~> 3.9.0)
40
- rspec-core (3.9.1)
41
- rspec-support (~> 3.9.1)
42
- rspec-expectations (3.9.1)
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)
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.9.0)
45
- rspec-mocks (3.9.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-mocks (3.10.2)
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.9.0)
48
- rspec-support (3.9.2)
49
- thor (1.0.1)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-support (3.10.2)
49
+ thor (1.1.0)
50
50
  unicode (0.4.4.4)
51
- yabeda (0.5.0)
51
+ yabeda (0.8.0)
52
52
  concurrent-ruby
53
53
  dry-initializer
54
54
 
@@ -6,9 +6,9 @@ module Yabeda
6
6
  end
7
7
 
8
8
  def after_query(query)
9
- cache(query).each do |_path, tags:, duration:|
10
- Yabeda.graphql.field_resolve_runtime.measure(tags, duration)
11
- Yabeda.graphql.fields_request_count.increment(tags)
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
12
  end
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  module Yabeda
2
2
  module GraphQL
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
4
+ version: 0.2.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-21 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yabeda
@@ -102,9 +102,10 @@ executables: []
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
+ - ".github/workflows/build-release.yml"
106
+ - ".github/workflows/test.yml"
105
107
  - ".gitignore"
106
108
  - ".rspec"
107
- - ".travis.yml"
108
109
  - Appraisals
109
110
  - CHANGELOG.md
110
111
  - Gemfile
@@ -117,6 +118,10 @@ files:
117
118
  - gemfiles/.bundle/config
118
119
  - gemfiles/graphql_1.10.gemfile
119
120
  - gemfiles/graphql_1.10.gemfile.lock
121
+ - gemfiles/graphql_1.11.gemfile
122
+ - gemfiles/graphql_1.11.gemfile.lock
123
+ - gemfiles/graphql_1.12.gemfile
124
+ - gemfiles/graphql_1.12.gemfile.lock
120
125
  - gemfiles/graphql_1.9.gemfile
121
126
  - gemfiles/graphql_1.9.gemfile.lock
122
127
  - lib/yabeda/graphql.rb
@@ -144,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
149
  - !ruby/object:Gem::Version
145
150
  version: '0'
146
151
  requirements: []
147
- rubygems_version: 3.1.2
152
+ rubygems_version: 3.1.4
148
153
  signing_key:
149
154
  specification_version: 4
150
155
  summary: Collects metrics to monitor execution of your GraphQL queries
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.0
6
- gemfile:
7
- - gemfiles/graphql_1.10.gemfile
8
- - gemfiles/graphql_1.9.gemfile
9
- env:
10
- - GRAPHQL_RUBY_INTERPRETER=yes
11
- - GRAPHQL_RUBY_INTERPRETER=no
12
- before_install: gem install bundler -v 2.1.4