graphql-metrics 4.0.4 → 4.0.5

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: c0f132a7bc5eabcd7d3d909b3342f5f3855df4526ca06ed17eb5c2096fb5c0a5
4
- data.tar.gz: a36decb5cb868fc081a6053420b24d2934e71194f850e4589343160aa3ff8b59
3
+ metadata.gz: e35ba7c6756d4d431a32911e2bf8452f8f825ed1ff6d90c17ad0a0cb13f4d5f9
4
+ data.tar.gz: 1bb21be1384170bca7151a05ae36299c70193ca570bece6a7cdeb59f67e9ed57
5
5
  SHA512:
6
- metadata.gz: 3570b95636f5200b7d487e71354717ed0a69e0e04e30a6f2f0131f8739158f018a244b8e8a1ff76c5574f00038ff8a738b279f6925d518d97500f35fc2730a90
7
- data.tar.gz: f666ab46f5195b6b3344b2c7bd657a441feae3878595f62a7a233705781723352371854c66e6a1ceb66ff120d5cb0b001e7c447761377babf930de887d0cf906
6
+ metadata.gz: ba5a5d9fe0b038410260a9fc7d05472a2a7b3012194bc727226429920225f93f617ce353f8121e07b0a27b6f13899c8895ef26bf37e9856df05482c692042603
7
+ data.tar.gz: baec02caa8599a575912c7e3e6696d11ac9bc0e88ebc5ed270eeaf7c0d8cf800bb5d1d48276f513a69c8921c43ef821a9f1239290a86027b9c104495e79c1ca3
@@ -1,3 +1,7 @@
1
+ 4.0.5
2
+ -----
3
+ - [34] Fix default of pre-parsed query `parsing_duration` to be Float (`0.0`) rather than Integer (`0`).
4
+
1
5
  4.0.4
2
6
  -----
3
7
  - [33](https://github.com/Shopify/graphql-metrics/pull/33) Setup tracing using lex or execute_multiplex tracer events.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-metrics (4.0.4)
4
+ graphql-metrics (4.0.5)
5
5
  concurrent-ruby (~> 1.1.0)
6
6
  graphql (>= 1.10.8)
7
7
 
@@ -0,0 +1,15 @@
1
+ Releasing graphql-metrics
2
+
3
+ 1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org
4
+ 2. Update VERSION in lib/graphql/metrics/version.rb
5
+ 3. Add a CHANGELOG entry for the new release
6
+ 4. Commit the changes with a commit message like "Packaging for release X.Y.Z"
7
+ 5. Tag the release with the version (Leave REV blank for HEAD or provide a SHA)
8
+ $ git tag vX.Y.Z REV
9
+ 6. Push out the changes
10
+ $ git push
11
+ 7. Push out the tags
12
+ $ git push --tags
13
+ 8. Publish the gem
14
+ $ gem build graphql_metrics.gemspec
15
+ $ gem push graphql-metrics-X.Y.Z.gem
@@ -95,8 +95,8 @@ module GraphQL
95
95
 
96
96
  def capture_validation_time(context)
97
97
  if pre_context.parsing_duration.nil?
98
- pre_context.parsing_start_time_offset = 0
99
- pre_context.parsing_duration = 0
98
+ pre_context.parsing_start_time_offset = 0.0
99
+ pre_context.parsing_duration = 0.0
100
100
  end
101
101
 
102
102
  timed_result = GraphQL::Metrics.time(pre_context.query_start_time_monotonic) { yield }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module Metrics
5
- VERSION = "4.0.4"
5
+ VERSION = "4.0.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Butcher
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-06 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -212,6 +212,7 @@ files:
212
212
  - Gemfile.lock
213
213
  - LICENSE.txt
214
214
  - README.md
215
+ - RELEASING
215
216
  - Rakefile
216
217
  - bin/console
217
218
  - bin/setup