rspec-github 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/github/formatter.rb +7 -1
- data/lib/rspec/github/notification_decorator.rb +2 -1
- data/lib/rspec/github/version.rb +1 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd7e0cdee8f3a57881a93a5b8503cef79725e4a08d80b08b523e8f309b3e080e
|
4
|
+
data.tar.gz: a72d40485a8a14ebc4e800059517c445302d9ffe1ddd2e96fa2fb4a512ba8a49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c4cdbb79cd3c13f5e54f3bc493019e8fa7addff92fa870f4fa767927307618880cfdfa4438dc1b438a4c172cc0403733fb6e7e8a482f4ffa5e0f082ba6f6e0
|
7
|
+
data.tar.gz: c73f0324a20c1f81f4fdac2c9bb8590d89629323c3a41ec4a6d1cd198b2426149ba2e3abc8cfcc43f2c61a0402f25b0915c1329a684821d163d9fb9ebcb6c656
|
@@ -7,7 +7,7 @@ require 'rspec/github/notification_decorator'
|
|
7
7
|
module RSpec
|
8
8
|
module Github
|
9
9
|
class Formatter < RSpec::Core::Formatters::BaseFormatter
|
10
|
-
RSpec::Core::Formatters.register self, :example_failed, :example_pending
|
10
|
+
RSpec::Core::Formatters.register self, :example_failed, :example_pending, :seed
|
11
11
|
|
12
12
|
def example_failed(failure)
|
13
13
|
notification = NotificationDecorator.new(failure)
|
@@ -20,6 +20,12 @@ module RSpec
|
|
20
20
|
|
21
21
|
output.puts "\n::warning file=#{notification.path},line=#{notification.line}::#{notification.annotation}"
|
22
22
|
end
|
23
|
+
|
24
|
+
def seed(notification)
|
25
|
+
return unless notification.seed_used?
|
26
|
+
|
27
|
+
output.puts notification.fully_formatted
|
28
|
+
end
|
23
29
|
end
|
24
30
|
end
|
25
31
|
end
|
@@ -24,7 +24,8 @@ module RSpec
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def path
|
27
|
-
|
27
|
+
# TODO: use `delete_prefix` when dropping ruby 2.4 support
|
28
|
+
File.realpath(raw_path).sub(/\A#{workspace}#{File::SEPARATOR}/, '')
|
28
29
|
end
|
29
30
|
|
30
31
|
private
|
data/lib/rspec/github/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stef Schenkelaars
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|
@@ -44,14 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.12.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.12.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-ast
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.4.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.4.0
|
55
69
|
description: Formatter for RSpec to show errors in GitHub action annotations
|
56
70
|
email:
|
57
71
|
- stef.schenkelaars@gmail.com
|
@@ -78,14 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
92
|
requirements:
|
79
93
|
- - ">="
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.
|
95
|
+
version: 2.4.0
|
82
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
97
|
requirements:
|
84
98
|
- - ">="
|
85
99
|
- !ruby/object:Gem::Version
|
86
100
|
version: '0'
|
87
101
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
102
|
+
rubygems_version: 3.3.7
|
89
103
|
signing_key:
|
90
104
|
specification_version: 4
|
91
105
|
summary: Formatter for RSpec to show errors in GitHub action annotations
|