irbtools 0.1.0 → 0.7.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 some great irb gems and configures your irb.
3
+ This is a meta gem which installs some useful irb gems and configures your irb.
4
4
 
5
5
  == Setup
6
6
 
@@ -19,17 +19,17 @@ To use it, put the following in your <tt>~/.irbrc</tt> file (this file is loaded
19
19
 
20
20
  If it does not exists, just create a new one.
21
21
 
22
- It's is also possible to modify, which libraries get loaded:
22
+ It's possible to modify, which libraries get loaded:
23
23
 
24
24
  require 'irbtools/configure'
25
- # Irbtools.libs is an array of libraries and gems which get loaded. You can manually add or remove some.
25
+ # here you can edit the Irbtools.libs array
26
26
  Irbtools.init
27
27
 
28
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> ;)
29
29
 
30
30
  == Features
31
31
 
32
- See http://rbjl.net/40 or read the commented source file: lib/irbtools.rb
32
+ See http://rbjl.net/40-irbtools-release-the-power-of-irb or read the commented source file: lib/irbtools.rb
33
33
 
34
34
  === Included gems and libraries
35
35
 
@@ -41,7 +41,7 @@ See http://rbjl.net/40 or read the commented source file: lib/irbtools.rb
41
41
  * ap[http://github.com/michaeldv/awesome_print] nice debug printing (ap)
42
42
  * *yaml* nice debug printing (y)
43
43
  * clipboard[http://github.com/janlelis/clipboard] easy clipboard access (copy & paste)
44
- * guessmethod[http://guessmethod.rubyforge.org/] automatically correct typos (method_missing hook)
44
+ * guessmethod[http://guessmethod.rubyforge.org/] automatically corrects typos (method_missing hook)
45
45
  * interactive_editor[http://github.com/jberkel/interactive_editor] lets you open vim, hack something, and it gets loaded into the current session
46
46
  * coderay[http://coderay.rubychan.de/] some nice colorful display ;)
47
47
  * irb_rocket[http://merbi.st/plugins/22] put result as comment instead of a new line!
@@ -50,9 +50,13 @@ See http://rbjl.net/40 or read the commented source file: lib/irbtools.rb
50
50
 
51
51
  * Make guessmethod 1.9 compatible
52
52
  * Fix Clipboard Windows issues
53
- * Fix irb_rockets general stdout problem
53
+ * Fix irb_rockets general stdout problem. If something stdout related fails, odds are high that it's irb_rockets fault.
54
54
  * ...
55
55
 
56
+ == More Features
57
+
58
+ * suggest something ;)
59
+
56
60
  == Copyright
57
61
 
58
62
  Copyright (c) 2010 Jan Lelis, http://rbjl.net. See LICENSE for details.
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 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.}
8
+ gem.summary = %Q{irbtools is a meta gem which installs some useful irb gems and configures your irb.}
9
+ gem.description = %Q{irbtools is a meta gem which installs some useful 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"]
@@ -22,7 +22,6 @@ begin
22
22
  gem.add_dependency 'interactive_editor'
23
23
  gem.add_dependency 'coderay'
24
24
  # gem.add_dependency 'irb_rocket'
25
- # gem.post_install_message 'irbtools'
26
25
  end
27
26
  Jeweler::GemcutterTasks.new
28
27
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.7.0
@@ -123,10 +123,10 @@ suggested libraries
123
123
  onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
124
124
  <div class="method-source-code" id="M000021-source">
125
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>
126
+ <span class="ruby-comment cmt"># File lib/irbtools/configure.rb, line 51</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
130
  </pre>
131
131
  </div>
132
132
  </div>
@@ -146,10 +146,10 @@ suggested libraries
146
146
  onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
147
147
  <div class="method-source-code" id="M000020-source">
148
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>
149
+ <span class="ruby-comment cmt"># File lib/irbtools/configure.rb, line 46</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
153
  </pre>
154
154
  </div>
155
155
  </div>
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Wed, 06 Oct 2010 16:51:56 +0200
1
+ Wed, 06 Oct 2010 19:14:50 +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 16:51:52 +0200 2010</td>
59
+ <td>Wed Oct 06 19:13:21 +0200 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -71,7 +71,7 @@
71
71
  <div id="description">
72
72
  <h1>irbtools</h1>
73
73
  <p>
74
- This is a meta gem which installs some great irb gems and configures your
74
+ This is a meta gem which installs some useful irb gems and configures your
75
75
  irb.
76
76
  </p>
77
77
  <h2>Setup</h2>
@@ -100,11 +100,11 @@ loaded everytime you start an irb):
100
100
  If it does not exists, just create a new one.
101
101
  </p>
102
102
  <p>
103
- It&#8216;s is also possible to modify, which libraries get loaded:
103
+ It&#8216;s possible to modify, which libraries get loaded:
104
104
  </p>
105
105
  <pre>
106
106
  require 'irbtools/configure'
107
- # Irbtools.libs is an array of libraries and gems which get loaded. You can manually add or remove some.
107
+ # here you can edit the Irbtools.libs array
108
108
  Irbtools.init
109
109
  </pre>
110
110
  <p>
@@ -113,8 +113,9 @@ source files, tweak them and use them directly as <tt>.irbrc</tt> ;)
113
113
  </p>
114
114
  <h2>Features</h2>
115
115
  <p>
116
- See <a href="http://rbjl.net/40">rbjl.net/40</a> or read the commented
117
- source file: lib/irbtools.rb
116
+ See <a
117
+ href="http://rbjl.net/40-irbtools-tune-your-irbrc">rbjl.net/40-irbtools-tune-your-irbrc</a>
118
+ or read the commented source file: lib/irbtools.rb
118
119
  </p>
119
120
  <h3>Included gems and libraries</h3>
120
121
  <ul>
@@ -149,7 +150,7 @@ access (copy &amp; paste)
149
150
 
150
151
  </li>
151
152
  <li><a href="http://guessmethod.rubyforge.org/">guessmethod</a> automatically
152
- correct typos (method_missing hook)
153
+ corrects typos (method_missing hook)
153
154
 
154
155
  </li>
155
156
  <li><a
@@ -175,11 +176,18 @@ instead of a new line!
175
176
  <li>Fix Clipboard Windows issues
176
177
 
177
178
  </li>
178
- <li>Fix irb_rockets general stdout problem
179
+ <li>Fix irb_rockets general stdout problem. If something stdout related fails,
180
+ odds are high that it&#8216;s irb_rockets fault.
179
181
 
180
182
  </li>
181
183
  <li>&#8230;
182
184
 
185
+ </li>
186
+ </ul>
187
+ <h2>More Features</h2>
188
+ <ul>
189
+ <li>suggest something ;)
190
+
183
191
  </li>
184
192
  </ul>
185
193
  <h2>Copyright</h2>
@@ -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 16:40:32 +0200 2010</td>
59
+ <td>Wed Oct 06 18:35:42 +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 16:34:13 +0200 2010</td>
59
+ <td>Wed Oct 06 18:32:15 +0200 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -350,7 +350,7 @@ by FileUtils)
350
350
  <pre>
351
351
  <span class="ruby-comment cmt"># File lib/irbtools.rb, line 79</span>
352
352
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ls</span>(<span class="ruby-identifier">path</span>=<span class="ruby-value str">'.'</span>)
353
- <span class="ruby-constant">Dir</span>[ <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span> <span class="ruby-identifier">path</span>, <span class="ruby-value str">'*'</span> ].<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">res</span><span class="ruby-operator">|</span> <span class="ruby-identifier">res</span> <span class="ruby-operator">=~</span> <span class="ruby-node">/^#{path}\/?/</span>; <span class="ruby-identifier">$'</span> }
353
+ <span class="ruby-constant">Dir</span>[ <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>( <span class="ruby-identifier">path</span>, <span class="ruby-value str">'*'</span> )].<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">res</span><span class="ruby-operator">|</span> <span class="ruby-identifier">res</span> <span class="ruby-operator">=~</span> <span class="ruby-node">/^#{path}\/?/</span>; <span class="ruby-identifier">$'</span> }
354
354
  <span class="ruby-keyword kw">end</span>
355
355
  </pre>
356
356
  </div>
@@ -497,7 +497,7 @@ allows concise syntax like <a href="irbtools_rb.html#M000013">rq</a>:mathn
497
497
  <span class="ruby-comment cmt"># if ruby is found, start it</span>
498
498
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$1</span>
499
499
  <span class="ruby-identifier">ruby_name</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">split</span>( <span class="ruby-identifier">$1</span> )[<span class="ruby-value">-1</span>].<span class="ruby-identifier">tr</span>(<span class="ruby-value str">' '</span>, <span class="ruby-value str">'-'</span>)
500
- <span class="ruby-identifier">irbname</span> = <span class="ruby-identifier">$0</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'-'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">ruby_name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'@global'</span>
500
+ <span class="ruby-identifier">irbname</span> = <span class="ruby-identifier">$0</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'-'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">ruby_name</span><span class="ruby-comment cmt"># + '@global'</span>
501
501
  <span class="ruby-identifier">exec</span> <span class="ruby-identifier">irbname</span>
502
502
  <span class="ruby-keyword kw">else</span>
503
503
  <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Sorry, that Ruby version could not be found.&quot;</span>
data/doc/index.html CHANGED
@@ -5,13 +5,13 @@
5
5
 
6
6
  <!--
7
7
 
8
- irbtools 0.0.4
8
+ irbtools 0.1.0
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.0.4
14
+ <title>irbtools 0.1.0
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,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{irbtools}
8
- s.version = "0.1.0"
8
+ s.version = "0.7.0"
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"]
12
12
  s.date = %q{2010-10-06}
13
- s.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.}
13
+ s.description = %q{irbtools is a meta gem which installs some useful irb gems and configures your irb. Simply put a require 'irbtools' in the .irbrc file in your home directory.}
14
14
  s.email = %q{mail@janlelis.de}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
@@ -38,14 +38,16 @@ Gem::Specification.new do |s|
38
38
  "doc/rdoc-style.css",
39
39
  "irbtools.gemspec",
40
40
  "lib/irbtools.rb",
41
- "lib/irbtools/configure.rb"
41
+ "lib/irbtools/configure.rb",
42
+ "screenshots/examples1.png",
43
+ "screenshots/examples2.png"
42
44
  ]
43
45
  s.homepage = %q{http://github.com/janlelis/irbtools}
44
46
  s.rdoc_options = ["--charset=UTF-8"]
45
47
  s.require_paths = ["lib"]
46
48
  s.requirements = ["You need to add http://merbi.st to your gem sources (irb_rocket)"]
47
49
  s.rubygems_version = %q{1.3.7}
48
- s.summary = %q{irbtools is a meta gem which installs some great irb gems and configures your irb.}
50
+ s.summary = %q{irbtools is a meta gem which installs some useful irb gems and configures your irb.}
49
51
 
50
52
  if s.respond_to? :specification_version then
51
53
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
data/lib/irbtools.rb CHANGED
@@ -77,7 +77,7 @@ You can install it with: gem install irb_rocket --source http://merbi.st"
77
77
 
78
78
  # shows the contents of your current directory (more such commands available by FileUtils)
79
79
  def ls(path='.')
80
- Dir[ File.join path, '*' ].map{|res| res =~ /^#{path}\/?/; $' }
80
+ Dir[ File.join( path, '*' )].map{|res| res =~ /^#{path}\/?/; $' }
81
81
  end
82
82
  alias dir ls
83
83
 
@@ -128,7 +128,7 @@ def ruby_version(which = nil)
128
128
  # if ruby is found, start it
129
129
  if $1
130
130
  ruby_name = File.split( $1 )[-1].tr(' ', '-')
131
- irbname = $0 + '-' + ruby_name + '@global'
131
+ irbname = $0 + '-' + ruby_name# + '@global'
132
132
  exec irbname
133
133
  else
134
134
  puts "Sorry, that Ruby version could not be found."
@@ -10,49 +10,49 @@ begin
10
10
  require 'zucker/env' # Info, OS, RubyVersion, RubyEngine
11
11
  rescue LoadError
12
12
  puts "The irbtools couldn't load, because the zucker gem is not available"
13
- end
13
+ else
14
+ # suggested libraries
15
+ module Irbtools
16
+ @libs = ['rubygems',
17
+ 'wirble', # colors
18
+ 'hirb', # active record tables
19
+ 'fileutils', # cd, pwd, ln_s, mv, rm, mkdir, touch ... ;)
20
+ 'zucker/debug', # nice debug printing (q, o, c, .m, .d)
21
+ 'ap', # nice debug printing (ap)
22
+ 'yaml', # nice debug printing (y)
23
+ 'g', # nice debug printing (g) - MacOS only :/
24
+ 'clipboard', # easy clipboard access (copy & paste)
25
+ 'guessmethod', # automatically correct typos (method_missing hook)
26
+ # 'drx', # nice tk object inspector (.see) [not included because it fails to install out of the box on lots of systems]
27
+ 'interactive_editor', # lets you open vim (or your favourite editor), hack something, save it, and it's loaded in the current irb session
28
+ 'coderay', # some nice colorful display ;)
29
+ 'irb_rocket', # put result as comment instead of a new line!
30
+ # 'zucker/all' # see rubyzucker.info
31
+ ]
32
+
33
+ if OS.windows?
34
+ @libs -= %w[irb_rocket coderay]
35
+ end
14
36
 
15
- # suggested libraries
16
- module Irbtools
17
- @libs = ['rubygems',
18
- 'wirble', # colors
19
- 'hirb', # active record tables
20
- 'fileutils', # cd, pwd, ln_s, mv, rm, mkdir, touch ... ;)
21
- 'zucker/debug', # nice debug printing (q, o, c, .m, .d)
22
- 'ap', # nice debug printing (ap)
23
- 'yaml', # nice debug printing (y)
24
- 'g', # nice debug printing (g) - MacOS only :/
25
- 'clipboard', # easy clipboard access (copy & paste)
26
- 'guessmethod', # automatically correct typos (method_missing hook)
27
- # 'drx', # nice tk object inspector (.see) [not included because it fails to install out of the box on lots of systems]
28
- 'interactive_editor', # lets you open vim (or your favourite editor), hack something, save it, and it's loaded in the current irb session
29
- 'coderay', # some nice colorful display ;)
30
- 'irb_rocket', # put result as comment instead of a new line!
31
- # 'zucker/all' # see rubyzucker.info
32
- ]
33
-
34
- if OS.windows?
35
- @libs -= %w[irb_rocket coderay]
36
- end
37
-
38
- unless OS.mac?
39
- @libs -= %w[g]
40
- end
41
-
42
- if RubyVersion.is? 1.9
43
- @libs -= %w[guessmethod]
44
- end
45
-
46
- class << self
47
- def libs
48
- @libs
37
+ unless OS.mac?
38
+ @libs -= %w[g]
49
39
  end
50
- aliases_for :libs, :gems, :libraries
51
40
 
52
- def init
53
- require File.expand_path( '../irbtools.rb', File.dirname(__FILE__) )
41
+ if RubyVersion.is? 1.9
42
+ @libs -= %w[guessmethod]
43
+ end
44
+
45
+ class << self
46
+ def libs
47
+ @libs
48
+ end
49
+ aliases_for :libs, :gems, :libraries
50
+
51
+ def init
52
+ require File.expand_path( '../irbtools.rb', File.dirname(__FILE__) )
53
+ end
54
54
  end
55
- end
55
+ end#module
56
56
  end
57
57
 
58
58
  # J-_-L
Binary file
Binary file
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: 27
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 7
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Lelis
@@ -144,7 +144,7 @@ dependencies:
144
144
  version: "0"
145
145
  type: :runtime
146
146
  version_requirements: *id009
147
- description: 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.
147
+ description: irbtools is a meta gem which installs some useful irb gems and configures your irb. Simply put a require 'irbtools' in the .irbrc file in your home directory.
148
148
  email: mail@janlelis.de
149
149
  executables: []
150
150
 
@@ -176,6 +176,8 @@ files:
176
176
  - irbtools.gemspec
177
177
  - lib/irbtools.rb
178
178
  - lib/irbtools/configure.rb
179
+ - screenshots/examples1.png
180
+ - screenshots/examples2.png
179
181
  has_rdoc: true
180
182
  homepage: http://github.com/janlelis/irbtools
181
183
  licenses: []
@@ -209,6 +211,6 @@ rubyforge_project:
209
211
  rubygems_version: 1.3.7
210
212
  signing_key:
211
213
  specification_version: 3
212
- summary: irbtools is a meta gem which installs some great irb gems and configures your irb.
214
+ summary: irbtools is a meta gem which installs some useful irb gems and configures your irb.
213
215
  test_files: []
214
216