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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa9b372f101fea5dd0d8fca59d6a9fa82da98625814fc02dc73796a0970c9b85
4
- data.tar.gz: 7b3096e3c32d06718c02e993ad0b9623583f5558dd094e474233de5ffa1c4d07
3
+ metadata.gz: 519d213fad1f867cb1774959815fa400072e78543d0bb13224d2cef1e1fa0b87
4
+ data.tar.gz: 48115f31936ba67a9d2eec3919b22d86f9eb511ab3563cef89c77c99385c9373
5
5
  SHA512:
6
- metadata.gz: 99d96c95c3b6a2b281b10e4ba9c934bab188c064b0ad200fec931611bd4116160ce4c962f60863aabae7a9ef0bc8e9d8c786c0454771a05c8f2c24b99a09a403
7
- data.tar.gz: bbfe5a4d6727e92fcd9ce0a61a56335028c8a28de24c192b146bd1cbefbeac286376ca30e3b5f7c17ed728ca68c1d37afc7954461186136bcf4e836b5feb2b5c
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
@@ -1,3 +1,3 @@
1
1
  module PowerAssert
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
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.6
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-02-23 00:00:00.000000000 Z
11
+ date: 2020-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit