Skip to content

Commit 1a1b478

Browse files
committed
Remove support for RIPL repl (outdated)
1 parent 1df0e10 commit 1a1b478

File tree

6 files changed

+12
-36
lines changed

6 files changed

+12
-36
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
* Version bumps: looksee, os, methodfinder, code, core_docs, debugging
2222
* Alias IRB's ls to ils (fixes #53)
23+
* Remove support for RIPL repl (outdated)
2324

2425
## 3.0.5
2526
* Bump methodfinder dependency & update usage (fixes #52)

CONFIGURE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ The following options are possible
4343
: Same as `:thread`, but after loading late libraries.
4444
`:sub_session => true`
4545
: The library is loaded every time a sub-session starts (using
46-
`IRB.conf[:IRB_RC]`). In [ripl](https://github.com/cldwalker/ripl),
47-
`ripl-after_rc` is used.
46+
`IRB.conf[:IRB_RC]`).
4847
`:autoload => :Constant`
4948
: Use Ruby's `autoload` feature. It loads the library as soon as the
5049
constant is encountered.

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ method and it will start a session with the current binding:
4444
- Loads included efficiently to reduce IRB start-up time
4545
- Customizable views for specfic options using [hirb](https://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html). By default, ActiveRecord results get displayed as a table
4646

47-
### Irbtools' Included Methods for IRB
47+
### Included Debugging Methods for IRB
4848

4949
#### Highlights
5050

@@ -130,7 +130,7 @@ Method / Constant | Arguments | Description | Provided By
130130

131131
### IRB's ls?
132132

133-
Please note that IRB's own **ls** command is aliased to `ils`, since `ls` referts to FileUtils' method for listing the current files in the directory.
133+
Please note that IRB's own **ls** command is aliased to `ils`, since `ls` referts to FileUtils' method for listing the current files in the directory. If you haven't tried looksee (`Object#look`) or object shadows ('Object#shadow') - give it a try ;)
134134

135135
### Advanced Tweaking
136136

@@ -163,11 +163,6 @@ You can use **Irbtools** without colors/IRB extensions. To do so, put this into
163163
require 'irbtools/non_fancy'
164164
Irbtools.start
165165
```
166-
167-
### Hint: Web Console and Other Approaches
168-
169-
**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.
170-
171166
## J-_-L
172167

173168
Copyright (c) 2010-2022 Jan Lelis <https://janlelis.com> released under the MIT

lib/irbtools.rb

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
require_relative 'irbtools/configure'
2-
3-
# # # # #
4-
# Make sure we load IRB if we are not in RIPL
5-
6-
require 'irb' unless Irbtools.ripl?
2+
require 'irb'
73

84
# # # # #
95
# Load: start
@@ -23,19 +19,11 @@
2319

2420
# # # # #
2521
# Load: sub-session / after_rc
26-
if Irbtools.ripl?
27-
if defined? Ripl::AfterRc
28-
Irbtools.libraries[:sub_session].each{ |r| Ripl.after_rcs << r }
29-
elsif !Irbtools.libraries[:sub_session].empty?
30-
warn "Couldn't load libraries in Irbtools.libraries[:sub_session]. Please install ripl-after_rc to use this feature in Ripl!"
31-
end
32-
else
33-
original_irbrc_proc = IRB.conf[:IRB_RC]
34-
IRB.conf[:IRB_RC] = proc{
35-
Irbtools.load_libraries(Irbtools.libraries[:sub_session])
36-
original_irbrc_proc.call if original_irbrc_proc
37-
}
38-
end
22+
original_irbrc_proc = IRB.conf[:IRB_RC]
23+
IRB.conf[:IRB_RC] = proc{
24+
Irbtools.load_libraries(Irbtools.libraries[:sub_session])
25+
original_irbrc_proc.call if original_irbrc_proc
26+
}
3927

4028
# # # # #
4129
# Load: threads

lib/irbtools/implementation.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ def rename_ls_to_ils
157157
end
158158
end
159159

160-
# check if we are in a RIPL session
161-
def ripl?
162-
defined?(Ripl) && Ripl.started?
163-
end
164-
165160
# loads all the stuff
166161
def start
167162
require 'irbtools'

lib/irbtools/libraries.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
Wirb.start
2222
end
2323

24-
unless Irbtools.ripl?
25-
Irbtools.add_library :fancy_irb, thread: :paint do
26-
FancyIrb.start
27-
end
24+
Irbtools.add_library :fancy_irb, thread: :paint do
25+
FancyIrb.start
2826
end
2927

3028
Irbtools.add_library 'debugging/q', thread: :paint

0 commit comments

Comments
 (0)