diff --git a/Gemfile.lock b/Gemfile.lock index 28b5a0dd..13fb585a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -46,7 +46,7 @@ GEM rdoc (6.6.3.1) psych (>= 4.0.0) regexp_parser (2.9.2) - reline (0.5.0) + reline (0.5.10) io-console (~> 0.5) rexml (3.3.6) strscan @@ -68,14 +68,14 @@ GEM rubocop-sorbet (0.8.5) rubocop (>= 1) ruby-progressbar (1.13.0) - sorbet (0.5.11553) - sorbet-static (= 0.5.11553) - sorbet-runtime (0.5.11553) - sorbet-static (0.5.11553-universal-darwin) - sorbet-static (0.5.11553-x86_64-linux) - sorbet-static-and-runtime (0.5.11553) - sorbet (= 0.5.11553) - sorbet-runtime (= 0.5.11553) + sorbet (0.5.11577) + sorbet-static (= 0.5.11577) + sorbet-runtime (0.5.11577) + sorbet-static (0.5.11577-universal-darwin) + sorbet-static (0.5.11577-x86_64-linux) + sorbet-static-and-runtime (0.5.11577) + sorbet (= 0.5.11577) + sorbet-runtime (= 0.5.11577) stringio (3.1.0) strscan (3.1.0) tapioca (0.16.2) diff --git a/lib/spoom/sorbet/metrics.rb b/lib/spoom/sorbet/metrics.rb index 00c9f32b..8b3ee9ae 100644 --- a/lib/spoom/sorbet/metrics.rb +++ b/lib/spoom/sorbet/metrics.rb @@ -6,7 +6,7 @@ module Spoom module Sorbet module MetricsParser - DEFAULT_PREFIX = "ruby_typer.unknown.." + DEFAULT_PREFIX = "ruby_typer.unknown." class << self extend T::Sig diff --git a/test/spoom/context/sorbet_test.rb b/test/spoom/context/sorbet_test.rb index 1489dc15..7054ee3a 100644 --- a/test/spoom/context/sorbet_test.rb +++ b/test/spoom/context/sorbet_test.rb @@ -76,17 +76,10 @@ def test_context_run_srb_from_path capture_err: true, sorbet_bin: Spoom::Sorbet::BIN_PATH, ) - assert_equal(<<~OUT, result.err) - Typechecker for Ruby + assert_includes(result.err, <<~OUT) + Sorbet: A fast, powerful typechecker designed for Ruby Usage: - sorbet [OPTION...] ... - - -e string Parse an inline ruby string (default: "") - -q, --quiet Silence all non-critical errors - -v, --verbose Verbosity level [0-3] - -h Show short help - --help Show long help - --version Show version + sorbet [options] [[--] ...] OUT assert(result.status) diff --git a/test/spoom/sorbet/metrics_test.rb b/test/spoom/sorbet/metrics_test.rb index 112d3e18..4b38543d 100644 --- a/test/spoom/sorbet/metrics_test.rb +++ b/test/spoom/sorbet/metrics_test.rb @@ -23,11 +23,11 @@ def test_parses_metrics "uuid": "some-uuid", "metrics": [ { - "name": "ruby_typer.unknown..error.total", + "name": "ruby_typer.unknown.error.total", "value": 1 }, { - "name": "ruby_typer.unknown..types.input.sends.total", + "name": "ruby_typer.unknown.types.input.sends.total", "value": 2094 } ] diff --git a/test/test_helper.rb b/test/test_helper.rb index 3a7f0e9c..2f5ca4d9 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -32,6 +32,7 @@ def spoom_gemfile gemspec name: "spoom", path: "#{SPOOM_PATH}" gem "tapioca" gem "sorbet-static-and-runtime", "#{Sorbet::GEM_VERSION}" + gem "json", "2.7.2" GEMFILE end