irbtools-more 1.6.0 → 1.6.1
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/CHANGELOG +4 -0
- data/README.rdoc +2 -2
- data/irbtools-more.gemspec +1 -0
- data/lib/irbtools/more.rb +11 -8
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8436655f1c3abfe0fa6cb3fdbd2db3104178676
|
4
|
+
data.tar.gz: e5fed1caa48b4cb05928fa23feec31a481302131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49cd0d55bba6eeb9a1651659671156c621a17a0222fec8d0716fd48e21c9843d5042b2b3d189a713f9d6e9e7b53f1d5324f3fa3205ff8dd7b93b399ce5470399
|
7
|
+
data.tar.gz: 04b77b94ced08eea78a45d0075b9ca3d82dcee13ae14c75f309bf05144af1fd310c729f30d4ee0193fb9e3f3b44417dba6d12269ee2705b21ba75d552867a11d
|
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= irbtools-more
|
2
2
|
|
3
|
-
<tt>irbtools-more</tt> adds more IRB gems which may not build out-of-the-box. Currently included: bond for better auto-completion and looksee for great method introspection. See the {irbtools readme}[https://github.com/janlelis/irbtools] for details.
|
3
|
+
<tt>irbtools-more</tt> adds more IRB gems which may not build out-of-the-box. Currently included: <tt>bond</tt> for better auto-completion and <tt>looksee</tt> for great method introspection. It also adds the <tt>binding_of_caller</tt> gem to enable starting IRB by just calling <tt>repl</tt> anywhere in your code. See the {irbtools readme}[https://github.com/janlelis/irbtools] for details.
|
4
4
|
|
5
5
|
|
6
6
|
== Setup
|
@@ -26,7 +26,7 @@ If it does not exist, just create a new one. It's possible to modify, which libr
|
|
26
26
|
|
27
27
|
In you <tt>Gemfile</tt>, you will need to add:
|
28
28
|
|
29
|
-
gem 'irbtools-more', require: '
|
29
|
+
gem 'irbtools-more', require: 'debugging/repl'
|
30
30
|
|
31
31
|
Another way is to add a {debundle hack}[https://github.com/janlelis/debundle.rb] at the beginning of your <tt>~/.irbrc</tt>.
|
32
32
|
|
data/irbtools-more.gemspec
CHANGED
data/lib/irbtools/more.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# check if loaded_directly to decide if Irbtools.init should be called
|
2
|
-
standalone =
|
2
|
+
standalone = !(defined? Irbtools)
|
3
3
|
|
4
4
|
# define version
|
5
5
|
module Irbtools
|
6
6
|
module More
|
7
|
-
VERSION = '1.6.
|
7
|
+
VERSION = '1.6.1'
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -24,15 +24,18 @@ Irbtools.add_library :bond, :thread => 'more_2' do
|
|
24
24
|
Bond.start :gems => %w[irbtools]
|
25
25
|
end
|
26
26
|
|
27
|
-
# Object#l method for inspecting its
|
28
|
-
Irbtools.add_library 'looksee', :
|
27
|
+
# Object#l method for inspecting its lookup path
|
28
|
+
Irbtools.add_library 'looksee', late_thread: :c do
|
29
29
|
Looksee::ObjectMixin.rename :l
|
30
|
-
class Object; alias
|
30
|
+
class Object; alias lp l; end
|
31
31
|
end
|
32
32
|
|
33
|
+
# repl method
|
34
|
+
Irbtools.add_library 'binding_of_caller', thread: 'more_3'
|
35
|
+
Irbtools.add_library 'debugging/repl', thread: 'more_3'
|
36
|
+
|
37
|
+
|
33
38
|
# load now
|
34
|
-
if standalone
|
35
|
-
Irbtools.start
|
36
|
-
end
|
39
|
+
Irbtools.start if standalone
|
37
40
|
|
38
41
|
# J-_-L
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irbtools-more
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: binding_of_caller
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.7'
|
55
69
|
description: irbtools-more adds bond and looksee to IRB (Gems that use core extensions).
|
56
70
|
Simply put a require "irbtools/more" in the .irbrc file in your home directory to
|
57
71
|
get started.
|