From de1eb834e1eed478c47969bd1e2d544cf639a29a Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 11 Apr 2023 09:08:08 +0800 Subject: [PATCH] DEV: Update syntax_tree (#66) Makes it compatible with core using the same version --- Gemfile.lock | 6 +++--- lib/collector.rb | 13 ++++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index efe3eb6..5cb6eea 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -12,7 +12,7 @@ GEM parallel (1.22.1) parser (3.1.2.1) ast (~> 2.4.1) - prettier_print (1.2.0) + prettier_print (1.2.1) rainbow (3.1.1) regexp_parser (2.6.0) rexml (3.2.5) @@ -34,7 +34,7 @@ GEM rubocop-rspec (2.13.2) rubocop (~> 1.33) ruby-progressbar (1.11.0) - syntax_tree (5.1.0) + syntax_tree (6.1.1) prettier_print (>= 1.2.0) unicode-display_width (2.3.0) @@ -47,4 +47,4 @@ DEPENDENCIES translations-manager! BUNDLED WITH - 2.1.4 + 2.4.8 diff --git a/lib/collector.rb b/lib/collector.rb index cbfd4f0..fd29da6 100644 --- a/lib/collector.rb +++ b/lib/collector.rb @@ -385,9 +385,16 @@ def process_metrics def web_metrics if @page_views [ - @page_views, @http_requests, @http_duration_seconds, @http_redis_duration_seconds, - @http_sql_duration_seconds, @http_net_duration_seconds, @http_queue_duration_seconds, - @http_forced_anon_count, @http_sql_calls_per_request, @http_anon_cache_store, + @page_views, + @http_requests, + @http_duration_seconds, + @http_redis_duration_seconds, + @http_sql_duration_seconds, + @http_net_duration_seconds, + @http_queue_duration_seconds, + @http_forced_anon_count, + @http_sql_calls_per_request, + @http_anon_cache_store, @http_anon_cache_hit, ] else