irbtools-more 1.6.0 → 1.6.1

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
  SHA1:
3
- metadata.gz: 88f0223aa55ce8e6eaa02e2d3ec7d6e5423a9774
4
- data.tar.gz: 9c5249c93669e0ca4ccf2805e992ac9b62175b30
3
+ metadata.gz: e8436655f1c3abfe0fa6cb3fdbd2db3104178676
4
+ data.tar.gz: e5fed1caa48b4cb05928fa23feec31a481302131
5
5
  SHA512:
6
- metadata.gz: e7f9be74c83546eda988058c330cb4f3d1443b64eb178540795dd682ad2ed292105cf0b5f44587ef117f5868045e930dacd0c5ef88d023e5e33764fd609f7c67
7
- data.tar.gz: 007ee7fccca8d6e4cd4666694b1dac0fd2992403bb4b9886b5967dd2005fb95788b3daa5aedede0d1826368d00548ef5a3cb9ca58bfe76a01b568d8e2000b381
6
+ metadata.gz: 49cd0d55bba6eeb9a1651659671156c621a17a0222fec8d0716fd48e21c9843d5042b2b3d189a713f9d6e9e7b53f1d5324f3fa3205ff8dd7b93b399ce5470399
7
+ data.tar.gz: 04b77b94ced08eea78a45d0075b9ca3d82dcee13ae14c75f309bf05144af1fd310c729f30d4ee0193fb9e3f3b44417dba6d12269ee2705b21ba75d552867a11d
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.6.1
2
+ * Add binding_of_caller
3
+ * Alias looksee to Object#lp instead of Object#ls
4
+
1
5
  == 1.6.0
2
6
  * (nothing)
3
7
 
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: 'binding.repl'
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
 
@@ -16,5 +16,6 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency 'irbtools', '~> 1.6'
17
17
  s.add_dependency 'bond', '~> 0.5'
18
18
  s.add_dependency 'looksee' , '~> 2.0'
19
+ s.add_dependency 'binding_of_caller', '~> 0.7'
19
20
  end
20
21
 
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 = !(defined? Irbtools)
2
+ standalone = !(defined? Irbtools)
3
3
 
4
4
  # define version
5
5
  module Irbtools
6
6
  module More
7
- VERSION = '1.6.0'
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 load path
28
- Irbtools.add_library 'looksee', :late_thread => :c do
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 ll l end
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.0
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.