ruby-lsp-rspec 0.1.23 → 0.1.24

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: 6204c70ec6917f93238449949f16c24892d0145cb10dd32c42819021ef617c83
4
- data.tar.gz: 510b118788f0469ef5783453042fb5c4f56aef9da2f77f0b1567b77e73d0b959
3
+ metadata.gz: 6f86aa2975c5ea56ffd67f1a06d7f0acddbfb4bdf3e90655425750cf373dd6b6
4
+ data.tar.gz: 758fce9d44f6dda48587c7c95d70270c716a8ec7a848e584e595ef5e0b5c81f7
5
5
  SHA512:
6
- metadata.gz: '04947d8bf9659b8d8aa213ea2d305f7d2049719a30aa753e30f289da98b6e41991118681405a3166aac93f5c8d23d4f2ce9f808dcf99d6a1f43aabb85c564980'
7
- data.tar.gz: 2aab5409230f0783b598fe53511d712e4643f84ec506b63278803ccc93002ca37e981c219041f4fa8b33f768432fa5c2eab13e6941bb76261bddfe9a31b70cb1
6
+ metadata.gz: f8b20af6590b835a7db52398e3edff348ae2e90c08a39758cc532cc86dbb8ba52d920fbff2f245d7662dba842f0b92555d02ae7e75e57471c2f821f1f1cd7160
7
+ data.tar.gz: 702e120617863a6cac8a51abb16384b7e381e16020c1dfa8feab1eab0a96331a9919767492e5434e474ffb138619c6bd1c827021431fe0f75eadf54ef39388b3
@@ -46,7 +46,7 @@ module RubyLsp
46
46
  # @override
47
47
  #: -> String
48
48
  def name
49
- "ruby-lsp-rspec"
49
+ "Ruby LSP RSpec"
50
50
  end
51
51
 
52
52
  # @override
@@ -2,22 +2,24 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "rspec/core/formatters"
5
+ require "rspec/core/formatters/progress_formatter"
5
6
  require "ruby_lsp/test_reporters/lsp_reporter"
6
7
 
7
8
  module RubyLsp
8
9
  module RSpec
9
- class RSpecFormatter
10
+ class RSpecFormatter < ::RSpec::Core::Formatters::ProgressFormatter
10
11
  ::RSpec::Core::Formatters.register(
11
12
  self,
12
13
  :example_passed,
13
14
  :example_pending,
14
15
  :example_failed,
15
16
  :example_started,
17
+ :start_dump,
16
18
  :stop,
17
19
  )
18
20
 
19
21
  def initialize(output)
20
- @output = output
22
+ super(output)
21
23
  end
22
24
 
23
25
  def example_started(notification)
@@ -29,6 +31,8 @@ module RubyLsp
29
31
  end
30
32
 
31
33
  def example_passed(notification)
34
+ super(notification)
35
+
32
36
  example = notification.example
33
37
  uri = uri_for(example)
34
38
  id = generate_id(example)
@@ -36,6 +40,8 @@ module RubyLsp
36
40
  end
37
41
 
38
42
  def example_failed(notification)
43
+ super(notification)
44
+
39
45
  example = notification.example
40
46
  uri = uri_for(example)
41
47
  id = generate_id(example)
@@ -43,6 +49,8 @@ module RubyLsp
43
49
  end
44
50
 
45
51
  def example_pending(notification)
52
+ super(notification)
53
+
46
54
  example = notification.example
47
55
  uri = uri_for(example)
48
56
  id = generate_id(example)
@@ -7,7 +7,7 @@ module RubyLsp
7
7
  class SpecStyle
8
8
  #: (ResponseBuilders::TestCollection, GlobalState, Prism::Dispatcher, URI::Generic) -> void
9
9
  def initialize(response_builder, global_state, dispatcher, uri)
10
- super
10
+ # nop
11
11
  end
12
12
  end
13
13
  end
@@ -3,6 +3,6 @@
3
3
 
4
4
  module RubyLsp
5
5
  module RSpec
6
- VERSION = "0.1.23"
6
+ VERSION = "0.1.24"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lsp-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Lo
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-14 00:00:00.000000000 Z
10
+ date: 2025-06-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ruby-lsp