irbtools 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+
3
+ # # # # #
4
+ # require 'irbtools' in your .irbrc
5
+ # but you could also require 'irbtools/configure' and then call Irbtools.init to modify the loaded libraries
6
+ # see the README file for more information
7
+
8
+ begin
9
+ require 'zucker/alias_for'
10
+ require 'zucker/env' # Info, OS, RubyVersion, RubyEngine
11
+ rescue LoadError
12
+ puts "The irbtools couldn't load, because the zucker gem is not available"
13
+ end
14
+
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
49
+ end
50
+ aliases_for :libs, :gems, :libraries
51
+
52
+ def init
53
+ require File.expand_path( '../irbtools.rb', File.dirname(__FILE__) )
54
+ end
55
+ end
56
+ end
57
+
58
+ # J-_-L
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: 23
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 4
10
- version: 0.0.4
10
+ version: 0.1.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 for you 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 great 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
 
@@ -160,7 +160,22 @@ files:
160
160
  - README.rdoc
161
161
  - Rakefile
162
162
  - VERSION
163
+ - doc/classes/IRB.html
164
+ - doc/classes/IRB/CaptureIO.html
165
+ - doc/classes/Irbtools.html
166
+ - doc/classes/Kernel.html
167
+ - doc/created.rid
168
+ - doc/files/README_rdoc.html
169
+ - doc/files/lib/irbtools/configure_rb.html
170
+ - doc/files/lib/irbtools_rb.html
171
+ - doc/fr_class_index.html
172
+ - doc/fr_file_index.html
173
+ - doc/fr_method_index.html
174
+ - doc/index.html
175
+ - doc/rdoc-style.css
176
+ - irbtools.gemspec
163
177
  - lib/irbtools.rb
178
+ - lib/irbtools/configure.rb
164
179
  has_rdoc: true
165
180
  homepage: http://github.com/janlelis/irbtools
166
181
  licenses: []
@@ -194,6 +209,6 @@ rubyforge_project:
194
209
  rubygems_version: 1.3.7
195
210
  signing_key:
196
211
  specification_version: 3
197
- summary: irbtools is a meta gem which installs some great irb gems for you and configures your irb.
212
+ summary: irbtools is a meta gem which installs some great irb gems and configures your irb.
198
213
  test_files: []
199
214