pry-byebug-power_assert 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
- SHA1:
3
- metadata.gz: 210d451c6d6dbd6579c15fe4d654c0abf201f39c
4
- data.tar.gz: 10b71188f9948003c5189075c41786bfff906001
2
+ SHA256:
3
+ metadata.gz: bf5b5dfce349024f3930a14e778b6935b8e3742a02e1c68b49e7ba449ed40ac5
4
+ data.tar.gz: f4b87b47ca23e5118e34144d5ed87c3b3d11d6880ebab35df2b54f329282aedf
5
5
  SHA512:
6
- metadata.gz: 9bc856ee22a94d56fd2ef78a99f1a0f4394b50b3c9e3dc808d5ecc538d3f8c6d6ca8a7b338dea773e8e6cd1519bd6b603a2a87e8f9bbe8df9f88268b1b5182ee
7
- data.tar.gz: 2bc7c90fd30a24f8f5381868d3c9fe10f751dfd07e637cf43611f55dcae6a096cbbe7d7d40b918078182c2e7654aa5509f1e2605db745ee4c30886d4d2abae60
6
+ metadata.gz: cd60b32cc5f6802b9b64f4eca252f24a0b75ff0ada41180aec23f2fc7f9ea3b21fbe008137273438953c43b03906d93d6bfb089405b7365d72dbbcde9fe70ea9
7
+ data.tar.gz: fbda38d971a0736c81fd50ba88099968dbd389eadc0bba29bb368731f4cec54e11795c737eac5ea72bee403596259a8704ee626beadd076aaf05c1d1e7e75487
data/.travis.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.3
5
- - 2.4.0
4
+ - 2.4.9
5
+ - 2.5.7
6
+ - 2.6.5
7
+ - 2.7.0
6
8
  - ruby-head
7
9
  matrix:
8
10
  allow_failures:
9
11
  - rvm: ruby-head
10
- before_install:
11
- - gem update bundler
data/BSDL CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2017 Kazuki Tsujimoto, All rights reserved.
1
+ Copyright (C) 2017 Kazuki Tsujimoto
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without
4
4
  modification, are permitted provided that the following conditions
data/COPYING CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2017 Kazuki Tsujimoto, All rights reserved.
1
+ Copyright (C) 2017 Kazuki Tsujimoto
2
2
 
3
3
  You can redistribute it and/or modify it under either the terms of the
4
4
  2-clause BSDL (see the file BSDL), or the conditions below:
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pry::Byebug::PowerAssert
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/k-tsj/power_assert.png?branch=master)](http://travis-ci.org/k-tsj/pry-byebug-power_assert)
3
+ [![Build Status](https://secure.travis-ci.org/k-tsj/pry-byebug-power_assert.png?branch=master)](http://travis-ci.org/k-tsj/pry-byebug-power_assert)
4
4
 
5
5
  ## About
6
6
  pry-byebug-power_assert shows Power Assert style inspection message when you run 'next' command of pry-byebug.
@@ -1,6 +1,6 @@
1
1
  # pry/byebug/power_assert.rb
2
2
  #
3
- # Copyright (C) 2017 Kazuki Tsujimoto, All rights reserved.
3
+ # Copyright (C) 2017 Kazuki Tsujimoto
4
4
 
5
5
  require "pry/byebug/power_assert/version"
6
6
  require "pry/byebug/power_assert/core_ext"
@@ -10,7 +10,7 @@ ensure
10
10
  end
11
11
 
12
12
  module PowerAssert
13
- IGNORED_LIB_DIRS[Pry::Byebug::PowerAssert] = __dir__
13
+ INTERNAL_LIB_DIRS[Pry::Byebug::PowerAssert] = File.dirname(caller_locations(1, 1).first.path)
14
14
  end
15
15
 
16
16
  module Byebug
@@ -29,7 +29,8 @@ module Byebug
29
29
  def resume_pry
30
30
  if @prev_power_assert_context
31
31
  begin
32
- sep = Pry::Helpers::Text.green('-' * (Pry::Terminal.width! - 1))
32
+ w = (defined?(Pry::Terminal) ? Pry::Terminal.width! : Pry.new(output: StringIO.new).output.width) - 1
33
+ sep = Pry::Helpers::Text.green('-' * w)
33
34
  output.puts sep
34
35
  output.puts @prev_power_assert_context.message
35
36
  output.puts sep
@@ -1,7 +1,7 @@
1
1
  class Pry
2
2
  module Byebug
3
3
  module PowerAssert
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-byebug-power_assert
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
  - Kazuki Tsujimoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-28 00:00:00.000000000 Z
11
+ date: 2020-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug
@@ -126,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubyforge_project:
130
- rubygems_version: 2.6.8
129
+ rubygems_version: 3.1.2
131
130
  signing_key:
132
131
  specification_version: 4
133
132
  summary: Extend pry-byebug with power_assert