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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 98801068d00f4269582e1803362274432c79db40
4
- data.tar.gz: 528d84e9efc5b1df4f3a89202296d981de4631c0
2
+ SHA256:
3
+ metadata.gz: 29d41da38055470dfca8c3e5e9bfd2747f2c90cb1bafdcbb02174e8f785d4105
4
+ data.tar.gz: 130fcd84321d10a66c096cd2b4bcb399e37f777a8cf6678e4da25b6b49e279b0
5
5
  SHA512:
6
- metadata.gz: 4690cb13e7b83edb96d3f6558728bb7bf0afdb41af3b66a5b8338bbd80306b5a062e6fccbf6aff3544233351aedda937d36474c2f896d1dcff06b6c16e126367
7
- data.tar.gz: 35baf212de3ada31d31294432e1cf87dadcd81cfd7f8d471e6cd19e91450c2442b2772e50aabe0b661b192f471b7c55ea0ec576ab4e2dbd8859805a0e7245f6d
6
+ metadata.gz: d50b9640c0240202bebed2d1dc8ba27c02959ec74aabba35526e0ab0cecd66c70dd7c4f487aa5395107014f722b771edd3aa0e375eef41edc85c63b6beeb96b0
7
+ data.tar.gz: b154212de55d7801dff9e09b8cbc4c7a593f76efebbef00ebe3c51ad56f2f0bc338e2063c0436f97b6153355ad88de6be58a8139ca73a89a1a67190f9a5e5b80
@@ -1,48 +1,66 @@
1
- == 2.2.0
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
- == 2.1.0
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
- == 2.0.0
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
- == 1.7.2
31
+ ## 1.7.2
14
32
  * Bump did_you_mean and looksee (Ruby 2.2 compat)
15
33
 
16
- == 1.7.1
34
+ ## 1.7.1
17
35
  * Bump did_you_mean version
18
36
 
19
- == 1.7.0
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
- == 1.6.1
42
+ ## 1.6.1
25
43
  * Add binding_of_caller
26
44
  * Alias looksee to Object#lp instead of Object#ls
27
45
 
28
- == 1.6.0
46
+ ## 1.6.0
29
47
  * (nothing)
30
48
 
31
- == 1.5.2
49
+ ## 1.5.2
32
50
  * Ruby 2.1 Compatibility / Update looksee gem
33
51
  * Be less restrictive in gem dependencies
34
52
 
35
- == 1.5.1
53
+ ## 1.5.1
36
54
  * (nothing)
37
55
 
38
- == 1.5.0
56
+ ## 1.5.0
39
57
  * Ruby 2.0 Compatibility
40
58
  * Drop 1.8 Support
41
59
  * Drop DrX gem
42
60
 
43
- == 1.2.0
61
+ ## 1.2.0
44
62
  * add looksee
45
63
 
46
- == 0.3.2
64
+ ## 0.3.2
47
65
  * load in threads (irbtools 1.0)
48
66
  * remove jeweler
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2015 Jan Lelis
1
+ Copyright (c) 2010-2020 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.md CHANGED
@@ -1,16 +1,22 @@
1
- # Irbtools [![version](https://badge.fury.io/rb/irbtools.svg)](http://badge.fury.io/rb/irbtools)
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 colored output and a lot of
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 console or directly from your code with:
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
- If the `binding_of_caller` gem is available (e.g. see below), you can omit the `binding`:
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 add **irbtools-more** and change your
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
- ### 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_day_irb.rb)
65
- [debugging](https://github.com/janlelis/debugging)
66
- [fileutils](http://ruby-doc.org/stdlib-2.2.1/libdoc/fileutils/rdoc/FileUtils.html)
67
- * Clipboard Access:
68
- [clipboard](https://github.com/janlelis/clipboard)
69
- * Terminal colors:
70
- [paint](https://github.com/janlelis/paint)
71
- * Load an editor into your IRB session:
72
- [interactive_editor](https://github.com/jberkel/interactive_editor)
73
-
74
- #### Introspection
75
-
76
- * Displays a method's source:
77
- [code](https://github.com/janlelis/code)
78
- * Access to *ri* docs:
79
- [ori](https://github.com/dadooda/ori)
80
- * Manipulate instance variables with ease:
81
- [instance](https://github.com/rubyworks/instance/)
82
- * Platform information:
83
- [ruby_version](https://github.com/janlelis/ruby_version)
84
- [ruby_engine](https://github.com/janlelis/ruby_engine)
85
- [os](https://github.com/rdp/os)
86
- [ruby_info](https://github.com/janlelis/ruby_info)
87
- * Improved method lookup path inspection:
88
- [method_locator](https://github.com/ryanlecompte/method_locator)
89
- * Finds methods that turn one value into another value:
90
- [methodfinder](https://github.com/citizen428/methodfinder)
91
- * **(irbtools-more)** Awesome lookup path inspection:
92
- [looksee](https://github.com/oggy/looksee)
93
-
94
-
95
- ### Irbtools Methods
96
-
97
- Besides improving IRB itself, you will get the following methods:
98
-
99
- Method | Arguments | Description
100
- ------ | ---------- | -----------
101
- `beep` | | Ring terminal bell.
102
- `cat` | path | Read file contents.
103
- `cd` | path = nil | Changes the directory. Can also be used in these forms: `~cd` (change to home directory), `-cd` (change to previous directory).
104
- `clear` | | Clear the terminal.
105
- `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.
106
- `colorize` | string | Syntax highlight a Ruby string.
107
- `copy` | string | Copy something to the clipboard.
108
- `copy_input` | | Copy session history to the clipboard.
109
- `copy_output` | | Copy session output history to the clipboard.
110
- `ed` / `emacs` / `mate` / `mvim` / `nano` / `vi` / `vim` | filename = nil | Start an editor in the session context.
111
- `engine` | | Show the Ruby engine.
112
- `howtocall` | object = self, method_or_proc | Displays parameter names and types for a proc or method.
113
- `info` | | List general information about the Ruby environment.
114
- `ld` | file | Shortcut for `load lib.to_s + '.rb'`.
115
- `ls` | path = "." | List directory content.
116
- `mf` | object1, object2 | Find methods that turn one value into another value.
117
- `mof` | object, depth = 0, grep = // | Print a method list, ordered by modules.
118
- `os` | | Query operating system information.
119
- `pa` | string, color | Print a string in the specified color.
120
- `page` | what, options = {} | Page long content.
121
- `paste` | | Paste clipboard content.
122
- `q` | *args | Like `Kernel#p`, but prints results on one line, with different colors.
123
- `ray` | path | Syntax highlight a Ruby file.
124
- `re` | string, regexg, groups = nil | Assists you when matching regexes againts strings.
125
- `reset!` | | Restart the current IRB session.
126
- `rq` | lib | Shortcut for `require lib.to_s`. Use it like this: `rq:prime`.
127
- `rr` | lib | Shortcut for `require_relative lib.to_s`.
128
- `rrq` / `rerequire` | lib | Hack to remove a library from `$LOADED_FEATURES` and `require` it again.
129
- `session_history` | number_of_lines = nil | Return a string of all commands issued in the current session.
130
- `version` | | Show the Ruby version.
131
- `wp` | inspect_string | Syntax-highlight a Ruby object.
132
- `Object#instance` | | Proxy object to read and manipulate instance variables / run eval.
133
- `Object#lp` | | **(irbtools-more)** Supercharged method introspection in IRB.
134
- `Object#mlp` / `Object#method_lookup_path` | | Traverse an object's method lookup path to find all places where a method may be defined.
135
- `Object#ri` | *args | Show ri documentation for this object or method.
136
-
137
-
138
- ### Advanced tweaking
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](http://code.google.com/p/conemu-maximus5/).
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 **xclip** or **xsel**. On ubuntu, do: `sudo apt-get
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, you will need a
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 (until it breaks).
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/irb extensions. To do so, put this into `~/.irbrc`:
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
- ### Hint: Web Console
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-2015 Jan Lelis <http://janlelis.com> released under the MIT
185
+ Copyright (c) 2010-2020 Jan Lelis <https://janlelis.com> released under the MIT
196
186
  license.
@@ -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 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.'
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.txt
21
+ CHANGELOG-MORE.md
22
22
  MIT-LICENSE.txt
23
23
  ]
24
24
  s.license = 'MIT'
25
25
 
26
- s.required_ruby_version = '~> 2.0'
27
- s.add_dependency 'irbtools', '~> 2.0'
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.0'
30
- s.add_dependency 'binding_of_caller', '~> 0.7'
31
- s.add_dependency 'did_you_mean', '~> 1.0'
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
 
@@ -18,9 +18,6 @@ rescue LoadError
18
18
  # do not load if not supported
19
19
  end
20
20
 
21
- # new guessmethod
22
- Irbtools.add_library 'did_you_mean', thread: :more3
23
-
24
21
  # load now
25
22
  Irbtools.start if standalone
26
23
 
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Irbtools
2
4
  module More
3
- VERSION = '2.2.0'.freeze
5
+ VERSION = "2.4.1"
4
6
  end
5
7
  end
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.2.0
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: 2016-09-24 00:00:00.000000000 Z
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: '2.0'
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.0'
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.0'
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.0'
60
+ version: '4.2'
55
61
  - !ruby/object:Gem::Dependency
56
- name: binding_of_caller
62
+ name: core_docs
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - "~>"
65
+ - - ">="
60
66
  - !ruby/object:Gem::Version
61
- version: '0.7'
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: '0.7'
74
+ version: 0.9.5
69
75
  - !ruby/object:Gem::Dependency
70
- name: did_you_mean
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: '1.0'
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: '1.0'
83
- description: irbtools-more adds bond and looksee to IRB (Gems that use core extensions).
84
- Simply put a require "irbtools/more" in the .irbrc file in your home directory to
85
- get started.
86
- email: mail@janlelis.de
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.txt
98
+ - CHANGELOG-MORE.md
92
99
  - MIT-LICENSE.txt
93
100
  files:
94
- - CHANGELOG-MORE.txt
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
- rubyforge_project:
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.