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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f86aa2975c5ea56ffd67f1a06d7f0acddbfb4bdf3e90655425750cf373dd6b6
|
4
|
+
data.tar.gz: 758fce9d44f6dda48587c7c95d70270c716a8ec7a848e584e595ef5e0b5c81f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b20af6590b835a7db52398e3edff348ae2e90c08a39758cc532cc86dbb8ba52d920fbff2f245d7662dba842f0b92555d02ae7e75e57471c2f821f1f1cd7160
|
7
|
+
data.tar.gz: 702e120617863a6cac8a51abb16384b7e381e16020c1dfa8feab1eab0a96331a9919767492e5434e474ffb138619c6bd1c827021431fe0f75eadf54ef39388b3
|
@@ -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
|
-
|
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)
|
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.
|
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
|
10
|
+
date: 2025-06-05 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: ruby-lsp
|