pryx 0.6.0 → 0.6.1

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: 83cd7279138aacd2a29d974c18db5fd6d1a6bd6aa9ed6012167e88771c50d13e
4
- data.tar.gz: 5d34a1c16ccaa9abfed32635614262e44414d5bd48b26e5ffc25614b1bf623c8
3
+ metadata.gz: '09a8d65224c56092b01d8230556c4ef522637b1b6e1932c5333ce018c3f0ce93'
4
+ data.tar.gz: 5426012f47fa266763061e41ce8e8d45a34ab61ad0cf70de517a98312a40722b
5
5
  SHA512:
6
- metadata.gz: 96c64a8e59687991d2c9ede2973ef32f97549c4b8aaa8e60f0993fa5202ec6dc62267e73e3bfb88404fe1b0424622a4224c60b2ce2d604799c4d2b50128d911b
7
- data.tar.gz: 27b2f23ad20df15b0330cb929def9ead48d725c0743ad2174521dae7622e97ad8aed6329df162138443f18ab6c590f972d952b6dd431b5102888cbb1eff4b7a7
6
+ metadata.gz: 3df7840a906cbe572d6c60bda02e17b5ad5dff15568e34307a031ac7f1fdc9416445e55f62197983d7e983d769be4dc484ee722468545457e4f60c3cb6907878
7
+ data.tar.gz: 864ab3c3f5ec04563fda87ccfc7f3ad25097a75495bc977a613e123de0a2228ad4afea4e1c0b1d650e0230b860cf55f654345948ab9081cffad3f791a01064fb
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Pryx [![Build Status](https://travis-ci.com/zw963/pryx.svg?branch=master)](https://travis-ci.com/zw963/pryx) [![Gem Version](https://badge.fury.io/rb/pryx.svg)](http://badge.fury.io/rb/pryx)
1
+ # Pryx [![Build Status](https://travis-ci.com/zw963/pryx.svg?branch=master)](https://app.travis-ci.com/github/zw963/pryx)[![Gem Version](https://badge.fury.io/rb/pryx.svg)](http://badge.fury.io/rb/pryx)![](https://ruby-gem-downloads-badge.herokuapp.com/pryx?type=total)
2
2
 
3
3
  Three Virtues of a Programmer: Laziness, Impatience, and Hubris. -- Larry Wall, the author of Perl Programming language.
4
4
 
@@ -143,8 +143,6 @@ But, you should only use it in development, though, it was tested is run in cont
143
143
 
144
144
  1. `break` not work well if you add more than one break point, but still use `next` goto the next break point,
145
145
  See https://github.com/gsamokovarov/break/issues/12
146
- 2. because `pry!` use binding.of\_caller, when work with pry-stack\_explorer up command, you can see two
147
- more stack get pushed. so, you have to up 3 times instead 1 time in normal case.
148
146
 
149
147
  ## Support
150
148
 
@@ -0,0 +1,12 @@
1
+ module PryStackExplorer
2
+ module FrameManagerHack
3
+ def initialize(bindings, _pry)
4
+ super
5
+ self.bindings = bindings.reject do |b|
6
+ b.source_location[0].match? %r{/pryx/pry_hack.rb}
7
+ end
8
+ end
9
+ end
10
+
11
+ FrameManager.prepend FrameManagerHack
12
+ end
@@ -15,6 +15,7 @@ Pry::Commands.alias_command 'aa', 'aa_ancestors'
15
15
  # 这个必须在最后才有效, 但是目前存在一个问题,就是会将 pry3, pry! 加入 stacks
16
16
  # stack 显示 stack 的列表,frame 显示当前所在 stack, stack N 也可以根据数字跳转到 N
17
17
  require 'pry-stack_explorer' # Support: up, down, bottom, top, stack, frame
18
+ require 'pryx/pry-stack_explorer_hack'
18
19
 
19
20
  Pry::Commands.block_command 'cc', 'Continue, but stop in pry! breakpoint' do
20
21
  Pry.instance_variable_set(:@initial_session, true)
data/lib/pryx/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pryx
4
- VERSION = [0, 6, 0]
4
+ VERSION = [0, 6, 1]
5
5
 
6
6
  class << VERSION
7
7
  include Comparable
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pryx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Billy.Zheng(zw963)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-23 00:00:00.000000000 Z
11
+ date: 2022-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -243,6 +243,7 @@ files:
243
243
  - lib/pryx/drip.wav
244
244
  - lib/pryx/irb_hack.rb
245
245
  - lib/pryx/looksee_hack.rb
246
+ - lib/pryx/pry-stack_explorer_hack.rb
246
247
  - lib/pryx/pry_hack.rb
247
248
  - lib/pryx/pry_plugins.rb
248
249
  - lib/pryx/trap_backtrace.rb