pryx 0.8.2 → 0.8.3

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: d7421b2883be187afe07d771287fdf53908136c62cc795a6b4fd6f9030c71d9f
4
- data.tar.gz: ac5aba055317fc12c5bfdf3b0574e5bcffa484547ed5998930779d3e6741046f
3
+ metadata.gz: 9d205e414efc1ea4ac36eff3d1915fb190fb38a031866fd685342e7c1c362867
4
+ data.tar.gz: a6ce936dc497223bc21f08c62e45d3712e48af0b88d23df30c9c80c12cfe4af5
5
5
  SHA512:
6
- metadata.gz: 20417e730575de7f13b4b9a42423300167982385566cf8e987f9e33273bcd45a906968640f71cf4fcc810e52ce71b367bab7393757e5201f9e3f2cb435ee7a61
7
- data.tar.gz: 39e37f2c2a21d2f24c9518e4ffdd9734e2d8fe703c6c99070fb3ebca629ae39b1d7064a5ced9070dc896c4f707ae706779675c67436ee1d3d86e262669c5d147
6
+ metadata.gz: 956f80615dfc6b5e2688860c6a75b1fa24de53ce92cca11fa9b2bc60fb537ee92f543ff272cfc888c7d4d47e5452398d3a214474403bffea4f5ec956e4a8d540
7
+ data.tar.gz: 91cb6614b8fafab6249d9779a5a9d669f700c890000ffd80d8966bfa511d344634b872dd1b883fbef2d17cdae6c821e2926f801803e1642664d9170956b75b31
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,8 +7,7 @@
7
7
  $0 = 'pry'
8
8
 
9
9
  require 'pry'
10
- require 'pryx'
11
- require 'pryx/ap_hack'
10
+ require 'pryx/pryx_cli'
12
11
 
13
12
  # Process command line options and run Pry
14
13
  opts = Pry::CLI.parse_options
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, 2]
4
+ VERSION = [0, 8, 3]
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pryx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Billy.Zheng(zw963)
@@ -227,7 +227,6 @@ executables:
227
227
  - irbx
228
228
  - pry!
229
229
  - pryx
230
- - pryx_rails
231
230
  extensions: []
232
231
  extra_rdoc_files: []
233
232
  files:
@@ -236,7 +235,6 @@ files:
236
235
  - bin/irbx
237
236
  - bin/pry!
238
237
  - bin/pryx
239
- - bin/pryx_rails
240
238
  - lib/pry-byebug.rb
241
239
  - lib/pry-byebug/WARN
242
240
  - lib/pry-byebug/base.rb
@@ -262,6 +260,7 @@ files:
262
260
  - lib/pryx/pry_plugins.rb
263
261
  - lib/pryx/trap_backtrace.rb
264
262
  - lib/pryx/version.rb
263
+ - lib/pryx_cli.rb
265
264
  - lib/pryx_irb.rb
266
265
  homepage: http://github.com/zw963/pryx
267
266
  licenses:
data/bin/pryx_rails DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- # (C) John Mair (banisterfiend)
5
- # MIT license
6
-
7
- $0 = 'pry'
8
-
9
- $LOAD_PATH.unshift('.')
10
- require 'config/environment'
11
-
12
- require 'pry'
13
- require 'pryx'
14
- require 'pryx/ap_hack'
15
-
16
- # Process command line options and run Pry
17
- opts = Pry::CLI.parse_options
18
- Pry::CLI.start(opts)