rspec-github-actions-formatter 0.1.1 → 0.1.2
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 +4 -4
- data/lib/rspec_github_actions_formatter.rb +5 -2
- data/rspec-github-actions-formatter.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9540a0926c5e3a54ef1e6a4a5e02b21ffe7cb44aadca3bf517d0a5a3cea130da
|
4
|
+
data.tar.gz: c0191b7877d4f793a9477905958ca363448ab272792d54f14e2a0206452f0504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9636aebf60fb3a9d7f6fca7323ac1d29ff5d30fa71fd3ec109abf4ec79f9a1abb155c08b3e6b464bbd4c3fe01c7a58fe8a7c9cb9f62e18098f2adb5c167afa7d
|
7
|
+
data.tar.gz: 1515b3563ead73dfb414ecb0167648436378507c17157a4bf2f96ea15ea4e65363b445b2e8beac7ad7b4866bbd8a1b8c69d2b9729beaa478331dcecbc2fb8f8b
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "rspec/core/formatters/progress_formatter"
|
2
2
|
|
3
3
|
class RspecGithubActionsFormatter < RSpec::Core::Formatters::ProgressFormatter
|
4
|
-
VERSION = "0.1.
|
4
|
+
VERSION = "0.1.2"
|
5
5
|
|
6
6
|
RSpec::Core::Formatters.register self, :dump_pending, :dump_failures, :example_passed, :example_pending, :example_failed, :example_started, :start
|
7
7
|
|
@@ -102,8 +102,11 @@ class RspecGithubActionsFormatter < RSpec::Core::Formatters::ProgressFormatter
|
|
102
102
|
location.delete_prefix("./").split(":")
|
103
103
|
end
|
104
104
|
|
105
|
+
# If it says less than 80 columns, don't accept it.
|
106
|
+
# GitHub Actions seems to set it to something silly like 40 characters, and I
|
107
|
+
# haven't yet figured out why. Help welcome!
|
105
108
|
def terminal_width
|
106
|
-
`tput cols`.to_i
|
109
|
+
Math.max(`tput cols`.to_i, 80)
|
107
110
|
end
|
108
111
|
|
109
112
|
def progress_display(executed_examples, total_examples)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-github-actions-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Hill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|