luna-rspec-formatters 3.6.0 → 3.7.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
  SHA1:
3
- metadata.gz: 54213e7a9dc1f36b58abc6d10b66caa4dfa65ece
4
- data.tar.gz: 8264856e93d164b8fcc469ab6c249042a40e9f38
3
+ metadata.gz: 880afa1a9b854fb32d971de96572c3d356c7871e
4
+ data.tar.gz: 5a88f1b3e848b03018b7c77a0142e9ac66f9d823
5
5
  SHA512:
6
- metadata.gz: 356261d9b6250deb14140bae244e1f894734dc594163b5f39a6bdfb67b6309b955c7140cf6a7a63015f82ba8091121b1502767f07b72defc7d6fd509b26da726
7
- data.tar.gz: f80f7ecccfce971daba6558f243a2003bd5b3981325c31b98e888171a12dd23757edc05a20a9addc5befb416dc157033439009a55dbe44ef9d5a75321438bf24
6
+ metadata.gz: cf623d3bbc7914de60f2a129d57bf78fdea54283666da49d6f077ce94136b870abb89dae163c3d27a2139f620ff7f30446870f11b38abef76092ed920556ddac
7
+ data.tar.gz: 523140a7e9cb9d7572ffaacca6d62546cb5d2f442b20a579ea8eb5beb3c65a9192ca422abba07bca76e1528b67c0ea6bd79694b0868a5adaafb3a47e6fde6104
@@ -24,7 +24,10 @@ module Luna
24
24
 
25
25
  def allowed_cols
26
26
  @cols ||= begin
27
- (IO.console.winsize.last / 2).floor - 1
27
+ val = IO.console.winsize.last / 4
28
+ val = Float::INFINITY unless val >= 24
29
+ val = val.floor if val >= 24
30
+ val
28
31
  end
29
32
  end
30
33
 
@@ -7,7 +7,7 @@
7
7
  module Luna
8
8
  module Rspec
9
9
  module Formatters
10
- VERSION = "3.6.0"
10
+ VERSION = "3.7.0"
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luna-rspec-formatters
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell