irbtools-more 2.2.0 → 2.4.1
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 +5 -5
- data/{CHANGELOG-MORE.txt → CHANGELOG-MORE.md} +31 -13
- data/MIT-LICENSE.txt +1 -1
- data/README.md +127 -137
- data/irbtools-more.gemspec +8 -8
- data/lib/irbtools/more.rb +0 -3
- data/lib/irbtools/more/version.rb +3 -1
- metadata +34 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 29d41da38055470dfca8c3e5e9bfd2747f2c90cb1bafdcbb02174e8f785d4105
|
|
4
|
+
data.tar.gz: 130fcd84321d10a66c096cd2b4bcb399e37f777a8cf6678e4da25b6b49e279b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d50b9640c0240202bebed2d1dc8ba27c02959ec74aabba35526e0ab0cecd66c70dd7c4f487aa5395107014f722b771edd3aa0e375eef41edc85c63b6beeb96b0
|
|
7
|
+
data.tar.gz: b154212de55d7801dff9e09b8cbc4c7a593f76efebbef00ebe3c51ad56f2f0bc338e2063c0436f97b6153355ad88de6be58a8139ca73a89a1a67190f9a5e5b80
|
|
@@ -1,48 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
# Irbtools (More) Changelog
|
|
2
|
+
|
|
3
|
+
## 2.4.1
|
|
4
|
+
* Loosen Ruby dependency to allow Ruby 3.0
|
|
5
|
+
|
|
6
|
+
## 2.4.0
|
|
7
|
+
* Bump looksee & core_docs for Ruby 2.7
|
|
8
|
+
|
|
9
|
+
## 2.3.1
|
|
10
|
+
* Loosen irbrtools-more dependency to irbtools (allow 3.x)
|
|
11
|
+
|
|
12
|
+
## 2.3.0
|
|
13
|
+
* Remove dependency to did_you_mean, since it is now a default gem anyways
|
|
14
|
+
* Version bump: irbtools, looksee, core_docs, and binding_of_caller
|
|
15
|
+
|
|
16
|
+
## 2.2.1
|
|
17
|
+
* Add core_docs dependency
|
|
18
|
+
|
|
19
|
+
## 2.2.0
|
|
2
20
|
* Re-enable looksee (not comptible with Ruby 2.3, but does not crash anymore during install)
|
|
3
21
|
|
|
4
|
-
|
|
22
|
+
## 2.1.0
|
|
5
23
|
* Ruby 2.3 compat: Upgrade did_you_mean to ~> 1.0
|
|
6
24
|
* Ruby 2.3 compat: Disable looksee gem as long it is not adapted for 2.3
|
|
7
25
|
|
|
8
|
-
|
|
26
|
+
## 2.0.0
|
|
9
27
|
* Integrate more-repo into irbtools main repo
|
|
10
28
|
* Improve auto-completion
|
|
11
29
|
* Remove Object#l alias for looksee, use Object#lp
|
|
12
30
|
|
|
13
|
-
|
|
31
|
+
## 1.7.2
|
|
14
32
|
* Bump did_you_mean and looksee (Ruby 2.2 compat)
|
|
15
33
|
|
|
16
|
-
|
|
34
|
+
## 1.7.1
|
|
17
35
|
* Bump did_you_mean version
|
|
18
36
|
|
|
19
|
-
|
|
37
|
+
## 1.7.0
|
|
20
38
|
* Bump looksee
|
|
21
39
|
* Ruby 1.9.3 required
|
|
22
40
|
* Add did_you_mean gem
|
|
23
41
|
|
|
24
|
-
|
|
42
|
+
## 1.6.1
|
|
25
43
|
* Add binding_of_caller
|
|
26
44
|
* Alias looksee to Object#lp instead of Object#ls
|
|
27
45
|
|
|
28
|
-
|
|
46
|
+
## 1.6.0
|
|
29
47
|
* (nothing)
|
|
30
48
|
|
|
31
|
-
|
|
49
|
+
## 1.5.2
|
|
32
50
|
* Ruby 2.1 Compatibility / Update looksee gem
|
|
33
51
|
* Be less restrictive in gem dependencies
|
|
34
52
|
|
|
35
|
-
|
|
53
|
+
## 1.5.1
|
|
36
54
|
* (nothing)
|
|
37
55
|
|
|
38
|
-
|
|
56
|
+
## 1.5.0
|
|
39
57
|
* Ruby 2.0 Compatibility
|
|
40
58
|
* Drop 1.8 Support
|
|
41
59
|
* Drop DrX gem
|
|
42
60
|
|
|
43
|
-
|
|
61
|
+
## 1.2.0
|
|
44
62
|
* add looksee
|
|
45
63
|
|
|
46
|
-
|
|
64
|
+
## 0.3.2
|
|
47
65
|
* load in threads (irbtools 1.0)
|
|
48
66
|
* remove jeweler
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
# Irbtools [](
|
|
2
|
-
|
|
3
|
-
_ _| | | |
|
|
4
|
-
| __| __ \ __| _ \ _ \ | __|
|
|
5
|
-
| | | | | ( | ( | | \__ \
|
|
6
|
-
___| _| _.__/ \__| \___/ \___/ _| ____/
|
|
1
|
+
# Irbtools [](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-2020 Jan Lelis <https://janlelis.com> released under the MIT
|
|
196
186
|
license.
|
data/irbtools-more.gemspec
CHANGED
|
@@ -7,9 +7,9 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
|
|
8
8
|
s.homepage = 'https://github.com/janlelis/irbtools'
|
|
9
9
|
s.authors = ["Jan Lelis"]
|
|
10
|
+
s.email = ["hi@ruby.consulting"]
|
|
10
11
|
s.summary = 'irbtools-more adds bond and looksee to IRB.'
|
|
11
|
-
s.description = 'irbtools-more
|
|
12
|
-
s.email = 'mail@janlelis.de'
|
|
12
|
+
s.description = 'irbtools-more extend irbtools with some extra functionality which requires a compile step, like the amazing looksee gem. Put `require "irbtools/more"` in the .irbrc file in your home directory to load irbtools together with irbtools/more'
|
|
13
13
|
s.files = %w[
|
|
14
14
|
lib/irbtools/more.rb
|
|
15
15
|
lib/irbtools/more/version.rb
|
|
@@ -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
|
-
s.required_ruby_version = '
|
|
27
|
-
s.add_dependency 'irbtools', '
|
|
26
|
+
s.required_ruby_version = '>= 2.0', '< 4.0'
|
|
27
|
+
s.add_dependency 'irbtools', '>= 2.2', '< 4.0'
|
|
28
28
|
s.add_dependency 'bond', '~> 0.5'
|
|
29
|
-
s.add_dependency 'looksee' , '~> 4.
|
|
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
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.1
|
|
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: 2020-12-24 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
|
+
- - ">="
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2.
|
|
29
|
+
version: '2.2'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '4.0'
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: bond
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -44,54 +50,55 @@ dependencies:
|
|
|
44
50
|
requirements:
|
|
45
51
|
- - "~>"
|
|
46
52
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '4.
|
|
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: '4.
|
|
60
|
+
version: '4.2'
|
|
55
61
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
62
|
+
name: core_docs
|
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
|
58
64
|
requirements:
|
|
59
|
-
- - "
|
|
65
|
+
- - ">="
|
|
60
66
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
67
|
+
version: 0.9.5
|
|
62
68
|
type: :runtime
|
|
63
69
|
prerelease: false
|
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
71
|
requirements:
|
|
66
|
-
- - "
|
|
72
|
+
- - ">="
|
|
67
73
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
74
|
+
version: 0.9.5
|
|
69
75
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
76
|
+
name: binding_of_caller
|
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
|
72
78
|
requirements:
|
|
73
79
|
- - "~>"
|
|
74
80
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
81
|
+
version: '0.8'
|
|
76
82
|
type: :runtime
|
|
77
83
|
prerelease: false
|
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
85
|
requirements:
|
|
80
86
|
- - "~>"
|
|
81
87
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
83
|
-
description: irbtools-more
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
email:
|
|
88
|
+
version: '0.8'
|
|
89
|
+
description: irbtools-more extend irbtools with some extra functionality which requires
|
|
90
|
+
a compile step, like the amazing looksee gem. Put `require "irbtools/more"` in the
|
|
91
|
+
.irbrc file in your home directory to load irbtools together with irbtools/more
|
|
92
|
+
email:
|
|
93
|
+
- hi@ruby.consulting
|
|
87
94
|
executables: []
|
|
88
95
|
extensions: []
|
|
89
96
|
extra_rdoc_files:
|
|
90
97
|
- README.md
|
|
91
|
-
- CHANGELOG-MORE.
|
|
98
|
+
- CHANGELOG-MORE.md
|
|
92
99
|
- MIT-LICENSE.txt
|
|
93
100
|
files:
|
|
94
|
-
- CHANGELOG-MORE.
|
|
101
|
+
- CHANGELOG-MORE.md
|
|
95
102
|
- MIT-LICENSE.txt
|
|
96
103
|
- README.md
|
|
97
104
|
- irbtools-more.gemspec
|
|
@@ -108,17 +115,19 @@ require_paths:
|
|
|
108
115
|
- lib
|
|
109
116
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
117
|
requirements:
|
|
111
|
-
- - "
|
|
118
|
+
- - ">="
|
|
112
119
|
- !ruby/object:Gem::Version
|
|
113
120
|
version: '2.0'
|
|
121
|
+
- - "<"
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '4.0'
|
|
114
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
125
|
requirements:
|
|
116
126
|
- - ">="
|
|
117
127
|
- !ruby/object:Gem::Version
|
|
118
128
|
version: '0'
|
|
119
129
|
requirements: []
|
|
120
|
-
|
|
121
|
-
rubygems_version: 2.4.8
|
|
130
|
+
rubygems_version: 3.1.2
|
|
122
131
|
signing_key:
|
|
123
132
|
specification_version: 4
|
|
124
133
|
summary: irbtools-more adds bond and looksee to IRB.
|