rspec-github 2.3.0 → 2.4.0

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: 809f1c358c9c727c2cb824a727cbf4d012238f30cb5d817274f5d05a719ec253
4
- data.tar.gz: 6b4771a4936c7cc0cffdd20b69399f75ca658fa7a5d097e8c9bcaafb15257473
3
+ metadata.gz: fd7e0cdee8f3a57881a93a5b8503cef79725e4a08d80b08b523e8f309b3e080e
4
+ data.tar.gz: a72d40485a8a14ebc4e800059517c445302d9ffe1ddd2e96fa2fb4a512ba8a49
5
5
  SHA512:
6
- metadata.gz: 7cbdaf2dc830b47a275b30f037984212e2fdd791ca042c3d8886a74f69cf10c908fa4c078633261da96cf1c7df95333e4465aa93f9574a4c75066595855041ae
7
- data.tar.gz: edf61602b543774d83693a3438be2954d175a14a37e8c843af303f33a984ced3bc038dbf82194c7ef615d642f6c44a10756203237276be1162f7c9c77151379d
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
- File.realpath(raw_path).delete_prefix("#{workspace}#{File::SEPARATOR}")
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Github
5
- VERSION = '2.3.0'
5
+ VERSION = '2.4.0'
6
6
  end
7
7
  end
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.3.0
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: 2020-09-14 00:00:00.000000000 Z
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: 0.81.0
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: 0.81.0
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.3.0
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.1.2
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