rspec-github-actions-formatter 0.1.2 → 0.1.3

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: 9540a0926c5e3a54ef1e6a4a5e02b21ffe7cb44aadca3bf517d0a5a3cea130da
4
- data.tar.gz: c0191b7877d4f793a9477905958ca363448ab272792d54f14e2a0206452f0504
3
+ metadata.gz: 83f8cb3afb3f0d1c36caf54d13d34da01c2592322a7d97992df2a35e8dc58dbb
4
+ data.tar.gz: 54dd2bf18b3e700ff868d6ce582ca78044b0f993b261ed5c6cc5549549c0515c
5
5
  SHA512:
6
- metadata.gz: 9636aebf60fb3a9d7f6fca7323ac1d29ff5d30fa71fd3ec109abf4ec79f9a1abb155c08b3e6b464bbd4c3fe01c7a58fe8a7c9cb9f62e18098f2adb5c167afa7d
7
- data.tar.gz: 1515b3563ead73dfb414ecb0167648436378507c17157a4bf2f96ea15ea4e65363b445b2e8beac7ad7b4866bbd8a1b8c69d2b9729beaa478331dcecbc2fb8f8b
6
+ metadata.gz: 0d0c64b2b42d7a461923bfea3009b31015b3d231177492e200b1680b2f3683729dd1f31fb5ca824d375173cdbb85038567e97101703b86222a832bcbd7a6a78f
7
+ data.tar.gz: 502f269286bfb9bdf79be6c8bc92d2e0b5aa3f22ea91927026806ac858054cc8397f863df888a2650007e18c7e2dad297d9c251554bbfec7da81b69378065f47
@@ -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.2"
4
+ VERSION = "0.1.3"
5
5
 
6
6
  RSpec::Core::Formatters.register self, :dump_pending, :dump_failures, :example_passed, :example_pending, :example_failed, :example_started, :start
7
7
 
@@ -106,7 +106,7 @@ class RspecGithubActionsFormatter < RSpec::Core::Formatters::ProgressFormatter
106
106
  # GitHub Actions seems to set it to something silly like 40 characters, and I
107
107
  # haven't yet figured out why. Help welcome!
108
108
  def terminal_width
109
- Math.max(`tput cols`.to_i, 80)
109
+ [`tput cols`.to_i, 80].max
110
110
  end
111
111
 
112
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.2"
3
+ spec.version = "0.1.3"
4
4
  spec.authors = ["Steve Hill"]
5
5
  spec.email = ["steve@stevehill.xyz"]
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-github-actions-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hill