pryx 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pryx/pry_hack.rb +4 -4
- data/lib/pryx/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: 9e9df58b33aa6664a4dde048917ca07b3bef6657887f375519e55b6af5057233
|
4
|
+
data.tar.gz: 989c5847170b26ddc25b5df9bdefd57b7637fcfc6e35c2aa02ed9233611dfc53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62f46e7621471d1f1392df46414b0ca2b9547787f1fc59eed17fc1b67377bbe33c3a63688a643c0cc8da41b907ba92a4cf2c3df3668b07a4bfb8a404ab21f855
|
7
|
+
data.tar.gz: 74a2b738793ac8000341f0828a9f13f22e54edbbcdb848050e7aa6554c2255d239951466261e7c28831d7a9456cdf2e376a0b77adea0a7ebfa09ca03e1155ffd
|
data/lib/pryx/pry_hack.rb
CHANGED
@@ -30,7 +30,7 @@ class Binding
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
def _irb(_host=nil
|
33
|
+
def _irb(_host=nil)
|
34
34
|
warn '[1m[33mloading irb ...[0m'
|
35
35
|
|
36
36
|
self.irb
|
@@ -49,14 +49,14 @@ module Kernel
|
|
49
49
|
port = 9876
|
50
50
|
end
|
51
51
|
|
52
|
-
pry3(caller, remote
|
52
|
+
pry3(caller, remote: remote, port: port)
|
53
53
|
|
54
54
|
# 这里如果有代码, 将会让 pry! 进入这个方法, 因此保持为空.
|
55
55
|
end
|
56
56
|
|
57
57
|
# 注意:pryr 总是会被拦截。
|
58
58
|
def pryr
|
59
|
-
pry3(caller
|
59
|
+
pry3(caller=2, remote: '0.0.0.0', port: 9876)
|
60
60
|
end
|
61
61
|
|
62
62
|
# 在 pry! 之前如果输入这个,会让下次执行的 pry! 被拦截一次, 而不管之前是否有执行过 pry!
|
@@ -72,7 +72,7 @@ module Kernel
|
|
72
72
|
require 'pry-state'
|
73
73
|
ENV['Pry_was_started'] = 'true'
|
74
74
|
|
75
|
-
pry3(caller, remote
|
75
|
+
pry3(caller, remote: remote, port: port)
|
76
76
|
|
77
77
|
# 这里如果有代码, 将会让 pry! 进入这个方法, 因此保持为空.
|
78
78
|
end
|
data/lib/pryx/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.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-
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|