David Rodríguez
d298ef40f2
[rubygems/rubygems] Small refactor by DRYing up some logic
...
c7e3c092e1
2021-08-31 19:06:14 +09:00
David Rodríguez
8116b7fef7
[rubygems/rubygems] Move rescue block around the code that can raise it
...
310937a546
2021-08-31 19:06:14 +09:00
David Rodríguez
c6e5267a77
[rubygems/rubygems] Remove unnecessary check
...
This error can only be raised when loading the cache, and we only load
the cache if this condition is met.
86d692edb8
2021-08-31 19:06:14 +09:00
David Rodríguez
dd22549e07
[rubygems/rubygems] Let original exception be re-raised
...
a669401a5a
2021-08-31 19:06:14 +09:00
Nobuyoshi Nakada
defdfa020a
Exit with the syncing status [ci skip]
2021-08-31 19:00:17 +09:00
aycabta
3695d94b25
Omit some tests until debugging is complete
2021-08-31 16:21:40 +09:00
Nobuyoshi Nakada
f781e537b5
Remove no longer used variable line_node
2021-08-31 15:27:02 +09:00
Nobuyoshi Nakada
d23264d359
Extract compile_block from iseq_compile_each0
...
And constify `node` argument of `iseq_compile_each0`.
2021-08-31 15:27:02 +09:00
aycabta
80309800f1
[ruby/irb] Version 1.3.8.pre.5
...
968422799c
2021-08-31 15:23:54 +09:00
aycabta
a512496b3f
[ruby/irb] Update dependency, reline >= 0.2.8.pre.5
...
657bd3fd12
2021-08-31 15:23:47 +09:00
aycabta
8273e95753
[ruby/reline] Version 0.2.8.pre.5
...
79b7d80fee
2021-08-31 15:22:05 +09:00
aycabta
817694481c
[ruby/irb] Set the dialog width to render with a fixed width
...
80c4329643
2021-08-31 15:20:34 +09:00
aycabta
077bc98ce4
[ruby/irb] Follow that Dialog#contents_width has been renamed to #width
...
49a73d929e
2021-08-31 15:20:27 +09:00
aycabta
a8e6a850d5
[ruby/irb] Make show doc dialog appears on the left at the right edge
...
6480eddd31
2021-08-31 15:20:22 +09:00
aycabta
cf0ece810a
[ruby/irb] Rename a variable "dialog" with "autocomplete_dialog"
...
Because it's just used to receive data from the autocomplete dialog, not
for show doc dialog.
f8b752bd98
2021-08-31 15:20:17 +09:00
aycabta
7afb5b8b95
[ruby/reline] Use Reline::Unicode.take_range to devide exactly by width
...
de1ad93f44
2021-08-31 15:19:44 +09:00
aycabta
4f5166e790
[ruby/reline] Check if dialog_render_info is nil or not
...
e2b87fe831
2021-08-31 15:19:37 +09:00
aycabta
c8a07a1231
[ruby/reline] Fix Reline::Unicode.take_range as it was not fully functional
...
5da6a8d851
2021-08-31 15:19:32 +09:00
aycabta
7fae57dbb4
[ruby/reline] Use dynamic contents width
...
f0e54f239b
2021-08-31 15:19:25 +09:00
Nobuyoshi Nakada
2dd26bed86
[Feature #16972 ] Add mode: option to Pathname#mkpath
2021-08-31 11:53:41 +09:00
Nobuyoshi Nakada
181207e830
Constify line_node in iseq_compile_each0
2021-08-31 10:21:22 +09:00
aycabta
a598730e79
[ruby/reline] Remove an unused variable
...
0ae7d8b336
2021-08-31 05:45:02 +09:00
aycabta
4a174b7c55
[ruby/irb] Version 1.3.8.pre.4
...
61fe6cfa43
2021-08-31 05:30:09 +09:00
aycabta
96131c5ae9
[ruby/irb] Update dependency, reline >= 0.2.8.pre.4
...
24315382d0
2021-08-31 05:30:04 +09:00
aycabta
bb2b5052f5
[ruby/reline] Version 0.2.8.pre.4
...
059d39b090
2021-08-31 05:28:17 +09:00
aycabta
c98b2e14c7
[ruby/reline] Pass "dialog" to context to get "dialog.scroll_top" later
...
d81f29a134
2021-08-31 05:26:53 +09:00
aycabta
32abd38014
[ruby/reline] Autocompletion dialog height 15
...
7e18716754
2021-08-31 05:26:45 +09:00
aycabta
81d40b5b7e
[ruby/reline] Scroll autocompletion pointer in dialog correctly
...
dc79ed2dd8
2021-08-31 05:26:39 +09:00
aycabta
282f7ce896
[ruby/reline] Use DialogRenderInfo struct
...
ac6f652a39
2021-08-31 05:26:33 +09:00
aycabta
0c09418fff
[ruby/reline] Fix dialog rendering at the bottom edge
...
860be91bd7
2021-08-31 05:26:28 +09:00
git
203f46ceef
* 2021-08-31 [ci skip]
2021-08-31 05:25:18 +09:00
aycabta
c63d98b401
[ruby/irb] Use DialogRenderInfo
...
5bc3a72ca3
2021-08-31 05:24:55 +09:00
aycabta
b30be9f222
[ruby/irb] Take dialog to get scroll_top
...
7209082a11
2021-08-31 05:24:45 +09:00
aycabta
16cf2ef6f2
[ruby/irb] Don't show doc when pointer is negative
...
48af34bfc2
2021-08-31 05:24:36 +09:00
Nobuyoshi Nakada
83a744dd8c
Unify configure steps
2021-08-30 17:15:57 +09:00
schneems
51070ee5c4
Faster Pathname FileUtils methods
...
Currently when calling any of the "FileUtils" methods on pathname `require` is called every time even though that library might already be loaded. This is slow:
We can speed it up by either checking first if the constant is already defined, or by using autoload.
Using defined speeds up the action by about 300x and using autoload is about twice as fast as that (600x faster than current require method).
I'm proposing we use autoload:
```ruby
require 'benchmark/ips'
Benchmark.ips do |x|
autoload(:FileUtils, "fileutils")
x.report("require") { require 'fileutils' }
x.report("defined") { require 'fileutils' unless defined?(FileUtils) }
x.report("autoload") { FileUtils }
x.compare!
end
# Warming up --------------------------------------
# require 3.624k i/100ms
# defined 1.465M i/100ms
# autoload 2.320M i/100ms
# Calculating -------------------------------------
# require 36.282k (± 2.4%) i/s - 184.824k in 5.097153s
# defined 14.539M (± 2.0%) i/s - 73.260M in 5.041161s
# autoload 23.100M (± 1.9%) i/s - 115.993M in 5.023271s
# Comparison:
# autoload: 23099779.2 i/s
# defined: 14538544.9 i/s - 1.59x (± 0.00) slower
# require: 36282.3 i/s - 636.67x (± 0.00) slower
```
Because this autoload is scoped to Pathname it will not change the behavior of existing programs that are not expecting FileUtils to be loaded yet:
```
ruby -rpathname -e "class Pathname; autoload(:FileUtils, 'fileutils'); end; puts FileUtils.exist?"
Traceback (most recent call last):
-e:1:in `<main>': uninitialized constant FileUtils (NameError)
```
2021-08-30 15:18:11 +09:00
Nobuyoshi Nakada
465bd972ec
[DOC] Move rdoc of Integer#abs to numeric.rb [ci skip]
2021-08-30 13:33:52 +09:00
Nobuyoshi Nakada
66a4768f65
[ruby/irb] Relax backtrace nest levels
...
fb637bc68f
2021-08-30 13:16:46 +09:00
Hiroshi SHIBATA
b17dc55017
[ruby/irb] Added the extra stdout message with test-unit
...
b153d587a1
2021-08-30 12:39:37 +09:00
Hiroshi SHIBATA
f3ae14cbde
[ruby/irb] Use capture_output instead of capture_io
...
077e4ae7de
2021-08-30 12:39:31 +09:00
Hiroshi SHIBATA
598f4f4219
[ruby/irb] Use pend instead of skip
...
f441ce35bf
2021-08-30 12:39:23 +09:00
Nobuyoshi Nakada
be9cc6c758
Fix rubyspec_capiext dependency and flags
...
- The file needed to link may be the import library.
- Remove duplicate flags.
2021-08-30 12:03:44 +09:00
aycabta
7379a493bd
[ruby/irb] Version 1.3.8.pre.3
...
a1fc68abaa
2021-08-30 12:00:35 +09:00
aycabta
aeec02d7f3
[ruby/irb] [].name to display the doc for Array.name
...
7c2abc14d8
2021-08-30 11:58:56 +09:00
aycabta
1e2f10e8aa
[ruby/irb] Rescue unknown error to quash crashing
...
92cce941cb
2021-08-30 11:58:51 +09:00
Nobuyoshi Nakada
26e74c6b1f
Suppress redefinition warnings of GET_SELF()
2021-08-30 09:06:36 +09:00
aycabta
2d93b523e1
Add irb section to tool/sync_default_gems.rb
2021-08-30 03:00:02 +09:00
aycabta
ece4ed0da7
Add --autocomplete / --noautocomplete options
2021-08-30 02:45:13 +09:00
aycabta
b6b2b767ed
[ruby/reline] Version 0.2.8.pre.3
...
6e0ea3362a
2021-08-30 02:37:23 +09:00
aycabta
8750e1ada8
[ruby/reline] Fix Reline.autocompletion=() interface
...
71c2eb143d
2021-08-30 02:37:23 +09:00