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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f103fdc3949130cba0098bf43e28c8de891a98a45ba2cc47a39e3acceae96ba4
4
- data.tar.gz: f923206b67cba8f0c8c6932a6f4ebcbb69348ecca558b1a255eac233de74ebab
3
+ metadata.gz: 58281fe18bf82b0ce172d6cab39d5cc3086b4b4a98114df9b5ea78f82929843e
4
+ data.tar.gz: 881dc1ed1704fecf79a36150cc06f49310b6d0d65713625f950e17ef215cb4b5
5
5
  SHA512:
6
- metadata.gz: 9f315016c8cebcefc7cb0c3de0c24ca16018c42f0dbdf63595138ada13152cc5ccfdc0ce80349265ed0a4e45d949c0ac421780fd5e0dc347983eceaf0bade22a
7
- data.tar.gz: df142f61ddb4d41660c1f895a1ba5c4371be097166b991c71016f3a1b54ef77f16824716c88aa02763dcfda770cfb41e9c33f16afe8b0b54929da4a5f8c7d7a8
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 command from command line, rescue, kill-pry-rescue, pryx, irbx, pry!
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
@@ -7,6 +7,6 @@
7
7
  #
8
8
 
9
9
  require 'irb'
10
- require 'pryx_irb'
10
+ require 'pryx_cli'
11
11
 
12
12
  IRB.start(__FILE__)
data/bin/pryx CHANGED
@@ -7,7 +7,7 @@
7
7
  $0 = 'pry'
8
8
 
9
9
  require 'pry'
10
- require 'pryx'
10
+ require 'pryx_cli'
11
11
 
12
12
  # Process command line options and run Pry
13
13
  opts = Pry::CLI.parse_options
@@ -0,0 +1,13 @@
1
+ require 'awesome_print'
2
+
3
+ # AwesomePrint.defaults = {
4
+ # index: false
5
+ # }
6
+
7
+ if defined? AwesomePrint
8
+ if defined? Pry
9
+ AwesomePrint.pry!
10
+ else
11
+ AwesomePrint.irb!
12
+ end
13
+ end
@@ -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 'awesome_print'
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pryx
4
- VERSION = [0, 8, 1]
4
+ VERSION = [0, 8, 4]
5
5
 
6
6
  class << VERSION
7
7
  include Comparable
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.1
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-07 00:00:00.000000000 Z
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: