irbtools 0.7.0 → 0.7.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.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ begin
13
13
  gem.requirements << 'You need to add http://merbi.st to your gem sources (irb_rocket)'
14
14
  gem.add_dependency 'wirble'
15
15
  gem.add_dependency 'hirb'
16
- gem.add_dependency 'zucker', '>=7'
16
+ gem.add_dependency 'zucker', '>=8'
17
17
  gem.add_dependency 'awesome_print'
18
18
  gem.add_dependency 'g'
19
19
  gem.add_dependency 'clipboard'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000019">capture</a>&nbsp;&nbsp;
90
- <a href="#M000018">streams</a>&nbsp;&nbsp;
89
+ <a href="#M000020">capture</a>&nbsp;&nbsp;
90
+ <a href="#M000019">streams</a>&nbsp;&nbsp;
91
91
  </div>
92
92
  </div>
93
93
 
@@ -122,21 +122,21 @@
122
122
  <div id="methods">
123
123
  <h3 class="section-bar">Public Class methods</h3>
124
124
 
125
- <div id="method-M000018" class="method-detail">
126
- <a name="M000018"></a>
125
+ <div id="method-M000019" class="method-detail">
126
+ <a name="M000019"></a>
127
127
 
128
128
  <div class="method-heading">
129
- <a href="#M000018" class="method-signature">
129
+ <a href="#M000019" class="method-signature">
130
130
  <span class="method-name">streams</span><span class="method-args">()</span>
131
131
  </a>
132
132
  </div>
133
133
 
134
134
  <div class="method-description">
135
135
  <p><a class="source-toggle" href="#"
136
- onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
137
- <div class="method-source-code" id="M000018-source">
136
+ onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
137
+ <div class="method-source-code" id="M000019-source">
138
138
  <pre>
139
- <span class="ruby-comment cmt"># File lib/irbtools.rb, line 168</span>
139
+ <span class="ruby-comment cmt"># File lib/irbtools.rb, line 179</span>
140
140
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">streams</span>
141
141
  {
142
142
  <span class="ruby-identifier">:stdout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@@current_capture</span>.<span class="ruby-identifier">instance_variable_get</span>( <span class="ruby-identifier">:@out</span> ),
@@ -150,21 +150,21 @@
150
150
 
151
151
  <h3 class="section-bar">Public Instance methods</h3>
152
152
 
153
- <div id="method-M000019" class="method-detail">
154
- <a name="M000019"></a>
153
+ <div id="method-M000020" class="method-detail">
154
+ <a name="M000020"></a>
155
155
 
156
156
  <div class="method-heading">
157
- <a href="#M000019" class="method-signature">
157
+ <a href="#M000020" class="method-signature">
158
158
  <span class="method-name">capture</span><span class="method-args">(&amp;block)</span>
159
159
  </a>
160
160
  </div>
161
161
 
162
162
  <div class="method-description">
163
163
  <p><a class="source-toggle" href="#"
164
- onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
165
- <div class="method-source-code" id="M000019-source">
164
+ onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
165
+ <div class="method-source-code" id="M000020-source">
166
166
  <pre>
167
- <span class="ruby-comment cmt"># File lib/irbtools.rb, line 176</span>
167
+ <span class="ruby-comment cmt"># File lib/irbtools.rb, line 187</span>
168
168
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capture</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
169
169
  <span class="ruby-ivar">@@current_capture</span> = <span class="ruby-keyword kw">self</span>
170
170
  <span class="ruby-identifier">original_capture</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
@@ -86,8 +86,8 @@ suggested libraries
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000021">init</a>&nbsp;&nbsp;
90
- <a href="#M000020">libs</a>&nbsp;&nbsp;
89
+ <a href="#M000022">init</a>&nbsp;&nbsp;
90
+ <a href="#M000021">libs</a>&nbsp;&nbsp;
91
91
  </div>
92
92
  </div>
93
93
 
@@ -109,19 +109,19 @@ suggested libraries
109
109
  <div id="methods">
110
110
  <h3 class="section-bar">Public Class methods</h3>
111
111
 
112
- <div id="method-M000021" class="method-detail">
113
- <a name="M000021"></a>
112
+ <div id="method-M000022" class="method-detail">
113
+ <a name="M000022"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000021" class="method-signature">
116
+ <a href="#M000022" class="method-signature">
117
117
  <span class="method-name">init</span><span class="method-args">()</span>
118
118
  </a>
119
119
  </div>
120
120
 
121
121
  <div class="method-description">
122
122
  <p><a class="source-toggle" href="#"
123
- onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000021-source">
123
+ onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000022-source">
125
125
  <pre>
126
126
  <span class="ruby-comment cmt"># File lib/irbtools/configure.rb, line 51</span>
127
127
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
@@ -132,19 +132,19 @@ suggested libraries
132
132
  </div>
133
133
  </div>
134
134
 
135
- <div id="method-M000020" class="method-detail">
136
- <a name="M000020"></a>
135
+ <div id="method-M000021" class="method-detail">
136
+ <a name="M000021"></a>
137
137
 
138
138
  <div class="method-heading">
139
- <a href="#M000020" class="method-signature">
139
+ <a href="#M000021" class="method-signature">
140
140
  <span class="method-name">libs</span><span class="method-args">()</span>
141
141
  </a>
142
142
  </div>
143
143
 
144
144
  <div class="method-description">
145
145
  <p><a class="source-toggle" href="#"
146
- onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
147
- <div class="method-source-code" id="M000020-source">
146
+ onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
147
+ <div class="method-source-code" id="M000021-source">
148
148
  <pre>
149
149
  <span class="ruby-comment cmt"># File lib/irbtools/configure.rb, line 46</span>
150
150
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">libs</span>
@@ -86,7 +86,7 @@ patch method using stdout
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000022">exec</a>&nbsp;&nbsp;
89
+ <a href="#M000023">exec</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -121,21 +121,21 @@ patch method using stdout
121
121
  <div id="methods">
122
122
  <h3 class="section-bar">Public Instance methods</h3>
123
123
 
124
- <div id="method-M000022" class="method-detail">
125
- <a name="M000022"></a>
124
+ <div id="method-M000023" class="method-detail">
125
+ <a name="M000023"></a>
126
126
 
127
127
  <div class="method-heading">
128
- <a href="#M000022" class="method-signature">
128
+ <a href="#M000023" class="method-signature">
129
129
  <span class="method-name">exec</span><span class="method-args">(*args)</span>
130
130
  </a>
131
131
  </div>
132
132
 
133
133
  <div class="method-description">
134
134
  <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000022-source">
135
+ onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
136
+ <div class="method-source-code" id="M000023-source">
137
137
  <pre>
138
- <span class="ruby-comment cmt"># File lib/irbtools.rb, line 186</span>
138
+ <span class="ruby-comment cmt"># File lib/irbtools.rb, line 197</span>
139
139
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
140
140
  <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-constant">IRB</span><span class="ruby-operator">::</span><span class="ruby-constant">CaptureIO</span>.<span class="ruby-identifier">streams</span>[<span class="ruby-identifier">:stdout</span>])
141
141
  <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-constant">IRB</span><span class="ruby-operator">::</span><span class="ruby-constant">CaptureIO</span>.<span class="ruby-identifier">streams</span>[<span class="ruby-identifier">:stderr</span>])
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Wed, 06 Oct 2010 19:14:50 +0200
1
+ Wed, 06 Oct 2010 23:49:55 +0200
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Wed Oct 06 19:13:21 +0200 2010</td>
59
+ <td>Wed Oct 06 21:00:11 +0200 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -114,7 +114,7 @@ source files, tweak them and use them directly as <tt>.irbrc</tt> ;)
114
114
  <h2>Features</h2>
115
115
  <p>
116
116
  See <a
117
- href="http://rbjl.net/40-irbtools-tune-your-irbrc">rbjl.net/40-irbtools-tune-your-irbrc</a>
117
+ href="http://rbjl.net/40-irbtools-release-the-power-of-irb">rbjl.net/40-irbtools-release-the-power-of-irb</a>
118
118
  or read the commented source file: lib/irbtools.rb
119
119
  </p>
120
120
  <h3>Included gems and libraries</h3>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Wed Oct 06 18:35:42 +0200 2010</td>
59
+ <td>Wed Oct 06 21:00:11 +0200 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Wed Oct 06 18:32:15 +0200 2010</td>
59
+ <td>Wed Oct 06 23:45:19 +0200 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -75,6 +75,13 @@ encoding: utf-8
75
75
 
76
76
  </div>
77
77
 
78
+ <div id="requires-list">
79
+ <h3 class="section-bar">Required files</h3>
80
+
81
+ <div class="name-list">
82
+ ruby-debug&nbsp;&nbsp;
83
+ </div>
84
+ </div>
78
85
 
79
86
  </div>
80
87
 
@@ -90,6 +97,7 @@ encoding: utf-8
90
97
  <a href="#M000005">copy_output</a>&nbsp;&nbsp;
91
98
  <a href="#M000004">copy_session_input</a>&nbsp;&nbsp;
92
99
  <a href="#M000006">copy_session_output</a>&nbsp;&nbsp;
100
+ <a href="#M000018">debuger</a>&nbsp;&nbsp;
93
101
  <a href="#M000010">dir</a>&nbsp;&nbsp;
94
102
  <a href="#M000009">ls</a>&nbsp;&nbsp;
95
103
  <a href="#M000002">paste</a>&nbsp;&nbsp;
@@ -316,6 +324,37 @@ Alias for <a href="irbtools_rb.html#M000005">copy_output</a>
316
324
  </div>
317
325
  </div>
318
326
 
327
+ <div id="method-M000018" class="method-detail">
328
+ <a name="M000018"></a>
329
+
330
+ <div class="method-heading">
331
+ <a href="#M000018" class="method-signature">
332
+ <span class="method-name">debuger</span><span class="method-args">()</span>
333
+ </a>
334
+ </div>
335
+
336
+ <div class="method-description">
337
+ <p>
338
+ load debugger, inspired by rdp
339
+ </p>
340
+ <p><a class="source-toggle" href="#"
341
+ onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
342
+ <div class="method-source-code" id="M000018-source">
343
+ <pre>
344
+ <span class="ruby-comment cmt"># File lib/irbtools.rb, line 140</span>
345
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debuger</span>
346
+ <span class="ruby-keyword kw">begin</span>
347
+ <span class="ruby-identifier">require</span> <span class="ruby-value str">'ruby-debug'</span>
348
+ <span class="ruby-identifier">debugger</span>
349
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">LoadError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
350
+ <span class="ruby-identifier">throw</span> <span class="ruby-node">&quot;Sorry, unable to load ruby-debug gem for debugger: #{e}&quot;</span>
351
+ <span class="ruby-keyword kw">end</span>
352
+ <span class="ruby-keyword kw">end</span>
353
+ </pre>
354
+ </div>
355
+ </div>
356
+ </div>
357
+
319
358
  <div id="method-M000010" class="method-detail">
320
359
  <a name="M000010"></a>
321
360
 
@@ -20,7 +20,7 @@
20
20
  <div id="index">
21
21
  <h1 class="section-bar">Methods</h1>
22
22
  <div id="index-entries">
23
- <a href="classes/IRB/CaptureIO.html#M000019">capture (IRB::CaptureIO)</a><br />
23
+ <a href="classes/IRB/CaptureIO.html#M000020">capture (IRB::CaptureIO)</a><br />
24
24
  <a href="files/lib/irbtools_rb.html#M000012">cat (lib/irbtools.rb)</a><br />
25
25
  <a href="files/lib/irbtools_rb.html#M000011">cd (lib/irbtools.rb)</a><br />
26
26
  <a href="files/lib/irbtools_rb.html#M000007">colorize (lib/irbtools.rb)</a><br />
@@ -29,10 +29,11 @@
29
29
  <a href="files/lib/irbtools_rb.html#M000005">copy_output (lib/irbtools.rb)</a><br />
30
30
  <a href="files/lib/irbtools_rb.html#M000004">copy_session_input (lib/irbtools.rb)</a><br />
31
31
  <a href="files/lib/irbtools_rb.html#M000006">copy_session_output (lib/irbtools.rb)</a><br />
32
+ <a href="files/lib/irbtools_rb.html#M000018">debuger (lib/irbtools.rb)</a><br />
32
33
  <a href="files/lib/irbtools_rb.html#M000010">dir (lib/irbtools.rb)</a><br />
33
- <a href="classes/Kernel.html#M000022">exec (Kernel)</a><br />
34
- <a href="classes/Irbtools.html#M000021">init (Irbtools)</a><br />
35
- <a href="classes/Irbtools.html#M000020">libs (Irbtools)</a><br />
34
+ <a href="classes/Kernel.html#M000023">exec (Kernel)</a><br />
35
+ <a href="classes/Irbtools.html#M000022">init (Irbtools)</a><br />
36
+ <a href="classes/Irbtools.html#M000021">libs (Irbtools)</a><br />
36
37
  <a href="files/lib/irbtools_rb.html#M000009">ls (lib/irbtools.rb)</a><br />
37
38
  <a href="files/lib/irbtools_rb.html#M000002">paste (lib/irbtools.rb)</a><br />
38
39
  <a href="files/lib/irbtools_rb.html#M000008">ray (lib/irbtools.rb)</a><br />
@@ -40,7 +41,7 @@
40
41
  <a href="files/lib/irbtools_rb.html#M000013">rq (lib/irbtools.rb)</a><br />
41
42
  <a href="files/lib/irbtools_rb.html#M000016">ruby_version (lib/irbtools.rb)</a><br />
42
43
  <a href="files/lib/irbtools_rb.html#M000014">session_history (lib/irbtools.rb)</a><br />
43
- <a href="classes/IRB/CaptureIO.html#M000018">streams (IRB::CaptureIO)</a><br />
44
+ <a href="classes/IRB/CaptureIO.html#M000019">streams (IRB::CaptureIO)</a><br />
44
45
  <a href="files/lib/irbtools_rb.html#M000017">use (lib/irbtools.rb)</a><br />
45
46
  </div>
46
47
  </div>
data/doc/index.html CHANGED
@@ -5,13 +5,13 @@
5
5
 
6
6
  <!--
7
7
 
8
- irbtools 0.1.0
8
+ irbtools 0.7.1
9
9
 
10
10
 
11
11
  -->
12
12
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
13
  <head>
14
- <title>irbtools 0.1.0
14
+ <title>irbtools 0.7.1
15
15
  </title>
16
16
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
17
17
  </head>
data/irbtools.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{irbtools}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jan Lelis"]
@@ -56,7 +56,7 @@ Gem::Specification.new do |s|
56
56
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
57
  s.add_runtime_dependency(%q<wirble>, [">= 0"])
58
58
  s.add_runtime_dependency(%q<hirb>, [">= 0"])
59
- s.add_runtime_dependency(%q<zucker>, [">= 7"])
59
+ s.add_runtime_dependency(%q<zucker>, [">= 8"])
60
60
  s.add_runtime_dependency(%q<awesome_print>, [">= 0"])
61
61
  s.add_runtime_dependency(%q<g>, [">= 0"])
62
62
  s.add_runtime_dependency(%q<clipboard>, [">= 0"])
@@ -66,7 +66,7 @@ Gem::Specification.new do |s|
66
66
  else
67
67
  s.add_dependency(%q<wirble>, [">= 0"])
68
68
  s.add_dependency(%q<hirb>, [">= 0"])
69
- s.add_dependency(%q<zucker>, [">= 7"])
69
+ s.add_dependency(%q<zucker>, [">= 8"])
70
70
  s.add_dependency(%q<awesome_print>, [">= 0"])
71
71
  s.add_dependency(%q<g>, [">= 0"])
72
72
  s.add_dependency(%q<clipboard>, [">= 0"])
@@ -77,7 +77,7 @@ Gem::Specification.new do |s|
77
77
  else
78
78
  s.add_dependency(%q<wirble>, [">= 0"])
79
79
  s.add_dependency(%q<hirb>, [">= 0"])
80
- s.add_dependency(%q<zucker>, [">= 7"])
80
+ s.add_dependency(%q<zucker>, [">= 8"])
81
81
  s.add_dependency(%q<awesome_print>, [">= 0"])
82
82
  s.add_dependency(%q<g>, [">= 0"])
83
83
  s.add_dependency(%q<clipboard>, [">= 0"])
data/lib/irbtools.rb CHANGED
@@ -64,7 +64,7 @@ Irbtools.libs.each{ |lib|
64
64
 
65
65
  rescue LoadError => err
66
66
  if err.to_s =~ /irb_rocket/ && RubyEngine.mri?
67
- warn "Couldn't load the irb_rocket gem, which is not in the gem dependencies, because it is hosted on a different server.
67
+ warn "Couldn't load the irb_rocket gem.
68
68
  You can install it with: gem install irb_rocket --source http://merbi.st"
69
69
  else
70
70
  warn "Couldn't load an irb library: #{err}"
@@ -136,6 +136,17 @@ def ruby_version(which = nil)
136
136
  end
137
137
  alias use ruby_version
138
138
 
139
+ # load debugger, inspired by rdp
140
+ def debuger
141
+ begin
142
+ require 'ruby-debug'
143
+ debugger
144
+ rescue LoadError => e
145
+ throw "Sorry, unable to load ruby-debug gem for debugger: #{e}"
146
+ end
147
+ end
148
+
149
+
139
150
  # # # # #
140
151
  # irb options
141
152
  IRB.conf[:AUTO_INDENT] = true # simple auto indent
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 0
10
- version: 0.7.0
9
+ - 1
10
+ version: 0.7.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Lelis
@@ -54,10 +54,10 @@ dependencies:
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- hash: 13
57
+ hash: 19
58
58
  segments:
59
- - 7
60
- version: "7"
59
+ - 8
60
+ version: "8"
61
61
  type: :runtime
62
62
  version_requirements: *id003
63
63
  - !ruby/object:Gem::Dependency