pryx 0.8.2 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7421b2883be187afe07d771287fdf53908136c62cc795a6b4fd6f9030c71d9f
4
- data.tar.gz: ac5aba055317fc12c5bfdf3b0574e5bcffa484547ed5998930779d3e6741046f
3
+ metadata.gz: e1f968aa8906d4c846907eca6e1f0c9b0729c191e3fbe917876b45a4139ef644
4
+ data.tar.gz: a078c90f55368509ba6efac19615d2fdad3cb98733313bb7e30d12288b58ffb8
5
5
  SHA512:
6
- metadata.gz: 20417e730575de7f13b4b9a42423300167982385566cf8e987f9e33273bcd45a906968640f71cf4fcc810e52ce71b367bab7393757e5201f9e3f2cb435ee7a61
7
- data.tar.gz: 39e37f2c2a21d2f24c9518e4ffdd9734e2d8fe703c6c99070fb3ebca629ae39b1d7064a5ced9070dc896c4f707ae706779675c67436ee1d3d86e262669c5d147
6
+ metadata.gz: 0436364c1e5b81852c0cf61ebf725b1ec3f8a4fa1c0743dbcffa970c01f9ac1a1b4902d447ce0a159769615c31de9a4a1de3291c1ecf3e13069644bbac00cac3
7
+ data.tar.gz: 7f88e7b33521041215279acdd98b383f9516ed83388b2298048a3e9aed7c35112c7e08fc57961d62a6e4d069cc420ca99fd5fc79e3becfdb6d9179b8b1d9e6c4
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,8 @@
7
7
  $0 = 'pry'
8
8
 
9
9
  require 'pry'
10
- require 'pryx'
11
- require 'pryx/ap_hack'
10
+ require 'pryx/pry_plugins'
11
+ require 'pryx_cli'
12
12
 
13
13
  # Process command line options and run Pry
14
14
  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, 5]
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.5
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)