rspec-github 1.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 85366c1120dee3555bf63e5e7b81f24bdf37ffe45aae9666571825254de9dd23
4
+ data.tar.gz: 0df575c31f3e7ff6203c1a743f8026866996ba9f70e56ef299e98909e0c09380
5
+ SHA512:
6
+ metadata.gz: dae1d783228a7af44526da52b5d5d69a1eee4eeae4f2ea4671fcdfdc34ad8afcd2526c20e1958a988373c15dd9b3d4208875153d6cff6aea4d27563187412a9d
7
+ data.tar.gz: 8d612687ac982b83aea501ee05452335be1ce2bbf932352b543ef4bf6cb0e113a9e0cd282566ee4ca497073a7442236ffffd66ac972ae8bae59ad9f20ff17088
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rspec/core/formatters/documentation_formatter'
4
+
5
+ module RSpec
6
+ module Github
7
+ class Formatter < RSpec::Core::Formatters::DocumentationFormatter
8
+ RSpec::Core::Formatters.register self, :example_failed, :example_pending
9
+
10
+ def example_failed(failure)
11
+ super
12
+ file, line = failure.example.location.split(':')
13
+ output.puts "::error file=#{file},line=#{line}::#{failure.message_lines.join('%0A')}"
14
+ end
15
+
16
+ def example_pending(pending)
17
+ super
18
+ file, line = pending.example.location.split(':')
19
+ output.puts "::warning file=#{file},line=#{line}::#{pending.example.full_description}"
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rspec
4
+ module Github
5
+ VERSION = '1.0.0.alpha.1'
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rspec/github/version'
4
+ require 'rspec/github/formatter'
5
+
6
+ module Rspec
7
+ module Github
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rspec-github
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.alpha.1
5
+ platform: ruby
6
+ authors:
7
+ - Stef Schenkelaars
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.81.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.81.0
41
+ description: Formatter for RSpec to show errors in GitHub action annotations
42
+ email:
43
+ - stef.schenkelaars@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/rspec/github.rb
49
+ - lib/rspec/github/formatter.rb
50
+ - lib/rspec/github/version.rb
51
+ homepage: https://drieam.github.io/rspec-github
52
+ licenses:
53
+ - MIT
54
+ metadata:
55
+ allowed_push_host: https://rubygems.org
56
+ homepage_uri: https://drieam.github.io/rspec-github
57
+ source_code_uri: https://github.com/drieam/rspec-github
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 2.3.0
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">"
70
+ - !ruby/object:Gem::Version
71
+ version: 1.3.1
72
+ requirements: []
73
+ rubygems_version: 3.1.2
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: Formatter for RSpec to show errors in GitHub action annotations
77
+ test_files: []