irbtools 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c9fbe8b55b3e58e4180e9aab611fd69daf58ba1
4
+ data.tar.gz: f9a76f042086e961472241d48106422316c0687b
5
+ SHA512:
6
+ metadata.gz: 5105d29452b9d67bce58e4c34195a1ab612f002c6ccfc8b74cb635f63df1df42468186c406f29bab12b8b3865d781656f6e9b1b2bc95d453047e2bc0f7a101db
7
+ data.tar.gz: e35b06046feab48086c9b3d02a3697528cca3198638ef0186013721c1ac40fe557879bec283016ecb7d2754a63363999c9d0a25f97088f8f3088789bc16e4733
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 1.6.0
2
+ * remove zucker dependency, but add debugging, ruby_version, ruby_engine, ruby_info and os gem
3
+ * configure binding.repl to load irb, not pry
4
+ * bump binding.repl, paint, wirb
5
+
1
6
  1.5.1
2
7
  * include binding.repl gem
3
8
  * bump coderay, awesome_print, method_source, wirb
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2013 Jan Lelis
1
+ Copyright (c) 2010-2014 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -1,92 +1,95 @@
1
- = irbtools
1
+ = irbtools
2
2
 
3
- {<img src="http://www.iloveopensource.io/images/logo-lightbg.png" />}[http://www.iloveopensource.io/projects/52532c98c4e2e91944000b4f]
3
+ Improvements fro Ruby's IRB console. Everything is colorful and you will get lots of console helpers. Unlike with PRY, you are still in your normal IRB. It is designed to work out-of-the-box so there is no reason to not use it!
4
4
 
5
- irbtools improves Ruby's irb console. Unlike pry, you are still in your normal irb, but you have colors and lots of helpful methods. It's designed to work out-of-the-box so there is no reason to not use it!
6
5
 
7
6
  == Setup
8
7
 
9
- gem install irbtools
10
-
11
- * On Linux, you need +xclip+ or +xsel+ to use the clipboard: sudo <tt>apt-get install xclip</tt>
12
- * On Windows, you need ansicon[https://github.com/adoxa/ansicon] to enable colors
13
- * On MacOS, you need growl, to use the +g+ gem.
8
+ $ gem install irbtools
9
+
10
+ * On Linux, you will need +xclip+ or +xsel+ for a functional clipboard: <tt>sudo apt-get install xclip</tt>
11
+ * On Windows, you will need ansicon[https://github.com/adoxa/ansicon] to enable ANSI colors
12
+ * On Mac OS, you will need growl, to use the +g+ gem
13
+
14
14
 
15
15
  == Usage
16
+
16
17
  To use *irbtools*, put the following in your <tt>~/.irbrc</tt> file (it is loaded every time you start irb):
17
18
 
18
19
  require 'irbtools'
19
20
 
20
21
  If the file does not exist, just create a new one. See further below on how to customize loaded libraries.
21
22
 
22
- === Rails/Bundler notes
23
- To integrate irbtools into a rails console, you can either add <tt>irbtools</tt> to your Gemfile:
24
23
 
25
- gem 'irbtools', require: false
24
+ === Rails/Bundler Notes
25
+
26
+ To integrate *irbtools* into a Rails console, you should <tt>irbtools</tt> to your Gemfile:
26
27
 
27
- Another way is to add a {debundle hack}[https://github.com/janlelis/debundle.rb] at the beginning of your <tt>~/.irbrc</tt>.
28
+ gem 'irbtools', require: 'binding.repl'
28
29
 
29
- === Call from binding
30
+ Thanks to help from the {binding.repl}[https://github.com/robgleeson/binding.repl] gem, you can start IRB (with *irbtools*) directly from your code:
30
31
 
31
- Using the excellent {binding.repl}[https://github.com/robgleeson/binding.repl] gem, you can call irb directly from your code by doing:
32
+ binding.repl!
32
33
 
33
- binding.repl.irb # or binding.repl.auto
34
+ === Debundle
34
35
 
35
- *Hint:* Load irbtools in bundler environments in this way:
36
+ Another way to activate *irbtools* in bundler projects is to add a {debundle hack}[https://github.com/janlelis/debundle.rb] at the beginning of your <tt>~/.irbrc</tt> file.
36
37
 
37
- gem 'irbtools', require: 'binding.repl'
38
38
 
39
- === This is irbtools "light"
39
+ === This is irbtools Light
40
40
 
41
- When installing *irbtools*, some gems won't be installed to ensure Windows OS support, e.g. bond for better auto-completion or the looksee gem. These are packaged into the {irbtools-more}[https://github.com/janlelis/irbtools-more] gem. To use them, you need to change your <tt>.irbrc</tt> to:
41
+ When installing *irbtools*, some gems will not be installed to ensure Windows OS support, e.g. the bond gem for better auto-completion or the looksee gem. These are packaged into the {irbtools-more}[https://github.com/janlelis/irbtools-more] gem. To use <tt>irbtools-more</tt>, you will need to change your <tt>.irbrc</tt> to:
42
42
 
43
43
  require 'irbtools/more'
44
44
 
45
- === Included gems and libraries
46
45
 
47
- See http://rbjl.net/40-irbtools-release-the-power-of-irb or read the commented source files to get some examples of what you can do with irbtools.
46
+ === Included Gems and Libraries
48
47
 
49
- [wirb[https://github.com/janlelis/wirb/]] General colorizer for resulting Ruby objects
48
+ [wirb[https://github.com/janlelis/wirb/]] Colorizes Ruby objects
50
49
  [hirb[http://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html]]
51
50
  Custom views for specific objects, e.g. tables for ActiveRecord
52
- [fancy_irb[https://github.com/janlelis/fancy_irb]] Hash rockets for results and colorful error messages
51
+ [fancy_irb[https://github.com/janlelis/fancy_irb]] Hash rockets and colorful error messages
53
52
  [every_day_irb[https://github.com/janlelis/irbtools/tree/master/lib/every_day_irb.rb]]
54
53
  Contains helper methods that might be useful in every-day irb usage, see below for details
55
54
  [clipboard[http://github.com/janlelis/clipboard]] Easy clipboard access
56
55
  [interactive_editor[https://github.com/jberkel/interactive_editor]]
57
- Lets you open vim (or emacs) from within irb to hack something that gets loaded into the current session
58
- [zucker[http:/rubyzucker.info]] Print debugging helpers (<tt>q</tt>, <tt>Object#m</tt>, <tt>Object#d</tt>) and information pseudo-constants (<tt>Info</tt>, <tt>OS</tt>, <tt>RubyVersion</tt>, <tt>RubyEngine</tt>)
59
- [ap[https://github.com/michaeldv/awesome_print]] Alternative for displaying Ruby objects
56
+ Lets you open vim (or emacs) from within IRB to hack something that gets loaded into the current session
57
+ [debugging[https:/github.com/janlelis/debugging]] Print debugging helpers (<tt>q</tt>, <tt>mof</tt>, <tt>re</tt>)
58
+ [ap[https://github.com/michaeldv/awesome_print]] More print debugging (<tt>ap</tt>)
59
+ [ruby_version[https://github.com/janlelis/ruby_version]] <tt>rv</tt>
60
+ [ruby_engine[https://github.com/janlelis/ruby_engine]] <tt>re</tt>
61
+ [os[https://github.com/rdp/os]] <tt>os</tt>
62
+ [ruby_info[https://github.com/janlelis/ruby_info]] <tt>info</tt>
60
63
  [coderay[http://coderay.rubychan.de/]] Colorizes Ruby code (<tt>colorize</tt>, <tt>ray</tt>)
61
- [paint[https://github.com/janlelis/paint/]] Enables easy access to terminal colors
62
- [methodfinder[https://github.com/citizen428/methodfinder]] "A Smalltalk like Method Finder for Ruby" (<tt>mf</tt>)
63
- [ori[https://github.com/dadooda/ori]] Adds an <tt>Object#ri</tt> method
64
+ [methodfinder[https://github.com/citizen428/methodfinder]] malltalk like method finder for Ruby (<tt>mf</tt>)
65
+ [ori[https://github.com/dadooda/ori]] <tt>Object#ri</tt>
64
66
  [method_locator[https://github.com/ryanlecompte/method_locator]] Provides <tt>Object#mlp</tt> (improved version of <tt>Module#ancestors</tt>) and <tt>Object#methods_for(m)</tt> (get this method from all ancestors)
65
67
  [method_source[https://github.com/banister/method_source]] <tt>Object#src</tt> can be shown for Ruby methods
66
68
  [alias[http://tagaholic.me/2009/07/07/alias-quickness-in-the-ruby-console.html]] Easily create shortcuts for your favorite methods, even when they are nested, saved in personal yaml file
67
- [boson[http://tagaholic.me/boson/]] "A command/task framework similar to rake and thor that opens your ruby universe to the commandline and irb."
68
- [bond[http://tagaholic.me/bond/]] <b>irbtools-more:</b> Improves irb tab-completion
69
- [looksee[https://github.com/oggy/looksee]] <b>irbtools-more:</b> Great load path inspector: <tt>Object#l</tt> (Extended version of <tt>Object#m</tt>), also provides the ability to <tt>Object#edit</tt> methods.
70
- [*fileutils* (stdlib)] Includes file system utility methods: <tt>cd</tt>, <tt>pwd</tt>, <tt>ln_s</tt>, <tt>mv</tt>, <tt>rm</tt>, <tt>mkdir</tt>, <tt>touch</tt>, ... ;)
69
+ [boson[http://tagaholic.me/boson/]] Command/task framework similar to rake and thor that opens your ruby universe to the commandline and irb
70
+ [bond[http://tagaholic.me/bond/]] <b>irbtools-more:</b> Better IRB tab-completion
71
+ [looksee[https://github.com/oggy/looksee]] <b>irbtools-more:</b> Great load path inspector: <tt>Object#l</tt> (Extended version of <tt>mof</tt>), also provides the ability to <tt>Object#edit</tt> methods.
72
+ [*fileutils* (stdlib)] System utility methods: <tt>cd</tt>, <tt>pwd</tt>, <tt>ln_s</tt>, <tt>mv</tt>, <tt>rm</tt>, <tt>mkdir</tt>, <tt>touch</tt>
71
73
 
72
- === Irbtools methods
73
74
 
74
- The following general helper methods are defined by <b>every_day_irb</b> (which belongs to *irbtools*)
75
+ === irbtools Methods (every_day_irb)
75
76
 
76
77
  [ls] Returns an array with the directory's content
77
78
  [cat] Shortcut for <tt>File.read</tt>
78
79
  [rq] Shortcut for <tt>require library.to_s</tt> (allows concise syntax like <tt>rq:mathn</tt>)
79
80
  [ld] Shortcut for <tt>load library.to_s + '.rb'</tt>
80
81
  [rrq/rerequire] Little hack for rerequiring a library (it's really hack and not reliable, but works in most cases)
81
- [reset!] Restarts irb
82
- [clear] Clears your irb terminal (<tt>system "clear"</tt>)
83
- [session_history] Returns all issued commands as string
82
+ [reset!] Restarts IRB
83
+ [clear] Clears the terminal (<tt>system "clear"</tt>)
84
+ [session_history] Returns all issued commands as a string
84
85
 
85
- Irbtools also defines some more helpers in combination with the loaded gems:
86
+ irbtools also defines custom helper methods in combination with the loaded gems:
86
87
 
87
88
  [cd] Improves the cd that is already provided by *FileUtils* (try <tt>cd '-'</tt>)
88
- [rv] Displays RubyVersion (*zucker*)
89
- [re] Displays RubyEngine (*zucker*)
89
+ [rv] Displays RubyVersion
90
+ [re] Displays RubyEngine
91
+ [os] OS information
92
+ [info] Aggregates information about your Ruby environment
90
93
  [colorize] Syntax highlights a ruby string using *CodeRay*
91
94
  [ray] Syntax highlights a ruby file using *CodeRay*
92
95
  [copy] Shortcut for <tt>Clipboard.copy</tt>
@@ -106,20 +109,21 @@ These are the custom public +Object+ methods renamed/patched for some gems
106
109
  == Advanced tweaking
107
110
  === How to load more or less libraries
108
111
 
109
- It's possible to modify, which libraries should get loaded:
112
+ It is possible to modify, which libraries should get loaded:
110
113
 
111
- # don't require 'irbtools', but:
114
+ # Don't require 'irbtools', but:
112
115
  require 'irbtools/configure'
113
- # here you can modify the libraries using the methods below
116
+ # Here you can modify the libraries using the methods below
114
117
  Irbtools.start
115
118
 
116
- If you don't want to load the default set of irbtools gems, you will have to use <tt>require 'irbtools/minimal'</tt> instead of <tt>configure</tt>.
119
+ If you do not want to load the default set of irbtools gems, you will have to use <tt>require 'irbtools/minimal'</tt> instead of <tt>configure</tt>.
120
+
121
+ You can use the following methods:
117
122
 
118
- You have the following methods:
119
123
  * <tt>Irbtools.add_library(lib, options_hash, &block)</tt>
120
124
  * <tt>Irbtools.remove_library(lib)</tt>
121
125
 
122
- The <tt>options_hash</tt> defines the way in which Irbtools loads the library. Following options are possible
126
+ The <tt>options_hash</tt> defines the way in which irbtools loads the library. The following options are possible
123
127
  [(no options)/<tt>:start</tt>] The library is required on startup before doing anything else (before displaying the prompt)
124
128
  [<tt>:thread => identifier</tt>] After loading everything else, the library is required in a thread (while continuing loading). You can choose any identifier, but if you take the same one for multiple libraries, they will be loaded in the same thread (in the order that you define)
125
129
  [<tt>:late => true</tt>] The library is required just before showing the prompt (note: loading threads might still be in process)
@@ -127,20 +131,22 @@ The <tt>options_hash</tt> defines the way in which Irbtools loads the library. F
127
131
  [<tt>:sub_session => true</tt>] The library is loaded every time a sub-session starts (using <tt>IRB.conf[:IRB_RC]</tt>). In ripl[https://github.com/cldwalker/ripl], <tt>ripl-after_rc</tt> is used.
128
132
  [<tt>:autoload => :Constant</tt>] Use Ruby's <tt>autoload</tt> feature. It loads the library as soon as the constant is encountered.
129
133
 
130
- You can also apply a block that gets executed after the library is loaded (except for autoload, the code will executed on startup in this case). You can also just add callback block by using the <tt>Irbtools.add_library_callback</tt> or the <tt>Irbtools.replace_library_callback</tt> method.
134
+ You can pass a block as third argument, which gets executed after the library has completed loading (except for <tt>:autoload</tt>, in which case the code will executed directly on startup). You can modify the callbacks by using <tt>Irbtools.add_library_callback</tt> and <tt>Irbtools.replace_library_callback</tt>.
131
135
 
132
136
  When adding a new library, you should firstly consider some way to load it via <tt>:autoload</tt>.
133
- If not possible, try loading via thread.
134
- If that is not possible either, fallback to the default loading.
137
+ If this is not possible, try loading via <tt>:thread</tt>. If that is not possible either, you will need to fallback to the default loading mechanism.
138
+
135
139
 
136
140
  == Troubleshooting: Unicode causes wrong display widths?
137
- When using double-width unicode chars, you need to paste the following snippet to your <tt>.irbrc</tt>.
141
+
142
+ If you use double-width unicode characterss, you will need to paste the following snippet to your <tt>.irbrc</tt> file.
138
143
 
139
144
  Irbtools.replace_library_callback :fancy_irb do
140
- FancyIrb.start :east_asian_width => true
145
+ FancyIrb.start east_asian_width: true
141
146
  end
142
147
 
143
- This setting is deactivated by default because of performance issues.
148
+ This setting is deactivated by default, because of performance issues.
149
+
144
150
 
145
151
  == Hint: Faster start-up
146
152
 
@@ -153,21 +159,17 @@ You can get an about a second faster start-up time by changing the loading metho
153
159
  Irbtools.add_library :fancy_irb, :thread => -1 do FancyIrb.start end
154
160
  Irbtools.start
155
161
 
156
- == Welcome message
162
+
163
+ == Welcome Message
164
+
157
165
  The welcome message can be customized with <tt>Irbtools.welcome_message=</tt>
158
166
 
167
+
159
168
  == Web Console
160
169
 
161
170
  Irbtools works well together with the amazing {web-console!}[https://github.com/rails/web-console]
162
171
 
163
- == Packages
164
- There are irbtools extension packages, which can be modified via:
165
- * <tt>Irbtools.add_package(pkg)</tt>
166
- * <tt>Irbtools.remove_package(pkg)</tt>
167
-
168
- These packages add/modify the libraries to be loaded. For an example, see {irbtools-more}[https://github.com/janlelis/irbtools-more].
169
-
170
- == Copyright
171
- Copyright (c) 2010-2013 Jan Lelis <http://happycode.org> released under the MIT license.
172
172
 
173
173
  == J-_-L
174
+
175
+ Copyright (c) 2010-2014 Jan Lelis <http://janlelis.de> released under the MIT license.
data/irbtools.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
 
8
8
  s.authors = ["Jan Lelis"]
9
9
  s.summary = 'irbtools happy irb.'
10
- s.description = 'irbtools makes using irb easier and more fun. Simply put a require "irbtools" in the .irbrc file in your home directory.'
10
+ s.description = "irbtools makes using Ruby's IRB easier and more fun. Put a require 'irbtools' in a .irbrc file in your home directory to get started."
11
11
  s.email = 'mail@janlelis.de'
12
12
  s.extra_rdoc_files = %w[LICENSE README.rdoc]
13
13
  s.files = %w[lib/irbtools.rb lib/irbtools/configure.rb lib/irbtools/libraries.rb lib/irbtools/minimal.rb CHANGELOG Rakefile irbtools.gemspec]
@@ -16,22 +16,24 @@ Gem::Specification.new do |s|
16
16
  s.license = 'MIT'
17
17
 
18
18
  # functionality
19
- s.add_dependency %q<zucker>, ">= 13.1"
19
+ s.add_dependency %q<every_day_irb>, ">= #{ s.version }"
20
+ s.add_dependency %q<binding.repl>, ">= 1.0.1"
20
21
  s.add_dependency %q<boson>, "~> 1.2.4"
21
22
  s.add_dependency %q<boson-more>, "~> 0.2.2"
23
+ s.add_dependency %q<alias>, "~> 0.2.3"
22
24
  s.add_dependency %q<clipboard>, "~> 1.0.5"
23
25
  s.add_dependency %q<interactive_editor>, ">= 0.0.10"
24
- s.add_dependency %q<every_day_irb>, ">= #{ s.version }"
25
- s.add_dependency %q<alias>, "~> 0.2.3"
26
- s.add_dependency %q<binding.repl>, ">= 0.7.0"
27
26
 
28
- # display
29
- s.add_dependency %q<paint>, ">= 0.8.6"
27
+ # irb patches / display helpers
30
28
  s.add_dependency %q<fancy_irb>, ">= 0.7.3"
31
- s.add_dependency %q<wirb>, ">= 1.0.2"
32
- s.add_dependency %q<hirb>, "~> 0.7.1"
33
- s.add_dependency %q<awesome_print>, "~> 1.2.0"
29
+ s.add_dependency %q<wirb>, ">= 1.0.3"
30
+ s.add_dependency %q<paint>, ">= 0.8.7"
31
+ s.add_dependency %q<hirb>, "~> 0.7"
34
32
  s.add_dependency %q<coderay>, "~> 1.1.0"
33
+
34
+ # debugging
35
+ s.add_dependency %q<debugging>, "~> 1.0"
36
+ s.add_dependency %q<awesome_print>, "~> 1.2"
35
37
  s.add_dependency %q<g>, ">= 1.7.2"
36
38
 
37
39
  # introspection / docs
@@ -40,6 +42,12 @@ Gem::Specification.new do |s|
40
42
  s.add_dependency %q<method_locator>,">= 0.0.4"
41
43
  s.add_dependency %q<method_source>, ">= 0.8.2"
42
44
 
45
+ # information
46
+ s.add_dependency %q<ruby_version>, "~> 1.0"
47
+ s.add_dependency %q<ruby_engine>, "~> 1.0"
48
+ s.add_dependency %q<ruby_info>, "~> 1.0"
49
+ s.add_dependency %q<os>, "~> 0.9"
50
+
43
51
  len = s.homepage.size
44
52
  s.post_install_message = \
45
53
  " ┌── " + "info ".ljust(len-2,'─') + "─┐\n" +
@@ -8,7 +8,7 @@
8
8
  # # # # #
9
9
  # define module methods
10
10
  module Irbtools
11
- VERSION = "1.5.1"
11
+ VERSION = "1.6.0"
12
12
 
13
13
  @libraries = { :start => [], :sub_session => [], :autoload => [], :thread => {}, :late => [], :late_thread => {} }
14
14
  @lib_hooks = Hash.new{|h,k| h[k] = [] }
@@ -7,6 +7,9 @@ require 'rbconfig'
7
7
  # # # load on startup
8
8
 
9
9
  Irbtools.add_library :yaml
10
+ Irbtools.add_library 'binding.repl' do
11
+ Binding.repl.auto_order = %w[irb ripl rib pry]
12
+ end
10
13
 
11
14
 
12
15
  # # # load via thread
@@ -34,10 +37,7 @@ end
34
37
  Irbtools.add_library 'every_day_irb', :thread => 10
35
38
 
36
39
  # print debugging helper (q, #m, #d, Regexp#visualize, ap, g)
37
- Irbtools.add_library 'zucker/qq', :thread => 20
38
- Irbtools.add_library 'zucker/mm', :thread => 21
39
- Irbtools.add_library 'zucker/dd', :thread => 22
40
- Irbtools.add_library 'zucker/regexp_visualize', :thread => 23
40
+ Irbtools.add_library 'debugging/all', :thread => 20
41
41
  Irbtools.add_library 'ap', :thread => 30
42
42
  Irbtools.add_library 'g', :thread => 40 if RbConfig::CONFIG['host_os'] =~ /mac|darwin/
43
43
 
@@ -88,10 +88,10 @@ Irbtools.add_library :method_source, :thread => 70 do
88
88
  ).term
89
89
  rescue
90
90
  raise unless $!.message =~ /Cannot locate source for this method/
91
-
91
+
92
92
  nil
93
93
  end
94
-
94
+
95
95
  # alias source src # TODO activate this without warnings oO
96
96
  end
97
97
  end
@@ -154,9 +154,9 @@ Irbtools.add_library :hirb, :late_thread => :hirb do
154
154
  # colorful border
155
155
  if defined?(Paint)
156
156
  table_color = :yellow
157
-
157
+
158
158
  Hirb::Helpers::UnicodeTable::CHARS.each do |place, group|
159
- Hirb::Helpers::UnicodeTable::CHARS[place] =
159
+ Hirb::Helpers::UnicodeTable::CHARS[place] =
160
160
  group.each do |name, part|
161
161
  if part.kind_of? String
162
162
  Hirb::Helpers::UnicodeTable::CHARS[place][name] = Paint[part, *table_color]
@@ -179,12 +179,19 @@ end
179
179
  # # # load via autoload
180
180
 
181
181
  # information pseudo-constants
182
- Irbtools.add_library 'zucker/info', :autoload => :Info
183
- Irbtools.add_library 'zucker/os', :autoload => :OS
184
- Irbtools.add_library 'zucker/engine', :autoload => :RubyEngine do
182
+ Irbtools.add_library 'ruby_info', :autoload => :RubyInfo do
183
+ def info() RubyInfo end unless defined? info
184
+ end
185
+
186
+ Irbtools.add_library 'os', :autoload => :OS do
187
+ def os() OS end unless defined? os
188
+ end
189
+
190
+ Irbtools.add_library 'ruby_engine', :autoload => :RubyEngine do
185
191
  def re() RubyEngine end unless defined? re
186
192
  end
187
- Irbtools.add_library 'zucker/ruby_version', :autoload => :RubyVersion do
193
+
194
+ Irbtools.add_library 'ruby_version', :autoload => :RubyVersion do
188
195
  def rv() RubyVersion end unless defined? rv
189
196
  end
190
197
 
@@ -232,7 +239,7 @@ end
232
239
  # small-talk like method finder
233
240
  Irbtools.add_library :methodfinder, :autoload => :MethodFinder do
234
241
  MethodFinder::INSTANCE_METHOD_BLACKLIST[:Object] += [:ri, :vi, :vim, :emacs, :nano, :mate, :mvim, :ed]
235
-
242
+
236
243
  def mf(*args, &block)
237
244
  args.empty? ? MethodFinder : MethodFinder.find(*args, &block)
238
245
  end
metadata CHANGED
@@ -1,322 +1,339 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
5
- prerelease:
4
+ version: 1.6.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Lelis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-08 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: zucker
14
+ name: every_day_irb
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '13.1'
19
+ version: 1.6.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '13.1'
26
+ version: 1.6.0
30
27
  - !ruby/object:Gem::Dependency
31
- name: boson
28
+ name: binding.repl
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
- version: 1.2.4
33
+ version: 1.0.1
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
- version: 1.2.4
40
+ version: 1.0.1
46
41
  - !ruby/object:Gem::Dependency
47
- name: boson-more
42
+ name: boson
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 0.2.2
47
+ version: 1.2.4
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: 0.2.2
54
+ version: 1.2.4
62
55
  - !ruby/object:Gem::Dependency
63
- name: clipboard
56
+ name: boson-more
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: 1.0.5
61
+ version: 0.2.2
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: 1.0.5
68
+ version: 0.2.2
78
69
  - !ruby/object:Gem::Dependency
79
- name: interactive_editor
70
+ name: alias
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - '>='
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
- version: 0.0.10
75
+ version: 0.2.3
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - '>='
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
- version: 0.0.10
82
+ version: 0.2.3
94
83
  - !ruby/object:Gem::Dependency
95
- name: every_day_irb
84
+ name: clipboard
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - '>='
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
- version: 1.5.1
89
+ version: 1.0.5
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - '>='
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
- version: 1.5.1
96
+ version: 1.0.5
110
97
  - !ruby/object:Gem::Dependency
111
- name: alias
98
+ name: interactive_editor
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ~>
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
- version: 0.2.3
103
+ version: 0.0.10
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ~>
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
- version: 0.2.3
110
+ version: 0.0.10
126
111
  - !ruby/object:Gem::Dependency
127
- name: binding.repl
112
+ name: fancy_irb
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - '>='
115
+ - - ">="
132
116
  - !ruby/object:Gem::Version
133
- version: 0.7.0
117
+ version: 0.7.3
134
118
  type: :runtime
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - '>='
122
+ - - ">="
140
123
  - !ruby/object:Gem::Version
141
- version: 0.7.0
124
+ version: 0.7.3
142
125
  - !ruby/object:Gem::Dependency
143
- name: paint
126
+ name: wirb
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - '>='
129
+ - - ">="
148
130
  - !ruby/object:Gem::Version
149
- version: 0.8.6
131
+ version: 1.0.3
150
132
  type: :runtime
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - '>='
136
+ - - ">="
156
137
  - !ruby/object:Gem::Version
157
- version: 0.8.6
138
+ version: 1.0.3
158
139
  - !ruby/object:Gem::Dependency
159
- name: fancy_irb
140
+ name: paint
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - '>='
143
+ - - ">="
164
144
  - !ruby/object:Gem::Version
165
- version: 0.7.3
145
+ version: 0.8.7
166
146
  type: :runtime
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - '>='
150
+ - - ">="
172
151
  - !ruby/object:Gem::Version
173
- version: 0.7.3
152
+ version: 0.8.7
174
153
  - !ruby/object:Gem::Dependency
175
- name: wirb
154
+ name: hirb
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - '>='
157
+ - - "~>"
180
158
  - !ruby/object:Gem::Version
181
- version: 1.0.2
159
+ version: '0.7'
182
160
  type: :runtime
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - '>='
164
+ - - "~>"
188
165
  - !ruby/object:Gem::Version
189
- version: 1.0.2
166
+ version: '0.7'
190
167
  - !ruby/object:Gem::Dependency
191
- name: hirb
168
+ name: coderay
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
- - - ~>
171
+ - - "~>"
196
172
  - !ruby/object:Gem::Version
197
- version: 0.7.1
173
+ version: 1.1.0
198
174
  type: :runtime
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
- - - ~>
178
+ - - "~>"
204
179
  - !ruby/object:Gem::Version
205
- version: 0.7.1
180
+ version: 1.1.0
206
181
  - !ruby/object:Gem::Dependency
207
- name: awesome_print
182
+ name: debugging
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
- - - ~>
185
+ - - "~>"
212
186
  - !ruby/object:Gem::Version
213
- version: 1.2.0
187
+ version: '1.0'
214
188
  type: :runtime
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
- - - ~>
192
+ - - "~>"
220
193
  - !ruby/object:Gem::Version
221
- version: 1.2.0
194
+ version: '1.0'
222
195
  - !ruby/object:Gem::Dependency
223
- name: coderay
196
+ name: awesome_print
224
197
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
198
  requirements:
227
- - - ~>
199
+ - - "~>"
228
200
  - !ruby/object:Gem::Version
229
- version: 1.1.0
201
+ version: '1.2'
230
202
  type: :runtime
231
203
  prerelease: false
232
204
  version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
205
  requirements:
235
- - - ~>
206
+ - - "~>"
236
207
  - !ruby/object:Gem::Version
237
- version: 1.1.0
208
+ version: '1.2'
238
209
  - !ruby/object:Gem::Dependency
239
210
  name: g
240
211
  requirement: !ruby/object:Gem::Requirement
241
- none: false
242
212
  requirements:
243
- - - '>='
213
+ - - ">="
244
214
  - !ruby/object:Gem::Version
245
215
  version: 1.7.2
246
216
  type: :runtime
247
217
  prerelease: false
248
218
  version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
219
  requirements:
251
- - - '>='
220
+ - - ">="
252
221
  - !ruby/object:Gem::Version
253
222
  version: 1.7.2
254
223
  - !ruby/object:Gem::Dependency
255
224
  name: ori
256
225
  requirement: !ruby/object:Gem::Requirement
257
- none: false
258
226
  requirements:
259
- - - ~>
227
+ - - "~>"
260
228
  - !ruby/object:Gem::Version
261
229
  version: 0.1.0
262
230
  type: :runtime
263
231
  prerelease: false
264
232
  version_requirements: !ruby/object:Gem::Requirement
265
- none: false
266
233
  requirements:
267
- - - ~>
234
+ - - "~>"
268
235
  - !ruby/object:Gem::Version
269
236
  version: 0.1.0
270
237
  - !ruby/object:Gem::Dependency
271
238
  name: methodfinder
272
239
  requirement: !ruby/object:Gem::Requirement
273
- none: false
274
240
  requirements:
275
- - - '>='
241
+ - - ">="
276
242
  - !ruby/object:Gem::Version
277
243
  version: 1.2.5
278
244
  type: :runtime
279
245
  prerelease: false
280
246
  version_requirements: !ruby/object:Gem::Requirement
281
- none: false
282
247
  requirements:
283
- - - '>='
248
+ - - ">="
284
249
  - !ruby/object:Gem::Version
285
250
  version: 1.2.5
286
251
  - !ruby/object:Gem::Dependency
287
252
  name: method_locator
288
253
  requirement: !ruby/object:Gem::Requirement
289
- none: false
290
254
  requirements:
291
- - - '>='
255
+ - - ">="
292
256
  - !ruby/object:Gem::Version
293
257
  version: 0.0.4
294
258
  type: :runtime
295
259
  prerelease: false
296
260
  version_requirements: !ruby/object:Gem::Requirement
297
- none: false
298
261
  requirements:
299
- - - '>='
262
+ - - ">="
300
263
  - !ruby/object:Gem::Version
301
264
  version: 0.0.4
302
265
  - !ruby/object:Gem::Dependency
303
266
  name: method_source
304
267
  requirement: !ruby/object:Gem::Requirement
305
- none: false
306
268
  requirements:
307
- - - '>='
269
+ - - ">="
308
270
  - !ruby/object:Gem::Version
309
271
  version: 0.8.2
310
272
  type: :runtime
311
273
  prerelease: false
312
274
  version_requirements: !ruby/object:Gem::Requirement
313
- none: false
314
275
  requirements:
315
- - - '>='
276
+ - - ">="
316
277
  - !ruby/object:Gem::Version
317
278
  version: 0.8.2
318
- description: irbtools makes using irb easier and more fun. Simply put a require "irbtools"
319
- in the .irbrc file in your home directory.
279
+ - !ruby/object:Gem::Dependency
280
+ name: ruby_version
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - "~>"
284
+ - !ruby/object:Gem::Version
285
+ version: '1.0'
286
+ type: :runtime
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - "~>"
291
+ - !ruby/object:Gem::Version
292
+ version: '1.0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: ruby_engine
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - "~>"
298
+ - !ruby/object:Gem::Version
299
+ version: '1.0'
300
+ type: :runtime
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - "~>"
305
+ - !ruby/object:Gem::Version
306
+ version: '1.0'
307
+ - !ruby/object:Gem::Dependency
308
+ name: ruby_info
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - "~>"
312
+ - !ruby/object:Gem::Version
313
+ version: '1.0'
314
+ type: :runtime
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - "~>"
319
+ - !ruby/object:Gem::Version
320
+ version: '1.0'
321
+ - !ruby/object:Gem::Dependency
322
+ name: os
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - "~>"
326
+ - !ruby/object:Gem::Version
327
+ version: '0.9'
328
+ type: :runtime
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - "~>"
333
+ - !ruby/object:Gem::Version
334
+ version: '0.9'
335
+ description: irbtools makes using Ruby's IRB easier and more fun. Put a require 'irbtools'
336
+ in a .irbrc file in your home directory to get started.
320
337
  email: mail@janlelis.de
321
338
  executables: []
322
339
  extensions: []
@@ -324,18 +341,19 @@ extra_rdoc_files:
324
341
  - LICENSE
325
342
  - README.rdoc
326
343
  files:
344
+ - CHANGELOG
345
+ - LICENSE
346
+ - README.rdoc
347
+ - Rakefile
348
+ - irbtools.gemspec
327
349
  - lib/irbtools.rb
328
350
  - lib/irbtools/configure.rb
329
351
  - lib/irbtools/libraries.rb
330
352
  - lib/irbtools/minimal.rb
331
- - CHANGELOG
332
- - Rakefile
333
- - irbtools.gemspec
334
- - LICENSE
335
- - README.rdoc
336
353
  homepage: https://github.com/janlelis/irbtools
337
354
  licenses:
338
355
  - MIT
356
+ metadata: {}
339
357
  post_install_message: |2-
340
358
  ┌── info ──────────────────────────────┐
341
359
  J-_-L │ https://github.com/janlelis/irbtools │
@@ -346,21 +364,19 @@ rdoc_options: []
346
364
  require_paths:
347
365
  - lib
348
366
  required_ruby_version: !ruby/object:Gem::Requirement
349
- none: false
350
367
  requirements:
351
- - - '>='
368
+ - - ">="
352
369
  - !ruby/object:Gem::Version
353
370
  version: 1.9.2
354
371
  required_rubygems_version: !ruby/object:Gem::Requirement
355
- none: false
356
372
  requirements:
357
- - - '>='
373
+ - - ">="
358
374
  - !ruby/object:Gem::Version
359
375
  version: '0'
360
376
  requirements: []
361
377
  rubyforge_project:
362
- rubygems_version: 1.8.26
378
+ rubygems_version: 2.2.1
363
379
  signing_key:
364
- specification_version: 3
380
+ specification_version: 4
365
381
  summary: irbtools happy irb.
366
382
  test_files: []