irbtools-more 1.7.2 → 2.0.0
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.
- checksums.yaml +4 -4
- data/{CHANGELOG → CHANGELOG-MORE.txt} +5 -0
- data/{MIT-LICENSE → MIT-LICENSE.txt} +0 -0
- data/README.md +195 -0
- data/irbtools-more.gemspec +21 -10
- data/lib/bond/completions/irbtools.rb +88 -9
- data/lib/irbtools/more.rb +6 -27
- data/lib/irbtools/more/version.rb +5 -0
- metadata +19 -24
- data/README.rdoc +0 -40
- data/Rakefile +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff4dd7105b11ed9d3fd8b5237f40b8acbfe681e9
|
4
|
+
data.tar.gz: f96ebacf9fc0890463e36d14e3d618eddfd3bde6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c44bd5ff8423af18cd1daaeaa171642c615aa70bac09fb05acadc7b5cc78df57b2b465e4abc64153a9decc4428be9d5dcd45c47428485996b33cd99448e3a5c9
|
7
|
+
data.tar.gz: 7fc54f0e622be8906f04682acd5599edc53ad83879d2867f48bbde1d437ed9aceeb3253637766c684db25a677181f89d66089c7935e993f2fc2136eb702f6d28
|
File without changes
|
data/README.md
ADDED
@@ -0,0 +1,195 @@
|
|
1
|
+
# Irbtools [](http://badge.fury.io/rb/irbtools)
|
2
|
+
|
3
|
+
_ _| | | |
|
4
|
+
| __| __ \ __| _ \ _ \ | __|
|
5
|
+
| | | | | ( | ( | | \__ \
|
6
|
+
___| _| _.__/ \__| \___/ \___/ _| ____/
|
7
|
+
|
8
|
+
|
9
|
+
Improvements for Ruby's IRB console, like colored output and a lot of
|
10
|
+
debugging and introspection methods. Unlike with PRY, you are still in your
|
11
|
+
normal IRB. It is designed to work out-of-the-box, so there is no reason to not
|
12
|
+
use it!
|
13
|
+
|
14
|
+
## Setup
|
15
|
+
|
16
|
+
$ gem install irbtools
|
17
|
+
|
18
|
+
IRB executes code in `~/.irbrc` on start-up. If the file does not exist, yet,
|
19
|
+
just create a new one. Add the following content:
|
20
|
+
|
21
|
+
require 'irbtools'
|
22
|
+
|
23
|
+
You also need to add irbtools to your project's Gemfile:
|
24
|
+
|
25
|
+
gem 'irbtools', require: 'irbtools/binding'
|
26
|
+
|
27
|
+
Then start IRB (with **Irbtools** loaded) from the console or directly from your code with:
|
28
|
+
|
29
|
+
binding.irb
|
30
|
+
|
31
|
+
If the `binding_of_caller` gem is available (e.g. see below), you can omit the `binding`:
|
32
|
+
|
33
|
+
irb
|
34
|
+
|
35
|
+
### More Improvements
|
36
|
+
|
37
|
+
Some suggested gems will not be installed to ensure wider general support. For
|
38
|
+
the full feature set, you can add **irbtools-more** and change your
|
39
|
+
`.irbrc` to:
|
40
|
+
|
41
|
+
require 'irbtools/more'
|
42
|
+
|
43
|
+
and edit your Gemfile to
|
44
|
+
|
45
|
+
gem 'irbtools-more', require: 'irbtools/binding'
|
46
|
+
|
47
|
+
|
48
|
+
### Included Gems and Libraries
|
49
|
+
#### IRB Improvements
|
50
|
+
|
51
|
+
* Colored output:
|
52
|
+
[wirb](https://github.com/janlelis/wirb/)
|
53
|
+
[fanycy_irb](https://github.com/janlelis/fancy_irb)
|
54
|
+
* Custom views for specific objects:
|
55
|
+
[hirb](http://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html)
|
56
|
+
* **(irbtools-more)** Correction suggestions for misspelled method/constant names:
|
57
|
+
[did_you_mean](https://github.com/yuki24/did_you_mean)
|
58
|
+
* **(irbtools-more)** Better tab-completion:
|
59
|
+
[bond](http://tagaholic.me/bond/)
|
60
|
+
|
61
|
+
#### Utils
|
62
|
+
|
63
|
+
* Useful IRB commands (see below):
|
64
|
+
[every_day_irb](https://github.com/janlelis/irbtools/tree/master/lib/every
|
65
|
+
_day_irb.rb)
|
66
|
+
[debugging](https:/github.com/janlelis/debugging)
|
67
|
+
[fileutils](http://ruby-doc.org/stdlib-2.2.1/libdoc/fileutils/rdoc/FileUtils.html)
|
68
|
+
* Clipboard Access:
|
69
|
+
[clipboard](https://github.com/janlelis/clipboard)
|
70
|
+
* Terminal colors:
|
71
|
+
[paint](https://github.com/janlelis/paint)
|
72
|
+
* Load an editor into your IRB session:
|
73
|
+
[interactive_editor](https://github.com/jberkel/interactive_editor)
|
74
|
+
|
75
|
+
#### Introspection
|
76
|
+
|
77
|
+
* Displays a method's source:
|
78
|
+
[code](https://github.com/janlelis/code)
|
79
|
+
* Access to `ri` docs:
|
80
|
+
[ori](https://github.com/dadooda/ori)
|
81
|
+
* Manipulate instance variables with ease:
|
82
|
+
[instance](https://github.com/rubyworks/instance/)
|
83
|
+
* Platform information:
|
84
|
+
[ruby_version](https://github.com/janlelis/ruby_version)
|
85
|
+
[ruby_engine](https://github.com/janlelis/ruby_engine)
|
86
|
+
[os](https://github.com/rdp/os)
|
87
|
+
[ruby_info](https://github.com/janlelis/ruby_info)
|
88
|
+
* Improved method lookup path inspection:
|
89
|
+
[method_locator](https://github.com/ryanlecompte/method_locator)
|
90
|
+
* Finds methods that turn one value into another value:
|
91
|
+
[methodfinder](https://github.com/citizen428/methodfinder)
|
92
|
+
* **irbtools-more** Awesome lookup path inspection:
|
93
|
+
[looksee](https://github.com/oggy/looksee)
|
94
|
+
|
95
|
+
|
96
|
+
### Irbtools Methods
|
97
|
+
|
98
|
+
Besides improving IRB itself, you will get the following methods:
|
99
|
+
|
100
|
+
Method | Arguments | Description
|
101
|
+
------ | ---------- | -----------
|
102
|
+
`beep` | | Ring terminal bell.
|
103
|
+
`cat` | path | Read file contents.
|
104
|
+
`cd` | path = nil | Changes the directory. Can also be used in these forms: `~cd` (change to home directory), `-cd` (change to previous directory).
|
105
|
+
`clear` | | Clear the terminal.
|
106
|
+
`code` | object = self, method_name | Display the method source with syntax highlighting. Will also look up C methods if the **core_docs** gem is available.
|
107
|
+
`colorize` | string | Syntax highlight a Ruby string.
|
108
|
+
`copy` | string | Copy something to the clipboard.
|
109
|
+
`copy_input` | | Copy session history to the clipboard.
|
110
|
+
`copy_output` | | Copy session output history to the clipboard.
|
111
|
+
`ed` / `emacs` / `mate` / `mvim` / `nano` / `vi` / `vim` | filename = nil | Start an editor in the session context.
|
112
|
+
`engine` | | Show the Ruby engine.
|
113
|
+
`g` | *args | Like `Kernel#p`, but using terminal-notifier or growl.
|
114
|
+
`howtocall` | object = self, method_or_proc | Displays parameter names and types for a proc or method.
|
115
|
+
`info` | | List general information about the Ruby environment.
|
116
|
+
`ld` | file | Shortcut for `load lib.to_s + '.rb'`.
|
117
|
+
`ls` | path = "." | List directory content.
|
118
|
+
`mf` | object1, object2 | Find methods that turn one value into another value:w
|
119
|
+
`mof` | object, depth = 0, grep = // | Print a method list, ordered by modules.
|
120
|
+
`os` | | Query operating system information.
|
121
|
+
`pa` | string, color | Print a string in the specified color.
|
122
|
+
`page` | what, options = {} | Page long content.
|
123
|
+
`paste` | | Paste clipboard content.
|
124
|
+
`q` | *args | Like `Kernel#p`, but prints results on one line, with different colors.
|
125
|
+
`ray` | path | Syntax highlight a Ruby file.
|
126
|
+
`re` | string, regexg, groups = nil | Assists you when matching regexes againts strings.
|
127
|
+
`reset!` | | Restart the current IRB session.
|
128
|
+
`rq` | lib | Shortcut for `require lib.to_s`. Use it like this: `rq:prime`.
|
129
|
+
`rrq` / `rerequire` | lib | Hack to remove a library from `$LOADED_FEATURES` and `require` it again.
|
130
|
+
`session_history` | number_of_lines = nil | Return a string of all commands issued in the current session.
|
131
|
+
`version` | | Show the Ruby version.
|
132
|
+
`wp` | inspect_string | Syntax-highlight a Ruby object.
|
133
|
+
`Object#instance` | | Proxy object to read and manipulate instance variables / run eval.
|
134
|
+
`Object#lp` | | **irbtools-more** Supercharged method introspection in IRB
|
135
|
+
`Object#mlp` / `Object#method_lookup_path` | | Traverse an object's method lookup path to find all places where a method may be defined.
|
136
|
+
`Object#ri` | *args | Show ri documentation for this object or method.
|
137
|
+
|
138
|
+
|
139
|
+
### Advanced tweaking
|
140
|
+
|
141
|
+
See [CONFIGURE.md](https://github.com/janlelis/irbtools/blob/master/CONFIGURE.md).
|
142
|
+
|
143
|
+
|
144
|
+
### Troubleshooting: ANSI colors on Windows
|
145
|
+
|
146
|
+
Windows: ANSI support can be enabled via
|
147
|
+
[ansicon](https://github.com/adoxa/ansicon) or
|
148
|
+
[ConEmu](http://code.google.com/p/conemu-maximus5/).
|
149
|
+
|
150
|
+
|
151
|
+
### Troubleshooting: Clipboard not working on Linux
|
152
|
+
|
153
|
+
Clipboard support requires **xclip** or **xsel**. On ubuntu, do: `sudo apt-get
|
154
|
+
install xclip`
|
155
|
+
|
156
|
+
|
157
|
+
### Troubleshooting: Unicode causes wrong display widths
|
158
|
+
|
159
|
+
If you use double-width unicode characterss, you will need to paste the
|
160
|
+
following snippet to your `.irbrc` file.
|
161
|
+
|
162
|
+
Irbtools.replace_library_callback :fancy_irb do
|
163
|
+
FancyIrb.start east_asian_width: true
|
164
|
+
end
|
165
|
+
|
166
|
+
This setting is deactivated by default, because of performance issues.
|
167
|
+
|
168
|
+
|
169
|
+
### Hint: Debundle
|
170
|
+
|
171
|
+
If you do not want to add **Irbtools** to your project's Gemfile, you will need a
|
172
|
+
[debundle hack](https://github.com/janlelis/debundle.rb). Put it at the
|
173
|
+
beginning of your `~/.irbrc` file and you are fine (until it breaks).
|
174
|
+
|
175
|
+
|
176
|
+
### Hint: No ANSI / IRB extension
|
177
|
+
|
178
|
+
You can use Irbtools without colors/irb extensions. To do so, put this into `~/.irbrc`:
|
179
|
+
|
180
|
+
```ruby
|
181
|
+
require 'irbtools/non_fancy'
|
182
|
+
Irbtools.start
|
183
|
+
```
|
184
|
+
|
185
|
+
|
186
|
+
### Hint: Web Console
|
187
|
+
|
188
|
+
**Irbtools** works well together with the amazing
|
189
|
+
[web-console!](https://github.com/rails/web-console)
|
190
|
+
|
191
|
+
|
192
|
+
## J-_-L
|
193
|
+
|
194
|
+
Copyright (c) 2010-2015 Jan Lelis <http://janlelis.com> released under the MIT
|
195
|
+
license.
|
data/irbtools-more.gemspec
CHANGED
@@ -1,22 +1,33 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require File.dirname(__FILE__) + "/lib/irbtools/more"
|
2
|
+
require File.dirname(__FILE__) + "/lib/irbtools/more/version"
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'irbtools-more'
|
6
6
|
s.version = Irbtools::More::VERSION
|
7
|
-
|
7
|
+
|
8
|
+
s.homepage = 'https://github.com/janlelis/irbtools'
|
8
9
|
s.authors = ["Jan Lelis"]
|
9
|
-
s.email = %q{mail@janlelis.de}
|
10
|
-
s.homepage = %q{https://github.com/janlelis/irbtools-more}
|
11
10
|
s.summary = 'irbtools-more adds bond and looksee to IRB.'
|
12
11
|
s.description = 'irbtools-more adds bond and looksee to IRB (Gems that use core extensions). Simply put a require "irbtools/more" in the .irbrc file in your home directory to get started.'
|
13
|
-
s.
|
14
|
-
s.files =
|
15
|
-
|
16
|
-
|
12
|
+
s.email = 'mail@janlelis.de'
|
13
|
+
s.files = %w[
|
14
|
+
lib/irbtools/more.rb
|
15
|
+
lib/irbtools/more/version.rb
|
16
|
+
lib/bond/completions/irbtools.rb
|
17
|
+
irbtools-more.gemspec
|
18
|
+
]
|
19
|
+
s.extra_rdoc_files = %w[
|
20
|
+
README.md
|
21
|
+
CHANGELOG-MORE.txt
|
22
|
+
MIT-LICENSE.txt
|
23
|
+
]
|
24
|
+
s.license = 'MIT'
|
25
|
+
|
26
|
+
s.required_ruby_version = '~> 2.0'
|
27
|
+
s.add_dependency 'irbtools', '~> 2.0'
|
17
28
|
s.add_dependency 'bond', '~> 0.5'
|
18
|
-
s.add_dependency 'looksee' , '~> 3.
|
29
|
+
s.add_dependency 'looksee' , '~> 3.1'
|
19
30
|
s.add_dependency 'binding_of_caller', '~> 0.7'
|
20
|
-
s.add_dependency 'did_you_mean', '~> 0.9', '>= 0.9.
|
31
|
+
s.add_dependency 'did_you_mean', '~> 0.9', '>= 0.9.6'
|
21
32
|
end
|
22
33
|
|
@@ -1,18 +1,97 @@
|
|
1
|
-
#
|
1
|
+
# # #
|
2
|
+
# completion actions
|
2
3
|
|
3
|
-
|
4
|
+
none = ->(*){ [] }
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
send_completion = ->(e){
|
7
|
+
if e.arguments.empty?
|
8
|
+
[':']
|
9
|
+
else
|
10
|
+
e.object.methods.map(&:to_s) - Mission::OPERATORS
|
11
|
+
end
|
12
|
+
}
|
8
13
|
|
9
|
-
|
14
|
+
public_send_completion = ->(e){
|
10
15
|
if e.arguments.empty?
|
11
16
|
[':']
|
12
17
|
else
|
13
|
-
|
14
|
-
(e.object.methods + e.object.private_methods(false)).map {|e| e.to_s } - Mission::OPERATORS
|
18
|
+
e.object.public_methods.map(&:to_s) - Mission::OPERATORS
|
15
19
|
end
|
16
20
|
}
|
17
21
|
|
18
|
-
|
22
|
+
directories = ->(e){
|
23
|
+
if e.arguments.empty?
|
24
|
+
['"']
|
25
|
+
else
|
26
|
+
files(e).select{ |f| File.directory?(f) }
|
27
|
+
end
|
28
|
+
}
|
29
|
+
|
30
|
+
files = ->(e){
|
31
|
+
if e.arguments.empty?
|
32
|
+
['"']
|
33
|
+
else
|
34
|
+
files(e)
|
35
|
+
end
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
ruby_files = ->(e){
|
40
|
+
if e.arguments.empty?
|
41
|
+
['"']
|
42
|
+
else
|
43
|
+
Dir["./**/*.{rb,bundle,dll,so}"].map{ |f| f.sub('./', '') }.uniq
|
44
|
+
end
|
45
|
+
}
|
46
|
+
|
47
|
+
ruby_files_with_load_path = ->(e){
|
48
|
+
if e.arguments.empty?
|
49
|
+
['"']
|
50
|
+
else
|
51
|
+
($:.flat_map{ |lf|
|
52
|
+
Dir["#{lf}/**/*.{rb,bundle,dll,so}"].map{ |f| f.sub(lf + '/', '') }
|
53
|
+
} + Gem.path.flat_map{ |gm|
|
54
|
+
Dir["#{gm}/gems/*/lib/*.{rb,bundle,dll,so}"].map{ |f| f.sub(/^.*\//,'') }
|
55
|
+
}).map{ |f| f.sub(/\.(?:rb|bundle|dll|so)$/, '') }.uniq
|
56
|
+
end
|
57
|
+
}
|
58
|
+
|
59
|
+
# # #
|
60
|
+
# base ruby
|
61
|
+
|
62
|
+
complete method: "Object#send", &send_completion
|
63
|
+
complete method: "Object#method", &send_completion
|
64
|
+
complete method: "Object#public_method", &public_send_completion
|
65
|
+
complete method: "Object#public_send", &public_send_completion
|
66
|
+
|
67
|
+
complete method: "#require", search: :files, &ruby_files_with_load_path
|
68
|
+
complete method: "#rq", search: :files, &ruby_files_with_load_path
|
69
|
+
complete method: "#rerequire", search: :files, &ruby_files_with_load_path
|
70
|
+
complete method: "#rrq", search: :files, &ruby_files_with_load_path
|
71
|
+
complete method: "#require_relative", &ruby_files
|
72
|
+
complete method: "#rr", &ruby_files
|
73
|
+
complete method: "#load", &ruby_files
|
74
|
+
|
75
|
+
# # #
|
76
|
+
# irbtools
|
77
|
+
|
78
|
+
# methods
|
79
|
+
complete method: "#howtocall", &send_completion
|
80
|
+
complete method: "#code", &send_completion
|
81
|
+
complete method: "Object#ri", &send_completion
|
82
|
+
|
83
|
+
# files
|
84
|
+
complete method: "ls", &directories
|
85
|
+
complete method: "cd", &directories
|
86
|
+
complete method: "cat", &files
|
87
|
+
|
88
|
+
# nops
|
89
|
+
complete method: "#reset!", &none
|
90
|
+
complete method: "#clear", &none
|
91
|
+
complete method: "#beep", &none
|
92
|
+
complete method: "#session_history", &none
|
93
|
+
complete method: "#info", &none
|
94
|
+
complete method: "#version", &none
|
95
|
+
complete method: "#engine", &none
|
96
|
+
complete method: "#os", &none
|
97
|
+
complete method: "Object#lp", &none
|
data/lib/irbtools/more.rb
CHANGED
@@ -1,43 +1,22 @@
|
|
1
|
-
# check if loaded_directly to decide if Irbtools.init should be called
|
2
1
|
standalone = !(defined? Irbtools)
|
3
2
|
|
4
|
-
|
5
|
-
module Irbtools
|
6
|
-
module More
|
7
|
-
VERSION = '1.7.2'
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
# require base package
|
12
|
-
if standalone
|
13
|
-
begin
|
14
|
-
require 'irbtools/configure'
|
15
|
-
rescue LoadError
|
16
|
-
raise "Sorry, the irbtools-more package couldn't load, because the irbtools gem is not available"
|
17
|
-
end
|
18
|
-
end
|
3
|
+
require_relative 'more/version'
|
19
4
|
|
20
|
-
|
5
|
+
require 'irbtools/configure'
|
21
6
|
|
22
7
|
# Better auto-completion
|
23
|
-
Irbtools.add_library :bond, :
|
8
|
+
Irbtools.add_library :bond, thread: :more1 do
|
24
9
|
Bond.start :gems => %w[irbtools]
|
25
10
|
end
|
26
11
|
|
27
12
|
# Object#l method for inspecting its lookup path
|
28
|
-
Irbtools.add_library 'looksee',
|
29
|
-
Looksee.rename :
|
30
|
-
class Object; def lp() l end; end
|
13
|
+
Irbtools.add_library 'looksee', thread: :more2 do
|
14
|
+
Looksee.rename :lp
|
31
15
|
end
|
32
16
|
|
33
|
-
# repl method
|
34
|
-
Irbtools.add_library 'binding_of_caller', thread: 'more_3'
|
35
|
-
Irbtools.add_library 'debugging/repl', thread: 'more_3'
|
36
|
-
|
37
17
|
# new guessmethod
|
38
|
-
Irbtools.add_library 'did_you_mean', thread:
|
18
|
+
Irbtools.add_library 'did_you_mean', thread: :more3
|
39
19
|
|
40
20
|
# load now
|
41
21
|
Irbtools.start if standalone
|
42
22
|
|
43
|
-
# J-_-L
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irbtools-more
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: irbtools
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bond
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,20 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
48
|
-
- - ">="
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 3.0.1
|
47
|
+
version: '3.1'
|
51
48
|
type: :runtime
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
52
|
- - "~>"
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
version: '3.
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 3.0.1
|
54
|
+
version: '3.1'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: binding_of_caller
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +75,7 @@ dependencies:
|
|
81
75
|
version: '0.9'
|
82
76
|
- - ">="
|
83
77
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.9.
|
78
|
+
version: 0.9.6
|
85
79
|
type: :runtime
|
86
80
|
prerelease: false
|
87
81
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -91,7 +85,7 @@ dependencies:
|
|
91
85
|
version: '0.9'
|
92
86
|
- - ">="
|
93
87
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.9.
|
88
|
+
version: 0.9.6
|
95
89
|
description: irbtools-more adds bond and looksee to IRB (Gems that use core extensions).
|
96
90
|
Simply put a require "irbtools/more" in the .irbrc file in your home directory to
|
97
91
|
get started.
|
@@ -99,17 +93,18 @@ email: mail@janlelis.de
|
|
99
93
|
executables: []
|
100
94
|
extensions: []
|
101
95
|
extra_rdoc_files:
|
102
|
-
-
|
103
|
-
-
|
96
|
+
- README.md
|
97
|
+
- CHANGELOG-MORE.txt
|
98
|
+
- MIT-LICENSE.txt
|
104
99
|
files:
|
105
|
-
- CHANGELOG
|
106
|
-
- MIT-LICENSE
|
107
|
-
- README.
|
108
|
-
- Rakefile
|
100
|
+
- CHANGELOG-MORE.txt
|
101
|
+
- MIT-LICENSE.txt
|
102
|
+
- README.md
|
109
103
|
- irbtools-more.gemspec
|
110
104
|
- lib/bond/completions/irbtools.rb
|
111
105
|
- lib/irbtools/more.rb
|
112
|
-
|
106
|
+
- lib/irbtools/more/version.rb
|
107
|
+
homepage: https://github.com/janlelis/irbtools
|
113
108
|
licenses:
|
114
109
|
- MIT
|
115
110
|
metadata: {}
|
@@ -119,9 +114,9 @@ require_paths:
|
|
119
114
|
- lib
|
120
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
116
|
requirements:
|
122
|
-
- - "
|
117
|
+
- - "~>"
|
123
118
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
119
|
+
version: '2.0'
|
125
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
121
|
requirements:
|
127
122
|
- - ">="
|
@@ -129,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
124
|
version: '0'
|
130
125
|
requirements: []
|
131
126
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.4.
|
127
|
+
rubygems_version: 2.4.6
|
133
128
|
signing_key:
|
134
129
|
specification_version: 4
|
135
130
|
summary: irbtools-more adds bond and looksee to IRB.
|
data/README.rdoc
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
= irbtools-more
|
2
|
-
|
3
|
-
<tt>irbtools-more</tt> adds more IRB gems which may not build out-of-the-box. Currently included: <tt>bond</tt> for better auto-completion and <tt>looksee</tt> for great method introspection. The <tt>did_you_mean</tt> gem is included to improve error stacktraces. It also adds the <tt>binding_of_caller</tt> gem to enable starting IRB by just calling <tt>repl</tt> anywhere in your code. See the {irbtools readme}[https://github.com/janlelis/irbtools] for details.
|
4
|
-
|
5
|
-
|
6
|
-
== Setup
|
7
|
-
|
8
|
-
=== With bundler
|
9
|
-
|
10
|
-
In your <tt>Gemfile</tt> put:
|
11
|
-
|
12
|
-
gem 'irbtools-more', require: 'debugging/repl'
|
13
|
-
|
14
|
-
|
15
|
-
=== With bundler (debundle hack)
|
16
|
-
|
17
|
-
See {debundle.rb}[https://github.com/janlelis/debundle.rb].
|
18
|
-
|
19
|
-
|
20
|
-
=== Without bundler
|
21
|
-
|
22
|
-
gem install irbtools-more
|
23
|
-
|
24
|
-
|
25
|
-
== Usage
|
26
|
-
|
27
|
-
To use it, put the following in your <tt>~/.irbrc</tt> file (this file is loaded every time you start an irb, just create the file, if it does not exist, yet):
|
28
|
-
|
29
|
-
require 'irbtools/more'
|
30
|
-
|
31
|
-
If you want to customize which libraries you want to use, you can load irbtools-more explicitely:
|
32
|
-
|
33
|
-
require 'irbtools/configure'
|
34
|
-
Irbtools.add_package :more # adds this extension package
|
35
|
-
Irbtools.start
|
36
|
-
|
37
|
-
|
38
|
-
== J-_-L
|
39
|
-
|
40
|
-
Copyright (c) 2010-2015 Jan Lelis, http://janlelis.com. See MIT-LICENSE for details.
|
data/Rakefile
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'fileutils'
|
3
|
-
GEMSPEC = 'irbtools-more.gemspec'
|
4
|
-
|
5
|
-
|
6
|
-
def gemspec
|
7
|
-
@gemspec ||= eval(File.read(GEMSPEC), binding, GEMSPEC)
|
8
|
-
end
|
9
|
-
|
10
|
-
desc "Build the gem"
|
11
|
-
task :gem => :gemspec do
|
12
|
-
sh "gem build " + GEMSPEC
|
13
|
-
FileUtils.mkdir_p 'pkg'
|
14
|
-
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Install the gem locally"
|
18
|
-
task :install => :gem do
|
19
|
-
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version}.gem --no-rdoc --no-ri}
|
20
|
-
end
|
21
|
-
|
22
|
-
desc "Generate the gemspec"
|
23
|
-
task :generate do
|
24
|
-
puts gemspec.to_ruby
|
25
|
-
end
|
26
|
-
|
27
|
-
desc "Validate the gemspec"
|
28
|
-
task :gemspec do
|
29
|
-
gemspec.validate
|
30
|
-
end
|
31
|
-
|
32
|
-
task :default => :test
|