Skip to content

Commit

Permalink
0.2.1: Ruby 3.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Feb 9, 2021
1 parent d02f9af commit 7e91a75
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.2.1 - 2021-02-09

### Fixed

- Ruby 3.0 compatibility. [@Envek]

## 0.2.0 - 2020-03-21

### Changed
Expand Down
6 changes: 3 additions & 3 deletions lib/yabeda/graphql/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ def before_query(query)
end

def after_query(query)
cache(query).each do |_path, tags:, duration:|
Yabeda.graphql.field_resolve_runtime.measure(tags, duration)
Yabeda.graphql.fields_request_count.increment(tags)
cache(query).each do |_path, options|
Yabeda.graphql.field_resolve_runtime.measure(options[:tags], options[:duration])
Yabeda.graphql.fields_request_count.increment(options[:tags])
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/yabeda/graphql/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Yabeda
module GraphQL
VERSION = "0.2.0"
VERSION = "0.2.1"
end
end

0 comments on commit 7e91a75

Please sign in to comment.