1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

55129 commits

Author SHA1 Message Date
Nobuyoshi Nakada
18e43e8231
Fix fd leak
merged https://github.com/rubygems/rubygems/pull/2765
2019-05-16 14:58:57 +09:00
git
fadab0f9fb * 2019-05-16 2019-05-16 14:43:49 +09:00
Nobuyoshi Nakada
e970ab3339
Suppress unused-but-set-variable warning 2019-05-15 23:17:18 +09:00
Nobuyoshi Nakada
214e2f93aa
Fix the warning in 456586bb23 2019-05-15 18:19:23 +09:00
Aaron Patterson
3cf767ee35
unpin finalizers and update references 2019-05-15 10:56:15 +02:00
Nobuyoshi Nakada
c9b28fd7ae
Allow --enable/--disable options to take an argument
[Bug ]
2019-05-15 17:31:11 +09:00
aycabta
f54aa6c5b2 Rename confuzed name Reline::IO with Reline::IOGate 2019-05-15 15:52:18 +09:00
Aaron Patterson
0cc893d01d
Static symbols can't be moved (they are not RValue)
This is my mistake, I thought they were regular objects, but apparently
they are not.  We don't need to pin them.

Revert "Symbols can move so only cache IDs"

This reverts commit 672ee5f6ed.
2019-05-14 20:41:31 -07:00
Aaron Patterson
672ee5f6ed
Symbols can move so only cache IDs
IDs can't move, we need to use them to look up the symbol objects later.
2019-05-14 20:30:16 -07:00
git
e8b929b9df * expand tabs. 2019-05-15 12:21:53 +09:00
Aaron Patterson
c70ceb5992
Add object packing strategies for compaction
This commit adds an alternative packing strategy for compaction.
Instead of packing towards "most pinned" pages, we can pack towards
"most empty" pages.  The idea is that we can double the heap size, then
pack all objects towards the empty side of the heap.  This will ensure
maximum chaos for testing / verification.
2019-05-14 20:21:03 -07:00
git
46a479889c * 2019-05-15 2019-05-15 00:19:31 +09:00
Aaron Patterson
2ca537ba4b
Fixing function name
This function is used for marking / pinning vm stack values, so it
should have "vm" in the function name to be more clear.
2019-05-14 08:18:43 -07:00
aycabta
b5a3ec7f18 Remove useless use of a variable in Reline::ANSI 2019-05-14 17:15:49 +09:00
aycabta
80c968c571 Rename Reline's test file name because of typo 2019-05-14 17:06:38 +09:00
Takashi Kokubun
4fe0961dca
Fix typo in debugged C source name
I failed to collect any debug info in
https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cda57fcab79a30008f195f6?step=5cda6a4e1090c4000800772e

It seems that it's due to this typo.
2019-05-14 16:45:19 +09:00
aycabta
c754e979d3 Test ext/readline and lib/reline by test/readline 2019-05-14 15:37:45 +09:00
aycabta
07e7ae9ed7 Add an assertion message to test of Readline's class variables 2019-05-14 15:37:17 +09:00
aycabta
1e65196b54 Check encoding when Readline completion 2019-05-14 14:53:34 +09:00
Nobuyoshi Nakada
29dde62605
io/console: rb_str_cat_conv_enc_opts is not exported 2019-05-14 14:50:21 +09:00
Nobuyoshi Nakada
c174670823
io/console: fix up timeout on Windows 2019-05-14 14:39:08 +09:00
Nobuyoshi Nakada
456586bb23
io/console: support getch timeout on Windows 2019-05-14 14:21:46 +09:00
Nobuyoshi Nakada
6d733565c2
io/console: support wide character input on Windows 2019-05-14 14:20:09 +09:00
aycabta
602ef62ae6 Rescue CompatibilityError for Readline's completion 2019-05-14 14:11:28 +09:00
Urabe, Shyouhei
5bab1304af fix visibility of SecureRandom.gen_random
Aliasing a method preserves its visibility.  These aliases turn
formerly-public methods into private.  Should make them public
again.  [Bug ]
2019-05-14 11:44:20 +09:00
aycabta
af1f3f131f Readline's class vars should be encoded as default_external 2019-05-14 07:15:41 +09:00
aycabta
741321704f Remove unused variable in LineEditor 2019-05-14 07:12:59 +09:00
Aaron Patterson
79ead821dd
Add NaN / Infinity / MinusInfinity to mark list
This prevents the constants from moving.
2019-05-13 14:27:54 -07:00
Aaron Patterson
a1ecf07dff
turn T_MOVED in to a linked list 2019-05-13 14:00:36 -07:00
Aaron Patterson
66a7c92938
Don't run the compactor if GC is disabled
GC is required for pinning / marking objects.  If the compactor runs
without pinning everything, then it will blow up, so just return early
if the GC is disabled.
2019-05-13 12:59:30 -07:00
git
0215520bea * 2019-05-14 2019-05-14 00:32:58 +09:00
Nobuyoshi Nakada
d2003a6d39
Symbol just represents a name 2019-05-14 00:30:08 +09:00
Nobuyoshi Nakada
3b3b4a44e5
Update dependencies 2019-05-13 23:53:46 +09:00
Hiroshi SHIBATA
082bbdc92e Update the canonical repository for racc. 2019-05-13 21:26:13 +09:00
Kazuhiro NISHIYAMA
b42303b151
Fix typos 2019-05-13 21:14:52 +09:00
Étienne Barrié
2dc613815d
delegate.rb: don't look for methods on Kernel
Instead, look for instance methods of Kernel.
Otherwise, instance methods of Module (which are methods of Kernel
itself) are mistakenly believed to exist, and it fails when calling
Kernel.instance_method().

Closes: https://github.com/ruby/ruby/pull/1422
2019-05-13 11:29:42 +09:00
aycabta
24964fff92 Check that Reline exists on test 2019-05-13 04:22:15 +09:00
aycabta
75f196ce75 Skip tests depend on Readline's special behaviors 2019-05-13 03:29:18 +09:00
aycabta
caef2ddaaf Implement Reline::HISTORY as an expanded Array 2019-05-13 03:26:10 +09:00
aycabta
c48778d642 Add attr_accessor for Reline's Config attrs 2019-05-13 03:24:15 +09:00
aycabta
ebb15cc6c1 Reline.completion_proc= should raise ArgumentError
When the value is not Proc.
2019-05-13 02:33:29 +09:00
aycabta
130ced9fb0 Reline.completion_append_character= should be nil
When unknown value comes.
2019-05-13 02:31:42 +09:00
aycabta
e467f920a3 Add Reline.special_prefixes as stub 2019-05-13 02:30:53 +09:00
aycabta
5837290af1 Implement Reline's class methods for compatibility
- insert_text
- redisplay
- line_buffer
- point
- point=
- vi_editing_mode
- emacs_editing_mode
- vi_editing_mode?
- emacs_editing_mode?
- get_screen_size
2019-05-13 02:26:31 +09:00
aycabta
c137f015ab Add Reline.pre_input_hook interface 2019-05-13 02:20:20 +09:00
aycabta
9cb821b024 Implement Reline.input= and Reline.output= 2019-05-13 02:14:48 +09:00
aycabta
bb56b89900 Add ed_search_prev_history to Reline 2019-05-13 01:51:05 +09:00
okuramasafumi
559cad9f2d Improve doc for Enumerable#include? and member?
Existing doc for Enumerable#include? and member? has some problems.
* `IO.constants` is not commonly used, and only some know
    that `SEEK_SET` is actually included in constants.
* `IO.constants` is actually an Array, not the example is not
    appropriate for `Enumerable` module.
So in this commit, the old example is replaced with new one.
New example uses integer range, which is much simpler and easier to
understand.

Closes: https://github.com/ruby/ruby/pull/2168
2019-05-13 00:43:05 +09:00
aycabta
33bce2585f Use LineEditor#reset on test 2019-05-13 00:31:32 +09:00
git
d3a702a3f1 * 2019-05-13 2019-05-13 00:23:03 +09:00