irbtools-more 2.2.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a5a20dd948c1d72c87c8241f0bcd947362b852fa
4
- data.tar.gz: 5b9e27b44f2575c65b55071aa6adc4a0a1b02078
2
+ SHA256:
3
+ metadata.gz: 33eccdc17f0ad6c02b061ee0e6d86151cfba85b114ab00598d4b6f37b05c869d
4
+ data.tar.gz: f8ff565277fd6a6fe3e97c285757b13c8e5c4b7499f174f23e8aaa881fc782a7
5
5
  SHA512:
6
- metadata.gz: c95d7afe23e427eae35d2ea37a1258b96319d0e3329f045f3355dcf4733b8be0987923ebad17a3905e65f473ae8b956e3c6ae11167769ed8641b80cced3d86d8
7
- data.tar.gz: e8d31e0fad815144ee0d42d8883867623e753848c309e13639123d1af498f3ceea84fd6abc00fae1858bc83a81cab0b3b913d2fbb01da02112ceec6ed8f3bf1e
6
+ metadata.gz: d2531bc60fe1c8c738d48539cfff726afc56c6daaa4a4a7155b050b76e7585c939ab977734cad2e3df040293d1f6575879bfff2df0484ff1edd6960a0eae585b
7
+ data.tar.gz: f45eda73b19b56a4b6bfcf6ea13588daf6f273ef2fba894dbb43f5e282aad3ab9dfbe44e45299eafab64545c2045f99e362188b1031b96937ad1b66d7733dd60
@@ -1,51 +1,69 @@
1
- == 2.2.1
1
+ # Irbtools (More) Changelog
2
+
3
+ ## 2.5.0
4
+ * Bump binding_of_caller & core_docs for Ruby 3.0
5
+
6
+ ## 2.4.1
7
+ * Loosen Ruby dependency to allow Ruby 3.0
8
+
9
+ ## 2.4.0
10
+ * Bump looksee & core_docs for Ruby 2.7
11
+
12
+ ## 2.3.1
13
+ * Loosen irbrtools-more dependency to irbtools (allow 3.x)
14
+
15
+ ## 2.3.0
16
+ * Remove dependency to did_you_mean, since it is now a default gem anyways
17
+ * Version bump: irbtools, looksee, core_docs, and binding_of_caller
18
+
19
+ ## 2.2.1
2
20
  * Add core_docs dependency
3
21
 
4
- == 2.2.0
22
+ ## 2.2.0
5
23
  * Re-enable looksee (not comptible with Ruby 2.3, but does not crash anymore during install)
6
24
 
7
- == 2.1.0
25
+ ## 2.1.0
8
26
  * Ruby 2.3 compat: Upgrade did_you_mean to ~> 1.0
9
27
  * Ruby 2.3 compat: Disable looksee gem as long it is not adapted for 2.3
10
28
 
11
- == 2.0.0
29
+ ## 2.0.0
12
30
  * Integrate more-repo into irbtools main repo
13
31
  * Improve auto-completion
14
32
  * Remove Object#l alias for looksee, use Object#lp
15
33
 
16
- == 1.7.2
34
+ ## 1.7.2
17
35
  * Bump did_you_mean and looksee (Ruby 2.2 compat)
18
36
 
19
- == 1.7.1
37
+ ## 1.7.1
20
38
  * Bump did_you_mean version
21
39
 
22
- == 1.7.0
40
+ ## 1.7.0
23
41
  * Bump looksee
24
42
  * Ruby 1.9.3 required
25
43
  * Add did_you_mean gem
26
44
 
27
- == 1.6.1
45
+ ## 1.6.1
28
46
  * Add binding_of_caller
29
47
  * Alias looksee to Object#lp instead of Object#ls
30
48
 
31
- == 1.6.0
49
+ ## 1.6.0
32
50
  * (nothing)
33
51
 
34
- == 1.5.2
52
+ ## 1.5.2
35
53
  * Ruby 2.1 Compatibility / Update looksee gem
36
54
  * Be less restrictive in gem dependencies
37
55
 
38
- == 1.5.1
56
+ ## 1.5.1
39
57
  * (nothing)
40
58
 
41
- == 1.5.0
59
+ ## 1.5.0
42
60
  * Ruby 2.0 Compatibility
43
61
  * Drop 1.8 Support
44
62
  * Drop DrX gem
45
63
 
46
- == 1.2.0
64
+ ## 1.2.0
47
65
  * add looksee
48
66
 
49
- == 0.3.2
67
+ ## 0.3.2
50
68
  * load in threads (irbtools 1.0)
51
69
  * remove jeweler
data/MIT-LICENSE.txt CHANGED
@@ -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
- [fancy_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/) (not loaded in Rails context)
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 (which is included in **irbtools-more**) 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 (not loaded in Rails context).
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,17 +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 'core_docs', '>= 0.9.2'
31
- s.add_dependency 'binding_of_caller', '~> 0.7'
32
- s.add_dependency 'did_you_mean', '~> 1.0'
29
+ s.add_dependency 'looksee' , '~> 4.2'
30
+ s.add_dependency 'core_docs', '>= 0.9.6'
31
+ s.add_dependency 'binding_of_caller', '~> 1.0'
33
32
  end
34
33
 
data/lib/irbtools/more.rb CHANGED
@@ -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.1'.freeze
5
+ VERSION = "2.5.0"
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.1
4
+ version: 2.5.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: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2021-03-15 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,44 +50,30 @@ 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
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.9.2
67
+ version: 0.9.6
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.9.2
74
+ version: 0.9.6
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: binding_of_caller
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.7'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.7'
83
- - !ruby/object:Gem::Dependency
84
- name: did_you_mean
85
77
  requirement: !ruby/object:Gem::Requirement
86
78
  requirements:
87
79
  - - "~>"
@@ -94,18 +86,19 @@ dependencies:
94
86
  - - "~>"
95
87
  - !ruby/object:Gem::Version
96
88
  version: '1.0'
97
- description: irbtools-more adds bond and looksee to IRB (Gems that use core extensions).
98
- Simply put a require "irbtools/more" in the .irbrc file in your home directory to
99
- get started.
100
- email: mail@janlelis.de
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
101
94
  executables: []
102
95
  extensions: []
103
96
  extra_rdoc_files:
104
97
  - README.md
105
- - CHANGELOG-MORE.txt
98
+ - CHANGELOG-MORE.md
106
99
  - MIT-LICENSE.txt
107
100
  files:
108
- - CHANGELOG-MORE.txt
101
+ - CHANGELOG-MORE.md
109
102
  - MIT-LICENSE.txt
110
103
  - README.md
111
104
  - irbtools-more.gemspec
@@ -122,17 +115,19 @@ require_paths:
122
115
  - lib
123
116
  required_ruby_version: !ruby/object:Gem::Requirement
124
117
  requirements:
125
- - - "~>"
118
+ - - ">="
126
119
  - !ruby/object:Gem::Version
127
120
  version: '2.0'
121
+ - - "<"
122
+ - !ruby/object:Gem::Version
123
+ version: '4.0'
128
124
  required_rubygems_version: !ruby/object:Gem::Requirement
129
125
  requirements:
130
126
  - - ">="
131
127
  - !ruby/object:Gem::Version
132
128
  version: '0'
133
129
  requirements: []
134
- rubyforge_project:
135
- rubygems_version: 2.6.13
130
+ rubygems_version: 3.1.4
136
131
  signing_key:
137
132
  specification_version: 4
138
133
  summary: irbtools-more adds bond and looksee to IRB.