irbtools-more 2.1.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/{CHANGELOG-MORE.txt → CHANGELOG-MORE.md} +30 -12
- data/MIT-LICENSE.txt +1 -1
- data/README.md +127 -137
- data/irbtools-more.gemspec +5 -5
- data/lib/irbtools/more.rb +8 -7
- data/lib/irbtools/more/version.rb +3 -1
- metadata +35 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ba8e13d2cf923781f920d2397d185a7a53d3bcc8b61fd5690805ee825c27aef7
|
4
|
+
data.tar.gz: 95d57f8969dccce77443b7289ca11f44f451c3cb93cd442352f3c564eb8ca8aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7d058ed97b45bcfca5b592b2bd2a7eae5d191510e80574597cba85ec99ca55d5166deab0d305e5e1e9f6a16b9a828771ceeb12272709a30a3c8fcfae0b80517
|
7
|
+
data.tar.gz: '00482dac31b44f053aba8669f4fe4b593c318427184c55fa2328d36173a603dc7b8828c60396ed48ab9570ae57b16795395cce7fda1c6a1553f8b660c3350ba8'
|
@@ -1,45 +1,63 @@
|
|
1
|
-
|
1
|
+
# Irbtools (More) Changelog
|
2
|
+
|
3
|
+
## 2.4.0
|
4
|
+
* Bump looksee & core_docs for Ruby 2.7
|
5
|
+
|
6
|
+
## 2.3.1
|
7
|
+
* Loosen irbrtools-more dependency to irbtools (allow 3.x)
|
8
|
+
|
9
|
+
## 2.3.0
|
10
|
+
* Remove dependency to did_you_mean, since it is now a default gem anyways
|
11
|
+
* Version bump: irbtools, looksee, core_docs, and binding_of_caller
|
12
|
+
|
13
|
+
## 2.2.1
|
14
|
+
* Add core_docs dependency
|
15
|
+
|
16
|
+
## 2.2.0
|
17
|
+
* Re-enable looksee (not comptible with Ruby 2.3, but does not crash anymore during install)
|
18
|
+
|
19
|
+
## 2.1.0
|
2
20
|
* Ruby 2.3 compat: Upgrade did_you_mean to ~> 1.0
|
3
21
|
* Ruby 2.3 compat: Disable looksee gem as long it is not adapted for 2.3
|
4
22
|
|
5
|
-
|
23
|
+
## 2.0.0
|
6
24
|
* Integrate more-repo into irbtools main repo
|
7
25
|
* Improve auto-completion
|
8
26
|
* Remove Object#l alias for looksee, use Object#lp
|
9
27
|
|
10
|
-
|
28
|
+
## 1.7.2
|
11
29
|
* Bump did_you_mean and looksee (Ruby 2.2 compat)
|
12
30
|
|
13
|
-
|
31
|
+
## 1.7.1
|
14
32
|
* Bump did_you_mean version
|
15
33
|
|
16
|
-
|
34
|
+
## 1.7.0
|
17
35
|
* Bump looksee
|
18
36
|
* Ruby 1.9.3 required
|
19
37
|
* Add did_you_mean gem
|
20
38
|
|
21
|
-
|
39
|
+
## 1.6.1
|
22
40
|
* Add binding_of_caller
|
23
41
|
* Alias looksee to Object#lp instead of Object#ls
|
24
42
|
|
25
|
-
|
43
|
+
## 1.6.0
|
26
44
|
* (nothing)
|
27
45
|
|
28
|
-
|
46
|
+
## 1.5.2
|
29
47
|
* Ruby 2.1 Compatibility / Update looksee gem
|
30
48
|
* Be less restrictive in gem dependencies
|
31
49
|
|
32
|
-
|
50
|
+
## 1.5.1
|
33
51
|
* (nothing)
|
34
52
|
|
35
|
-
|
53
|
+
## 1.5.0
|
36
54
|
* Ruby 2.0 Compatibility
|
37
55
|
* Drop 1.8 Support
|
38
56
|
* Drop DrX gem
|
39
57
|
|
40
|
-
|
58
|
+
## 1.2.0
|
41
59
|
* add looksee
|
42
60
|
|
43
|
-
|
61
|
+
## 0.3.2
|
44
62
|
* load in threads (irbtools 1.0)
|
45
63
|
* remove jeweler
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,22 @@
|
|
1
|
-
# Irbtools [![version](https://badge.fury.io/rb/irbtools.svg)](
|
2
|
-
|
3
|
-
_ _| | | |
|
4
|
-
| __| __ \ __| _ \ _ \ | __|
|
5
|
-
| | | | | ( | ( | | \__ \
|
6
|
-
___| _| _.__/ \__| \___/ \___/ _| ____/
|
1
|
+
# Irbtools [![version](https://badge.fury.io/rb/irbtools.svg)](https://badge.fury.io/rb/irbtools) [![[travis]](https://travis-ci.org/janlelis/irbtools.svg)](https://travis-ci.org/janlelis/irbtools)
|
7
2
|
|
3
|
+
```ruby
|
4
|
+
_| _|
|
5
|
+
_|_|_| _|_|_| _|_|_| _| _| _| _|_|_| _|
|
6
|
+
_| _| _| _| _| _|_|_|_| _|_| _|_| _| _|_|_| _| _| _|
|
7
|
+
_| _|_|_| _|_|_| _| _| _| _| _| _| _|_| _| _|_| _|
|
8
|
+
_| _| _| _| _| _| _| _| _| _| _| _|_| _| _| _|
|
9
|
+
_|_|_| _| _| _|_|_| _| _|_| _|_| _|_| _| _|_|_| _| _|_|_| _|
|
10
|
+
_| _|
|
11
|
+
```
|
8
12
|
|
9
|
-
Improvements for Ruby's IRB console, like
|
13
|
+
Improvements for Ruby's IRB console, like syntax highlighted output and a lot of
|
10
14
|
debugging and introspection methods. Unlike with PRY, you are still in your
|
11
15
|
normal IRB. It is designed to work out-of-the-box, so there is no reason to not
|
12
16
|
use it!
|
13
17
|
|
18
|
+
**Compatible with Ruby 2.7's new IRB**
|
19
|
+
|
14
20
|
## Setup
|
15
21
|
|
16
22
|
$ gem install irbtools
|
@@ -20,177 +26,161 @@ just create a new one. Add the following content:
|
|
20
26
|
|
21
27
|
require 'irbtools'
|
22
28
|
|
23
|
-
You also need to add irbtools to your project's Gemfile
|
29
|
+
You also need to add irbtools to your project's `Gemfile`:
|
24
30
|
|
25
31
|
gem 'irbtools', require: 'irbtools/binding'
|
26
32
|
|
27
|
-
Then start IRB (with **Irbtools** loaded) from the
|
33
|
+
Then start IRB (with **Irbtools** loaded) from the terminal or directly from your code with:
|
28
34
|
|
29
35
|
binding.irb
|
30
36
|
|
31
|
-
|
32
|
-
|
33
|
-
irb
|
34
|
-
|
35
|
-
### More Improvements
|
37
|
+
### Enable More Gems
|
36
38
|
|
37
39
|
Some suggested gems will not be installed to ensure wider general support. For
|
38
|
-
the full feature set, you can
|
40
|
+
the full feature set, you can install **irbtools-more**. To do so, change your
|
39
41
|
`.irbrc` to:
|
40
42
|
|
41
43
|
require 'irbtools/more'
|
42
44
|
|
43
|
-
and edit your Gemfile to
|
45
|
+
and edit your `Gemfile` to read like this:
|
44
46
|
|
45
47
|
gem 'irbtools-more', require: 'irbtools/binding'
|
46
48
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
*
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
`
|
102
|
-
`
|
103
|
-
`
|
104
|
-
`
|
105
|
-
`
|
106
|
-
`
|
107
|
-
`
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
`
|
114
|
-
`
|
115
|
-
`
|
116
|
-
`
|
117
|
-
`
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
`
|
124
|
-
`
|
125
|
-
`
|
126
|
-
`
|
127
|
-
`
|
128
|
-
`
|
129
|
-
`
|
130
|
-
`
|
131
|
-
`
|
132
|
-
`
|
133
|
-
`
|
134
|
-
`
|
135
|
-
`
|
136
|
-
|
137
|
-
|
138
|
-
|
49
|
+
## Features
|
50
|
+
|
51
|
+
### Irbtools' IRB Improvements
|
52
|
+
|
53
|
+
- Syntax highlighting ([wirb](https://github.com/janlelis/wirb/) / [fancy_irb](https://github.com/janlelis/fancy_irb))
|
54
|
+
- Loads included third party libraries effeciently
|
55
|
+
- Customizable views for specfic options using [hirb](https://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html)
|
56
|
+
- ActiveRecord results get displayed as a table
|
57
|
+
- **(irbtools-more)** [Improved tab-completion](https://tagaholic.me/bond/)
|
58
|
+
|
59
|
+
### Irbtools' Included Methods for IRB
|
60
|
+
|
61
|
+
#### Highlights
|
62
|
+
|
63
|
+
- Lookup and manipulate instance variables / methods with ease using [object_shadow](https://github.com/janlelis/object_shadow/)
|
64
|
+
- **(irbtools-more)** Go even further with [looksee](https://github.com/oggy/looksee), the best lookup path inspection tool out there
|
65
|
+
- Display a method's source code using [code](https://github.com/janlelis/code)
|
66
|
+
- Inline access to *ri* docs by [ori](https://github.com/dadooda/ori)
|
67
|
+
- If you have deactivated *ri*, you can re-generate the docs with something like: `rvm docs generate-ri`
|
68
|
+
- Find methods that turn one value into another value with [methodfinder](https://github.com/citizen428/methodfinder)
|
69
|
+
- [Use VIM from inside IRB](https://github.com/jberkel/interactive_editor)
|
70
|
+
|
71
|
+
#### Ruby Introspection
|
72
|
+
|
73
|
+
Method / Constant | Arguments | Description | Provided By
|
74
|
+
------ | ---------- | -----------|-
|
75
|
+
`code` | object = self, method_name | Display the method source with syntax highlighting. Will also look up C methods if the **core_docs** gem (which is included in **irbtools-more**) is available. | [code](https://github.com/janlelis/code)
|
76
|
+
`howtocall` | object = self, method_or_proc | Display parameter names and types you will need to call a method | [debugging/howtocall](https://github.com/janlelis/debugging#howtocallobj--self-method_or_proc)
|
77
|
+
`mf` | object1, object2 | Find methods which turn one value into another value | [methodfinder](https://github.com/citizen428/methodfinder)
|
78
|
+
`mof` | object, depth = 0, grep = // | Print a method list, ordered by modules (looksee lite) | [debugging](https://github.com/janlelis/debugging#mofobj-depth--nil)
|
79
|
+
`Object#lp` | | **(irbtools-more)** Supercharged method introspection in IRB | [looksee](https://github.com/oggy/looksee)
|
80
|
+
`Object#ri` | *args | Show ri documentation for this object or method | [ori](https://github.com/dadooda/ori)
|
81
|
+
`Object#shadow` | | Manipulate instance variables and learn about callable methods | [object_shadow](https://github.com/janlelis/object_shadow/)
|
82
|
+
|
83
|
+
#### Platform Info
|
84
|
+
|
85
|
+
Method / Constant | Arguments | Description | Provided By
|
86
|
+
------ | ---------- | -----------|-
|
87
|
+
`OS` | | Query operating system information | [os](https://github.com/rdp/os)
|
88
|
+
`RubyVersion` | | Show the Ruby version | [ruby_version](https://github.com/janlelis/ruby_version)
|
89
|
+
`RubyEngine` | | Show the Ruby engine | [ruby_engine](https://github.com/janlelis/ruby_engine)
|
90
|
+
`RubyInfo` | | List general information about the Ruby environment | [ruby_info](https://github.com/janlelis/ruby_info)
|
91
|
+
|
92
|
+
#### General Utils
|
93
|
+
|
94
|
+
Method / Constant | Arguments | Description | Provided By
|
95
|
+
------ | ---------- | -----------|-
|
96
|
+
`beep` | | Ring terminal bell | [debugging/beep](https://github.com/janlelis/debugging#beep)
|
97
|
+
`copy` | string | Copy something to the clipboard | [clipboard](https://github.com/janlelis/clipboard)
|
98
|
+
`colorize` | string | Syntax-highlight a string of Ruby code | [coderay](https://github.com/rubychan/coderay), irbtools
|
99
|
+
`ed` / `emacs` / `mate` / `mvim` / `nano` / `vi` / `vim` | filename = nil | Start an editor in the session context | [interactive_editor](https://github.com/jberkel/interactive_editor)
|
100
|
+
`ld` | file | Shortcut for `load lib.to_s + '.rb'` | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
101
|
+
`pa` | string, color | Print a string in the specified color | [paint](https://github.com/janlelis/paint#utilities)
|
102
|
+
`page` | what, options = {} | Use pager to improve viewing longer content | [hirb](https://github.com/cldwalker/hirb#pager), irbtools
|
103
|
+
`paste` | | Paste clipboard content | [clipboard](https://github.com/janlelis/clipboard)
|
104
|
+
`q` | *args | Like `Kernel#p`, but prints results on one line, with different colors | [debugging/q](https://github.com/janlelis/debugging#qargs)
|
105
|
+
`re` | string, regexg, groups = nil | Regex debugging helper | [debugging/re](https://github.com/janlelis/debugging#qargs)
|
106
|
+
`rq` | lib | Shortcut for `require lib.to_s`. Use it like this: `rq:prime` | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
107
|
+
`rr` | lib | Shortcut for `require_relative lib.to_s` | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
108
|
+
`rrq` / `rerequire` | lib | Hack to remove a library from `$LOADED_FEATURES` and `require` it again | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
109
|
+
`wp` | inspect_string | Syntax-highlight a Ruby return value | [wirb](https://github.com/janlelis/wirb#kernelwp)
|
110
|
+
|
111
|
+
#### IRB Support
|
112
|
+
|
113
|
+
Method / Constant | Arguments | Description | Provided By
|
114
|
+
------ | ---------- | -----------|-
|
115
|
+
`clear` | | Clear the terminal | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
116
|
+
`copy_input` | | Copy session history to the clipboard | [clipboard](https://github.com/janlelis/clipboard), irbtools
|
117
|
+
`copy_output` | | Copy session output history to the clipboard | [clipboard](https://github.com/janlelis/clipboard), irbtools
|
118
|
+
`reset!` | | Restart the current IRB session | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
119
|
+
`session_history` | number_of_lines = nil | Return a string of all commands issued in the current session | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
120
|
+
|
121
|
+
#### Files and Navigation
|
122
|
+
|
123
|
+
Method / Constant | Arguments | Description | Provided By
|
124
|
+
------ | ---------- | -----------|-
|
125
|
+
`cat` | path | Read file contents | [every_day_irb](https://github.com/janlelis/every_day_irb)
|
126
|
+
`cd` | path = nil | Change the directory. Can also be used in these forms: `~cd` (change to home directory), `-cd` (change to previous directory) | [cd](https://github.com/janlelis/cd)
|
127
|
+
`chmod` | mode, path | Set file mode for file | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
128
|
+
`chmod_R` | mode, path | Set file mode for directory | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
129
|
+
`chown` | user, group, path | Set file owner for file | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
130
|
+
`chown_R` | user, group, path | Set file owner for directory | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
131
|
+
`cp` | source, destination | Copy file | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
132
|
+
`cp_r` | source, destination | Copy directory | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
133
|
+
`ls` | path = "." | List directory content | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
134
|
+
`ln` | target, link | Create symlink (`ln`) | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
135
|
+
`ln_s` | target, link | Create symlink (`ln -s`) | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
136
|
+
`ln_sf` | target, link | Create symlink (`ln -sf`) | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
137
|
+
`mkdir` | path | Create a new directory | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
138
|
+
`mkdir_p` | path | Create a new directory (with `-p` option) | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
139
|
+
`cp` | source, destination | Move file or directory | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
140
|
+
`pwd` | | Return current directory | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
141
|
+
`ray` | path | Syntax highlight a Ruby file | [coderay](https://github.com/rubychan/coderay), irbtools
|
142
|
+
`rm` | path | Delete a file (`rm`) | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
143
|
+
`rm_r` | path | Delete a file or directory (`rm -r`) | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
144
|
+
`rm_rf` | path | Delete a file or directory, with force (`rm -rf`) | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
145
|
+
`rmdir` | path | Delete an empty directory | [fileutils](https://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/FileUtils.html)
|
146
|
+
|
147
|
+
### Advanced Tweaking
|
139
148
|
|
140
149
|
See [CONFIGURE.md](https://github.com/janlelis/irbtools/blob/master/CONFIGURE.md).
|
141
150
|
|
142
|
-
|
143
151
|
### Troubleshooting: ANSI colors on Windows
|
144
152
|
|
145
153
|
Windows: ANSI support can be enabled via
|
146
154
|
[ansicon](https://github.com/adoxa/ansicon) or
|
147
|
-
[ConEmu](
|
148
|
-
|
155
|
+
[ConEmu](https://conemu.github.io/) or
|
156
|
+
[WSL](https://docs.microsoft.com/en-us/windows/wsl/about).
|
149
157
|
|
150
158
|
### Troubleshooting: Clipboard not working on Linux
|
151
159
|
|
152
|
-
Clipboard support requires **
|
153
|
-
install xclip`
|
154
|
-
|
155
|
-
|
156
|
-
### Troubleshooting: Unicode causes wrong display widths
|
157
|
-
|
158
|
-
If you use double-width unicode characters, you will need to paste the
|
159
|
-
following snippet to your `~/.irbrc` file.
|
160
|
-
|
161
|
-
```ruby
|
162
|
-
Irbtools.replace_library_callback :fancy_irb do
|
163
|
-
FancyIrb.start east_asian_width: true
|
164
|
-
end
|
165
|
-
```
|
166
|
-
|
167
|
-
This setting is deactivated by default, because of performance issues.
|
160
|
+
Clipboard support requires **xsel** or **xclip**. On ubuntu, do:
|
168
161
|
|
162
|
+
sudo apt-get install xsel
|
169
163
|
|
170
164
|
### Hint: Debundle
|
171
165
|
|
172
|
-
If you do not want to add **Irbtools** to your project's Gemfile
|
166
|
+
If you do not want to add **Irbtools** to your project's `Gemfile`, you will need a
|
173
167
|
[debundle hack](https://github.com/janlelis/debundle.rb). Put it at the
|
174
|
-
beginning of your `~/.irbrc` file and you are fine
|
175
|
-
|
168
|
+
beginning of your `~/.irbrc` file and you are fine.
|
176
169
|
|
177
170
|
### Hint: No ANSI / IRB extension
|
178
171
|
|
179
|
-
You can use Irbtools without colors/
|
172
|
+
You can use **Irbtools** without colors/IRB extensions. To do so, put this into `~/.irbrc`:
|
180
173
|
|
181
174
|
```ruby
|
182
175
|
require 'irbtools/non_fancy'
|
183
176
|
Irbtools.start
|
184
177
|
```
|
185
178
|
|
179
|
+
### Hint: Web Console and Other Approaches
|
186
180
|
|
187
|
-
|
188
|
-
|
189
|
-
**Irbtools** works well together with the amazing
|
190
|
-
[web-console!](https://github.com/rails/web-console)
|
191
|
-
|
181
|
+
**Irbtools** works well together with the amazing [web-console!](https://github.com/rails/web-console), and also with the [ripl](https://github.com/cldwalker/ripl) IRB alternative.
|
192
182
|
|
193
183
|
## J-_-L
|
194
184
|
|
195
|
-
Copyright (c) 2010-
|
185
|
+
Copyright (c) 2010-2019 Jan Lelis <https://janlelis.com> released under the MIT
|
196
186
|
license.
|
data/irbtools-more.gemspec
CHANGED
@@ -18,16 +18,16 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.extra_rdoc_files = %w[
|
20
20
|
README.md
|
21
|
-
CHANGELOG-MORE.
|
21
|
+
CHANGELOG-MORE.md
|
22
22
|
MIT-LICENSE.txt
|
23
23
|
]
|
24
24
|
s.license = 'MIT'
|
25
25
|
|
26
26
|
s.required_ruby_version = '~> 2.0'
|
27
|
-
s.add_dependency 'irbtools', '
|
27
|
+
s.add_dependency 'irbtools', '>= 2.2', '< 4.0'
|
28
28
|
s.add_dependency 'bond', '~> 0.5'
|
29
|
-
|
30
|
-
s.add_dependency '
|
31
|
-
s.add_dependency '
|
29
|
+
s.add_dependency 'looksee' , '~> 4.2'
|
30
|
+
s.add_dependency 'core_docs', '>= 0.9.5'
|
31
|
+
s.add_dependency 'binding_of_caller', '~> 0.8'
|
32
32
|
end
|
33
33
|
|
data/lib/irbtools/more.rb
CHANGED
@@ -9,13 +9,14 @@ Irbtools.add_library :bond, thread: :more1 do
|
|
9
9
|
Bond.start :gems => %w[irbtools]
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
12
|
+
begin
|
13
|
+
# Object#l method for inspecting its lookup path
|
14
|
+
Irbtools.add_library 'looksee', thread: :more2 do
|
15
|
+
Looksee.rename :lp
|
16
|
+
end
|
17
|
+
rescue LoadError
|
18
|
+
# do not load if not supported
|
19
|
+
end
|
19
20
|
|
20
21
|
# load now
|
21
22
|
Irbtools.start if standalone
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irbtools-more
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.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:
|
11
|
+
date: 2019-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: irbtools
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.2'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '4.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.2'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '4.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bond
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,33 +45,47 @@ dependencies:
|
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: '0.5'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: looksee
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '4.2'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '4.2'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
62
|
+
name: core_docs
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.9.5
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.9.5
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: binding_of_caller
|
57
77
|
requirement: !ruby/object:Gem::Requirement
|
58
78
|
requirements:
|
59
79
|
- - "~>"
|
60
80
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
81
|
+
version: '0.8'
|
62
82
|
type: :runtime
|
63
83
|
prerelease: false
|
64
84
|
version_requirements: !ruby/object:Gem::Requirement
|
65
85
|
requirements:
|
66
86
|
- - "~>"
|
67
87
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
88
|
+
version: '0.8'
|
69
89
|
description: irbtools-more adds bond and looksee to IRB (Gems that use core extensions).
|
70
90
|
Simply put a require "irbtools/more" in the .irbrc file in your home directory to
|
71
91
|
get started.
|
@@ -74,10 +94,10 @@ executables: []
|
|
74
94
|
extensions: []
|
75
95
|
extra_rdoc_files:
|
76
96
|
- README.md
|
77
|
-
- CHANGELOG-MORE.
|
97
|
+
- CHANGELOG-MORE.md
|
78
98
|
- MIT-LICENSE.txt
|
79
99
|
files:
|
80
|
-
- CHANGELOG-MORE.
|
100
|
+
- CHANGELOG-MORE.md
|
81
101
|
- MIT-LICENSE.txt
|
82
102
|
- README.md
|
83
103
|
- irbtools-more.gemspec
|
@@ -103,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
123
|
- !ruby/object:Gem::Version
|
104
124
|
version: '0'
|
105
125
|
requirements: []
|
106
|
-
|
107
|
-
rubygems_version: 2.5.1
|
126
|
+
rubygems_version: 3.0.6
|
108
127
|
signing_key:
|
109
128
|
specification_version: 4
|
110
129
|
summary: irbtools-more adds bond and looksee to IRB.
|