irbtools 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = irbtools
2
2
 
3
- This is a meta gem which installs great irb gems for you and configures your irb.
3
+ This is a meta gem which installs some great irb gems and configures your irb.
4
4
 
5
5
  == Setup
6
6
 
@@ -15,18 +15,21 @@ This is a meta gem which installs great irb gems for you and configures your irb
15
15
  To use it, put the following in your <tt>~/.irbrc</tt> file (this file is loaded everytime you start an irb):
16
16
 
17
17
  require 'rubygems' # only needed in 1.8
18
-
19
18
  require 'irbtools'
20
- # Irbtools.libs is a set of libraries and gems which get loaded. You can manually add or remove some.
21
- Irbtools.load
22
19
 
23
20
  If it does not exists, just create a new one.
24
21
 
25
- You could also just read and copy the irbtools.rb and irbtools/init.rb source files, tweak them and use them directly as <tt>.irbrc</tt>
22
+ It's is also possible to modify, which libraries get loaded:
23
+
24
+ require 'irbtools/configure'
25
+ # Irbtools.libs is an array of libraries and gems which get loaded. You can manually add or remove some.
26
+ Irbtools.init
27
+
28
+ You could also just read and copy the irbtools/configure.rb and irbtools.rb source files, tweak them and use them directly as <tt>.irbrc</tt> ;)
26
29
 
27
30
  == Features
28
31
 
29
- See http;//rbjl.net/40 or read the commented source file: lib/irbtools.rb
32
+ See http://rbjl.net/40 or read the commented source file: lib/irbtools.rb
30
33
 
31
34
  === Included gems and libraries
32
35
 
@@ -43,10 +46,11 @@ See http;//rbjl.net/40 or read the commented source file: lib/irbtools.rb
43
46
  * coderay[http://coderay.rubychan.de/] some nice colorful display ;)
44
47
  * irb_rocket[http://merbi.st/plugins/22] put result as comment instead of a new line!
45
48
 
46
- == TODO
49
+ == Bugs / TODO
47
50
 
48
51
  * Make guessmethod 1.9 compatible
49
52
  * Fix Clipboard Windows issues
53
+ * Fix irb_rockets general stdout problem
50
54
  * ...
51
55
 
52
56
  == Copyright
data/Rakefile CHANGED
@@ -5,8 +5,8 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "irbtools"
8
- gem.summary = %Q{irbtools is a meta gem which installs some great irb gems for you and configures your irb.}
9
- gem.description = %Q{irbtools is a meta gem which installs some great irb gems for you and configures your irb. Simply put a require 'irbtools' in the .irbrc file in your home directory.}
8
+ gem.summary = %Q{irbtools is a meta gem which installs some great irb gems and configures your irb.}
9
+ gem.description = %Q{irbtools is a meta gem which installs some great irb gems and configures your irb. Simply put a require 'irbtools' in the .irbrc file in your home directory.}
10
10
  gem.email = "mail@janlelis.de"
11
11
  gem.homepage = "http://github.com/janlelis/irbtools"
12
12
  gem.authors = ["Jan Lelis"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.1.0
@@ -0,0 +1,111 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: IRB</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">IRB</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/irbtools_rb.html">
59
+ lib/irbtools.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+
80
+ </div>
81
+
82
+
83
+ <!-- if includes -->
84
+
85
+ <div id="section">
86
+
87
+ <div id="class-list">
88
+ <h3 class="section-bar">Classes and Modules</h3>
89
+
90
+ Class <a href="IRB/CaptureIO.html" class="link">IRB::CaptureIO</a><br />
91
+
92
+ </div>
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <!-- if method_list -->
101
+
102
+
103
+ </div>
104
+
105
+
106
+ <div id="validator-badges">
107
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
108
+ </div>
109
+
110
+ </body>
111
+ </html>
@@ -0,0 +1,189 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: IRB::CaptureIO</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">IRB::CaptureIO</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/irbtools_rb.html">
59
+ lib/irbtools.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000019">capture</a>&nbsp;&nbsp;
90
+ <a href="#M000018">streams</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+
99
+ <div id="section">
100
+
101
+
102
+
103
+ <div id="aliases-list">
104
+ <h3 class="section-bar">External Aliases</h3>
105
+
106
+ <div class="name-list">
107
+ <table summary="aliases">
108
+ <tr class="top-aligned-row context-row">
109
+ <td class="context-item-name">capture</td>
110
+ <td>-&gt;</td>
111
+ <td class="context-item-value">original_capture</td>
112
+ </tr>
113
+ </table>
114
+ </div>
115
+ </div>
116
+
117
+
118
+
119
+
120
+
121
+ <!-- if method_list -->
122
+ <div id="methods">
123
+ <h3 class="section-bar">Public Class methods</h3>
124
+
125
+ <div id="method-M000018" class="method-detail">
126
+ <a name="M000018"></a>
127
+
128
+ <div class="method-heading">
129
+ <a href="#M000018" class="method-signature">
130
+ <span class="method-name">streams</span><span class="method-args">()</span>
131
+ </a>
132
+ </div>
133
+
134
+ <div class="method-description">
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">
138
+ <pre>
139
+ <span class="ruby-comment cmt"># File lib/irbtools.rb, line 168</span>
140
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">streams</span>
141
+ {
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> ),
143
+ <span class="ruby-identifier">:stderr</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">:@err</span> ),
144
+ }
145
+ <span class="ruby-keyword kw">end</span>
146
+ </pre>
147
+ </div>
148
+ </div>
149
+ </div>
150
+
151
+ <h3 class="section-bar">Public Instance methods</h3>
152
+
153
+ <div id="method-M000019" class="method-detail">
154
+ <a name="M000019"></a>
155
+
156
+ <div class="method-heading">
157
+ <a href="#M000019" class="method-signature">
158
+ <span class="method-name">capture</span><span class="method-args">(&amp;block)</span>
159
+ </a>
160
+ </div>
161
+
162
+ <div class="method-description">
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">
166
+ <pre>
167
+ <span class="ruby-comment cmt"># File lib/irbtools.rb, line 176</span>
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
+ <span class="ruby-ivar">@@current_capture</span> = <span class="ruby-keyword kw">self</span>
170
+ <span class="ruby-identifier">original_capture</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
171
+ <span class="ruby-keyword kw">end</span>
172
+ </pre>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+
178
+ </div>
179
+
180
+
181
+ </div>
182
+
183
+
184
+ <div id="validator-badges">
185
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
186
+ </div>
187
+
188
+ </body>
189
+ </html>
@@ -0,0 +1,170 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Irbtools</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Irbtools</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/irbtools/configure_rb.html">
59
+ lib/irbtools/configure.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ suggested libraries
78
+ </p>
79
+
80
+ </div>
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000021">init</a>&nbsp;&nbsp;
90
+ <a href="#M000020">libs</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+
99
+ <div id="section">
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <!-- if method_list -->
109
+ <div id="methods">
110
+ <h3 class="section-bar">Public Class methods</h3>
111
+
112
+ <div id="method-M000021" class="method-detail">
113
+ <a name="M000021"></a>
114
+
115
+ <div class="method-heading">
116
+ <a href="#M000021" class="method-signature">
117
+ <span class="method-name">init</span><span class="method-args">()</span>
118
+ </a>
119
+ </div>
120
+
121
+ <div class="method-description">
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">
125
+ <pre>
126
+ <span class="ruby-comment cmt"># File lib/irbtools/configure.rb, line 52</span>
127
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
128
+ <span class="ruby-identifier">require</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>( <span class="ruby-value str">'../irbtools.rb'</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>) )
129
+ <span class="ruby-keyword kw">end</span>
130
+ </pre>
131
+ </div>
132
+ </div>
133
+ </div>
134
+
135
+ <div id="method-M000020" class="method-detail">
136
+ <a name="M000020"></a>
137
+
138
+ <div class="method-heading">
139
+ <a href="#M000020" class="method-signature">
140
+ <span class="method-name">libs</span><span class="method-args">()</span>
141
+ </a>
142
+ </div>
143
+
144
+ <div class="method-description">
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">
148
+ <pre>
149
+ <span class="ruby-comment cmt"># File lib/irbtools/configure.rb, line 47</span>
150
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">libs</span>
151
+ <span class="ruby-ivar">@libs</span>
152
+ <span class="ruby-keyword kw">end</span>
153
+ </pre>
154
+ </div>
155
+ </div>
156
+ </div>
157
+
158
+
159
+ </div>
160
+
161
+
162
+ </div>
163
+
164
+
165
+ <div id="validator-badges">
166
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
167
+ </div>
168
+
169
+ </body>
170
+ </html>