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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4bc612cad9044378f2505046f48730493eee7a16b46b209270bd782dda51f85
4
- data.tar.gz: d0bba56acadf67070397054de67adff64109eed3cf5a08e8f7ca3d88b83a5939
3
+ metadata.gz: 9540a0926c5e3a54ef1e6a4a5e02b21ffe7cb44aadca3bf517d0a5a3cea130da
4
+ data.tar.gz: c0191b7877d4f793a9477905958ca363448ab272792d54f14e2a0206452f0504
5
5
  SHA512:
6
- metadata.gz: e54fc9993cf8e2f2b7607aff34b471745374adf349b3ff1702d86e834f9fab3ebdc234ef5a4fef77c337d66e3ac6f1f4cafeb9eb7c1f0c0995b66c3fc3aaaaeb
7
- data.tar.gz: aa3cf6016f2179e9257254090cc1ad37ba3f90e9450d90fb4a42040206f7c68341cbcd6118f1c15541e7b26a45e42643d8f698aa53092c90709c580d26934822
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.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 || 80
109
+ Math.max(`tput cols`.to_i, 80)
107
110
  end
108
111
 
109
112
  def progress_display(executed_examples, total_examples)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "rspec-github-actions-formatter"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["Steve Hill"]
5
5
  spec.email = ["steve@stevehill.xyz"]
6
6
 
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.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-08-07 00:00:00.000000000 Z
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec