Граф коммитов

7758 Коммитов

Автор SHA1 Сообщение Дата
aycabta fd956c72ea Cache loaded module to suppress method redefined warnings 2019-11-25 07:27:15 +09:00
aycabta 51ea1abb5f Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
aycabta efbca15116 Remove lib/irb/slex.rb 2019-11-25 03:10:35 +09:00
aycabta 1aeb201d28 Remove debug code... 2019-11-24 23:29:09 +09:00
aycabta 745ab16818 Disable tracer ext of IRB when tracer doesn't found 2019-11-24 22:42:08 +09:00
aycabta b0614a0f96 Tracer.set_get_line_procs should support block and Proc object
Original Tracer.set_get_line_procs is implemented by
"def set_get_line_procs(p = proc)". It means that original
Tracer.set_get_line_procs supports block and Proc object.
2019-11-23 05:44:35 +09:00
aycabta 1ee010a317 Tracer.add_filter should support block and Proc object
Original Tracer.add_filter is implemented by "def add_filter(p = proc)". It
means that original Tracer.add_filter supports block and Proc object.
2019-11-23 05:43:07 +09:00
Kazuhiro NISHIYAMA 88d6009d91
Use more strict regexp to avoid to match naninanirb.rb 2019-11-21 23:10:30 +09:00
Jeremy Evans a9d4f2d03c Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime
Most of these formats were documented as supported, but were not
actually supported. Document that %g and %G are supported.

If %U/%W is specified without yday and mon/mday are not specified,
then Date.strptime is used to get the appropriate yday.

If cwyear is specifier without the year, or cwday and cweek are
specified without mday and mon, then use Date.strptime and convert
the resulting value to Time, since Time.make_time cannot handle
those conversions

Fixes [Bug #9836]
Fixes [Bug #14241]
2019-11-21 03:32:20 +02:00
aycabta 9131e62f18 [ruby/reline] Version 0.0.7
09d370bdc1
2019-11-21 07:14:27 +09:00
aycabta f30f78e2e0 Version 0.0.6 2019-11-21 07:04:53 +09:00
aycabta e4127cdd3e Version 1.1.0 2019-11-21 07:04:40 +09:00
aycabta 95f20f463a Consider escape sequence to calculate prompt width 2019-11-21 07:01:41 +09:00
aycabta eee70b41d4 Add a warning message and --legacy of an alias of --singleline 2019-11-21 02:44:35 +09:00
Y. Ushiki 9d6f78822c Refactor filter_backtrace 2019-11-21 02:44:35 +09:00
Y. Ushiki 04d0d93ebf Fix filter_backtrace for context-mode 0 2019-11-21 02:44:35 +09:00
aycabta 91bf3b7a77 Use singleline/multiline instead of readline/reidline 2019-11-21 02:44:35 +09:00
manga_osyo 6723aa07e5 Change argument `Proc` to `#call` defined object.
This is the same as the behavior of Readline.
2019-11-21 00:47:37 +09:00
manga_osyo 81586a4d9f Add <Home> <End> keys. 2019-11-21 00:47:36 +09:00
aycabta 633625a083 Mintty on Cygwin isn't a kind of command prompt, can process ANSI escape code 2019-11-20 17:55:19 +09:00
aycabta da0d7211aa Fix indent of a line when a newline is inserted to the next 2019-11-20 10:04:41 +09:00
aycabta 9306602f24 Replace typo "bock" with "block" 2019-11-20 09:58:33 +09:00
aycabta 19a310b0ac A preceding token of "do" of block has EXPR_CMDARG or EXPR_ENDFN
meth do # the preceding token of "do" has EXPR_CMDARG
  end

  meth() do # the preceding token of "do" has EXPR_ENDFN
  end
2019-11-20 09:56:13 +09:00
aycabta 49b4507fd3 Number sign comment (# bla bla) is a kind of newline character 2019-11-20 08:39:43 +09:00
aycabta bc0da8e3ff Generate history file path correctly when $HOME/.irbrc doesn't exist 2019-11-20 08:19:58 +09:00
Nobuyoshi Nakada cef9ebfbd3 Suppress `stty` error on Apple Terminal
`stty` called in `Reline::ANSI.deprep` command shows the following
error message on macOS Apple Terminal, with some settings.

```
$ LANG=C irb
irb(main):001:0>
stty: 'standard input': unable to perform all requested operations
stty: 'standard input': unable to perform all requested operations
```
2019-11-19 02:39:02 +09:00
Jeremy Evans 23f1fb0663 [ruby/rss] Only check taint on Ruby <2.7
Ruby 2.7 deprecates taint and it no longer has an effect.
2019-11-18 01:00:25 +02:00
Jeremy Evans 50013f7ebc [ruby/rexml] Only taint on Ruby <2.7
Ruby 2.7 deprecates taint and it no longer has an effect.
2019-11-18 01:00:25 +02:00
Jeremy Evans ffd0820ab3 Deprecate taint/trust and related methods, and make the methods no-ops
This removes the related tests, and puts the related specs behind
version guards.  This affects all code in lib, including some
libraries that may want to support older versions of Ruby.
2019-11-18 01:00:25 +02:00
Jeremy Evans c5c05460ac Warn on access/modify of $SAFE, and remove effects of modifying $SAFE
This removes the security features added by $SAFE = 1, and warns for access
or modification of $SAFE from Ruby-level, as well as warning when calling
all public C functions related to $SAFE.

This modifies some internal functions that took a safe level argument
to no longer take the argument.

rb_require_safe now warns, rb_require_string has been added as a
version that takes a VALUE and does not warn.

One public C function that still takes a safe level argument and that
this doesn't warn for is rb_eval_cmd.  We may want to consider
adding an alternative method that does not take a safe level argument,
and warn for rb_eval_cmd.
2019-11-18 01:00:25 +02:00
aycabta 7c6bedfe5c Remove unnecessary check 2019-11-18 03:23:45 +09:00
aycabta e7c5c60095 [ruby/irb] Remove ruby-token.rb from spec.files
https://github.com/ruby/irb/commit/0180dc74bc
2019-11-17 23:32:10 +09:00
aycabta be95d59160 [ruby/irb] Version 1.1.0.pre.4
https://github.com/ruby/irb/commit/4945d0e676
2019-11-17 23:32:10 +09:00
aycabta 910f9b8338 [ruby/reline] Version 0.0.5
https://github.com/ruby/reline/commit/d57c7ea252
2019-11-17 23:32:10 +09:00
Kazuhiro NISHIYAMA 449b2b9214
Fix typos 2019-11-17 13:11:25 +09:00
aycabta 11ae47c266 [ruby/reline] Restore left cursor key support on Unix like OSes...
https://github.com/ruby/reline/commit/98b72af751
2019-11-15 18:07:34 +09:00
aycabta fa7618e4c1 Implement em_set_mark and em_exchange_mark 2019-11-15 16:50:40 +09:00
Kazuhiro NISHIYAMA 6744593b8c
Fix a typo [ci skip] 2019-11-15 11:01:06 +09:00
aycabta a5b6d7bca8 Suppress warnings except for when last evaluation
Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
2019-11-13 15:15:28 +09:00
Kazuhiro NISHIYAMA d336db6568
Fix a typo 2019-11-13 15:04:49 +09:00
Hiroshi SHIBATA 546e50c2fb
Merge released version of RubyGems 3.1.0.pre3 2019-11-13 10:36:08 +09:00
Hiroshi SHIBATA bb9ecd026a Merge Bundler 2.1.0.pre3 released version 2019-11-13 10:19:51 +09:00
osyo-manga fe45bee093 Reline#readline and Reline#readmultiline to private. 2019-11-12 21:03:22 +09:00
Hiroshi SHIBATA f36a53d038
Only enabled mon_owned condition with Ruby 2.5+ 2019-11-12 19:36:41 +09:00
Nobuyoshi Nakada fb6a489af2
Revert "Method reference operator"
This reverts commit 67c5747369.
[Feature #16275]
2019-11-12 17:24:48 +09:00
Koichi Sasada fef4370b40 check more. 2019-11-12 10:07:45 +09:00
Koichi Sasada 4a30fabfcf Monitor owner state check correctly.
Monitor can be owned at the beginning of this method.
2019-11-12 09:37:34 +09:00
Yusuke Endoh 2407e89725 Revert "Use untaint for File.symlink in kernel_require.rb"
This reverts commit d9978ce5d3.

Untaint was tentatively restored due to test failures.  But now, the
failed tests have been removed, so we can revert the tentative fix.
2019-11-12 08:39:38 +09:00
Hiroshi SHIBATA d9978ce5d3
Use untaint for File.symlink in kernel_require.rb
Partly reverted 7d463e360b
2019-11-12 08:03:26 +09:00
Koichi Sasada b8d242d221 release RUBYGEMS_ACTIVATION_MONITOR correctly.
`File.symlink? safe_lp` can raise SecurityError and raising an
exception can leave RUBYGEMS_ACTIVATION_MONITOR locking. This
patch release it correctly.
2019-11-12 04:33:28 +09:00