pryx 0.8.1 → 0.8.4
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 +4 -4
- data/README.md +2 -2
- data/bin/irbx +1 -1
- data/bin/pryx +1 -1
- data/lib/pryx/ap_hack.rb +13 -0
- data/lib/pryx/common_plugins.rb +1 -14
- data/lib/pryx/version.rb +1 -1
- data/lib/pryx_cli.rb +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58281fe18bf82b0ce172d6cab39d5cc3086b4b4a98114df9b5ea78f82929843e
|
4
|
+
data.tar.gz: 881dc1ed1704fecf79a36150cc06f49310b6d0d65713625f950e17ef215cb4b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c31446ae971be744aa6f1bd7aa6b96ff8a06f7991e22cd3b580e51fde9fd969072c06a26e661e07a79478b9fa73b90c930b7f30244a6b54033c42f2c79875df
|
7
|
+
data.tar.gz: 1e2fcc909fbe349b3d7d46490900f9cd9b81ba56294fe882f4ef7c22267f909a9651e6611d5c224d33ad2d4135cd8ec540a4017bb3b686966f25b585ddf21354
|
data/README.md
CHANGED
@@ -123,12 +123,12 @@ but above plugins and libraries all correct configured.
|
|
123
123
|
|
124
124
|
we have another Kernel#pry?, which enable `pry-state` automatically, see [pry-state](https://github.com/SudhagarS/pry-state)
|
125
125
|
|
126
|
-
### Add
|
126
|
+
### Add CLI command, rescue, kill-pry-rescue, pryx, irbx, pry!
|
127
127
|
|
128
128
|
`rescue` and `kill-pry-rescue` come from `pry-rescue` gem, it not load by default, but you can use rescue command from command line directly.
|
129
129
|
see [pry-rescue](https://github.com/ConradIrwin/pry-rescue)
|
130
130
|
|
131
|
-
pryx is same as pry, but, with plugins and libraries correct configured.
|
131
|
+
pryx is same as pry, but, with plugins and libraries correct configured, it will load `./config/environment.rb` if this file exists.
|
132
132
|
|
133
133
|
irbx is same things for irb.
|
134
134
|
|
data/bin/irbx
CHANGED
data/bin/pryx
CHANGED
data/lib/pryx/ap_hack.rb
ADDED
data/lib/pryx/common_plugins.rb
CHANGED
@@ -5,20 +5,7 @@ require 'clipboard'
|
|
5
5
|
# See https://github.com/oggy/looksee/issues/57
|
6
6
|
# 但是,ap_hack 必须放到 break_hack 前面,调换顺序,上面的 hack 失效。
|
7
7
|
# WARN: 下面两行 require 代码顺序不要换。
|
8
|
-
require '
|
9
|
-
|
10
|
-
# AwesomePrint.defaults = {
|
11
|
-
# index: false
|
12
|
-
# }
|
13
|
-
|
14
|
-
if defined? AwesomePrint
|
15
|
-
if defined? Pry
|
16
|
-
AwesomePrint.pry!
|
17
|
-
else
|
18
|
-
AwesomePrint.irb!
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
8
|
+
require 'pryx/ap_hack'
|
22
9
|
require 'break'
|
23
10
|
Pry.commands.alias_command 'n', 'next'
|
24
11
|
Pry.commands.alias_command 's', 'step'
|
data/lib/pryx/version.rb
CHANGED
data/lib/pryx_cli.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'clipboard'
|
2
|
+
|
3
|
+
require 'pryx/ap_hack'
|
4
|
+
|
5
|
+
# This require is needed, because can't require looksee in method when use with bundler.
|
6
|
+
# bundler remove looksee from $LOAD_PATH when start with rails.
|
7
|
+
require 'looksee'
|
8
|
+
require 'pryx/looksee_hack'
|
9
|
+
|
10
|
+
require 'pryx'
|
11
|
+
|
12
|
+
if File.exist? 'config/environment.rb'
|
13
|
+
$LOAD_PATH.unshift('.')
|
14
|
+
puts "\033[0;33mLoading with ./config/environment.rb ...\033[0m"
|
15
|
+
require 'config/environment'
|
16
|
+
end
|
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.8.
|
4
|
+
version: 0.8.4
|
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-05-
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -249,6 +249,7 @@ files:
|
|
249
249
|
- lib/pry-state/printer.rb
|
250
250
|
- lib/pry-yes.rb
|
251
251
|
- lib/pryx.rb
|
252
|
+
- lib/pryx/ap_hack.rb
|
252
253
|
- lib/pryx/background.rb
|
253
254
|
- lib/pryx/common_plugins.rb
|
254
255
|
- lib/pryx/drip.wav
|
@@ -259,6 +260,7 @@ files:
|
|
259
260
|
- lib/pryx/pry_plugins.rb
|
260
261
|
- lib/pryx/trap_backtrace.rb
|
261
262
|
- lib/pryx/version.rb
|
263
|
+
- lib/pryx_cli.rb
|
262
264
|
- lib/pryx_irb.rb
|
263
265
|
homepage: http://github.com/zw963/pryx
|
264
266
|
licenses:
|