power_assert 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/power_assert/inspector.rb +1 -1
- data/lib/power_assert/version.rb +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: 519d213fad1f867cb1774959815fa400072e78543d0bb13224d2cef1e1fa0b87
|
4
|
+
data.tar.gz: 48115f31936ba67a9d2eec3919b22d86f9eb511ab3563cef89c77c99385c9373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cec25070021c9801d2ea897b785d6b3869479b77e91b8be8fe71c40a36c10d87a03c8a3b9d720c6fcd2f7b83a34b54d49b63875186f903cdca68949e67e6d4a3
|
7
|
+
data.tar.gz: 0feee5f431e3dbd5aba7e70992400eb189101900ea9c0cf8554f285b6da30c4f601f47d033ed90702f2398b056ba0bf29b3e8aec7a2bc0fc44d42ff2426fcf5a
|
@@ -43,7 +43,7 @@ module PowerAssert
|
|
43
43
|
def inspect
|
44
44
|
if PowerAssert.configuration._colorize_message
|
45
45
|
if PowerAssert.configuration._use_pp
|
46
|
-
width = [Pry::Terminal.width! - 1 - @indent, 10].max
|
46
|
+
width = [(defined?(Pry::Terminal) ? Pry::Terminal.width! : Pry.new(output: StringIO.new).output.width) - 1 - @indent, 10].max
|
47
47
|
Pry::ColorPrinter.pp(@value, '', width)
|
48
48
|
else
|
49
49
|
Pry::Code.new(@value.inspect).highlighted
|
data/lib/power_assert/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: power_assert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuki Tsujimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|