Hiroshi SHIBATA
d6311cb1ca
Track RubyGems 3.4.0dev and Bundler 2.4.0dev
2021-12-27 10:45:36 +09:00
David Rodríguez
03903f23c2
[rubygems/rubygems] Remove the rest of the RUBY_VERSION
monkeypatching
...
Since we're at it. This generates a bunch of warnings and seems like a
brittle way to test things, so let's get rid of it.
f5d45520e0
2021-12-27 10:45:36 +09:00
Masataka Pocke Kuwabara
73707e5c51
[rubygems/rubygems] Make SpecificationPolicy autoload constant
...
It reduces memory usage about 204kb (1.4%).
b7d4b8c8a6
2021-12-27 10:45:36 +09:00
Nobuyoshi Nakada
9736cb890b
Check if Kernel#untaint
is defined instead of version comparison
...
Probably `RUBY_VERSION` seems overwritten somewhere in the tests.
2021-12-27 08:56:00 +09:00
aycabta
0f1fbc6421
[ruby/irb] Version 1.4.1
...
b1d9c34441
2021-12-25 12:57:28 +09:00
aycabta
ddf0cdee4f
[ruby/irb] Support showing doc by dialog in iTerm2
...
a4b95d6634
2021-12-25 12:56:40 +09:00
aycabta
40c20110d5
[ruby/reline] Version 0.3.0
...
3f6ea92268
2021-12-25 10:58:44 +09:00
Hiroshi SHIBATA
da6a5e3ed1
Merge RubyGems-3.3.3 and Bundler-2.3.3
2021-12-25 07:40:52 +09:00
aycabta
90239c4163
[ruby/irb] Version 1.4.0
...
b80ec5821e
2021-12-25 00:41:04 +09:00
aycabta
214b6128ae
[ruby/irb] Update dependency, reline >= 0.3.0
...
f36ad549c4
2021-12-25 00:41:03 +09:00
aycabta
c815c0be46
[ruby/reline] Escape newline(s) in dynamic prompt
...
9b209ee1ea
2021-12-25 00:32:58 +09:00
aycabta
b0db420b0e
[ruby/reline] Escape newline(s) in prompt
...
b545459fca
2021-12-25 00:32:57 +09:00
aycabta
22cc2243f9
[ruby/reline] Remove unnecessary parameter
...
20fcd22564
2021-12-25 00:32:56 +09:00
Yuki Nishijima
f9712b029b
Sync did_you_mean
2021-12-24 23:20:30 +09:00
manga_osyo
f279d41847
Fix warning in Lexer::Elem#[]
...
Changed to use `#pos` `#event` `#tok` `#state` since using Lexer::Elem#[0~4] now gives a warning.
see: 8944009be7
9adbb9af32
2021-12-24 20:44:02 +09:00
aycabta
4fccefef05
[ruby/reline] Revert "Change aliased methods to be parivete"
...
Ruby 2.5 doesn't support "private alias_method" idiom but Ruby on Rails
6.x still support 2.5. 😢
This reverts commit 0f075f562b
.
4ecaa63b26
2021-12-24 18:23:28 +09:00
aycabta
fc5bc378e5
[ruby/reline] Change aliased methods to be parivete
...
0f075f562b
2021-12-24 18:23:28 +09:00
aycabta
a9c59b13da
[ruby/reline] Add doc about em-kill-line macro
...
2e46493aff
2021-12-24 18:23:28 +09:00
aycabta
bad1e153d4
[ruby/reline] Implement em_kill_line
...
9fca6ceb45
2021-12-24 18:23:28 +09:00
aycabta
6c3cc9c58a
[ruby/reline] Rename the wrong name "em-kill-line" with the correct name "unix-line-discard"
...
da7af35d1f
2021-12-24 18:23:28 +09:00
aycabta
fd60a235f5
[ruby/reline] Add doc about ed-kill-line, kill-line, em-kill-line, and unix-line-discard
...
586a48ffe0
2021-12-24 18:23:28 +09:00
aycabta
9de42d3b34
[ruby/reline] Bind ed-kill-line to C-u on emacs mode
...
9ab99574f5
2021-12-24 18:23:28 +09:00
aycabta
15fab6fb17
[ruby/reline] Support S-Tab to move up completion cursor in vi-mode on Unix
...
ff278cdc88
2021-12-24 18:23:28 +09:00
Hiroshi SHIBATA
35d779c57b
[ruby/readline] Bump version to 0.0.3
...
996af225ad
2021-12-24 17:54:09 +09:00
aycabta
03f16d37bf
[ruby/rdoc] Version 6.4.0
...
4797f28df8
2021-12-24 17:04:11 +09:00
Yusuke Endoh
71e85ec9b5
[rubygems/rubygems] Do not use IO#flock on Solaris
...
`io.flock(File::LOCK_EX)` fails on Solaris when the io is opened as
read-only. Due to this issue, `make install` of the ruby package failed
on Solaris.
5905d17ab2
2021-12-24 16:04:29 +09:00
Sutou Kouhei
22ef4f6445
[ruby/csv] Revert "parser: fix a keep bug that some texts may be dropped unexpectedly"
...
This reverts commit 5c6523da0a
.
This introduces another pbolem. We should try again later.
43a1d6fff1
2021-12-24 14:35:33 +09:00
Sutou Kouhei
002ce9f515
[ruby/csv] parser: use row separator explicitly
...
It will improve performance a bit. (But I haven't confirmed it yet...)
06a65b0302
2021-12-24 14:35:33 +09:00
Sutou Kouhei
4a5d372ca8
[ruby/csv] parser: fix a keep bug that some texts may be dropped unexpectedly
...
Ruby: [Bug #18245 ] [ruby-core:105587]
Reported by Hassan Abdul Rehman.
5c6523da0a
2021-12-24 14:35:33 +09:00
Sutou Kouhei
56a5ae9f52
[ruby/csv] Fix a bug that all of ARGF contents may not be consumed
...
GitHub: fix GH-228
Reported by Rafael Navaza. Thanks!!!
81f595b6a1
2021-12-24 14:35:33 +09:00
Sutou Kouhei
d137ce50a1
[ruby/csv] Bump version
...
e32b666731
2021-12-24 14:35:33 +09:00
adamroyjones
c70dc3cafb
[ruby/csv] Add handling for ambiguous parsing options ( https://github.com/ruby/csv/pull/226 )
...
GitHub: fix GH-225
With Ruby 3.0.2 and csv 3.2.1, the file
```ruby
require "csv"
File.open("example.tsv", "w") { |f| f.puts("foo\t\tbar") }
CSV.read("example.tsv", col_sep: "\t", strip: true)
```
produces the error
```
lib/csv/parser.rb:935:in `parse_quotable_robust': TODO: Meaningful
message in line 1. (CSV::MalformedCSVError)
```
However, the CSV in this example is not malformed; instead, ambiguous
options were provided to the parser. It is not obvious (to me) whether
the string should be parsed as
- `["foo\t\tbar"]`,
- `["foo", "bar"]`,
- `["foo", "", "bar"]`, or
- `["foo", nil, "bar"]`.
This commit adds code that raises an exception when this situation is
encountered. Specifically, it checks if the column separator either ends
with or starts with the characters that would be stripped away.
This commit also adds unit tests and updates the documentation.
cc317dd42d
2021-12-24 14:35:33 +09:00
aycabta
3a59abab08
[ruby/reline] Determine 1st char or 2nd char of surrogate pair correctly
...
182606c847
2021-12-24 13:57:46 +09:00
Hiroshi SHIBATA
b0ad6cb371
Merge RubyGems-3.3.2 and Bundler-2.3.2
2021-12-24 10:35:31 +09:00
YO4
de0523fedd
[ruby/irb] irb_info codepage mismatch
...
`chcp` returns different encoding
f80971994a
2021-12-24 10:32:14 +09:00
aycabta
4bb65ee4fe
[ruby/reline] Character merging may increase the character width
...
Even if the number of graphemes doesn't change owing to character
merging, the character width may increase.
fbcd5f56a7
2021-12-24 00:51:48 +09:00
aycabta
726cc8122e
[ruby/reline] "Halfwidth char + halfwidth (han)dakuten" is a single grapheme.
...
When a halfwidth character is followed by a halfwidth dakuten or a
halfwidth handakuten character, it should be treated as a single
grapheme.
9f20b9ec28
2021-12-24 00:51:47 +09:00
aycabta
daf4a8884b
[ruby/reline] Add comment for a following char of combined char
...
d465667f57
2021-12-24 00:51:46 +09:00
Nobuyoshi Nakada
c6cf19340a
[ruby/pp] [DOC] Update for PP.width_for [Feature #12913 ]
...
cad3cc762c
2021-12-23 18:00:56 +09:00
Yusuke Endoh
d5019949b5
[ruby/error_highlight] Bump version
...
ae3053686f
2021-12-23 12:56:07 +09:00
Yuki Nishijima
de841e2e28
Revert the commits for did_you_mean
...
This reverts commit feaf4fbc3f
.
This reverts commit 0d4bfbdbe1
.
This reverts commit ac4e0978ee
.
2021-12-23 10:09:10 +09:00
Hiroshi SHIBATA
fb1ab27f53
Merge RubyGems-3.3.1 and Bundler-2.3.1
2021-12-23 09:44:45 +09:00
Yuki Nishijima
0d4bfbdbe1
* gems/default_gems: Fix typos
2021-12-22 21:02:07 +09:00
Yuki Nishijima
ac4e0978ee
* gems/default_gems: Sync did_you_mean
2021-12-22 20:29:18 +09:00
Hiroshi SHIBATA
fff9b45fa9
Reverts the accidental commits for rubygems/bundler.
...
We stay to the stable version for releasing Ruby 3.1.0.
Revert commits:
b86a7ba492
ef973aa7aa
2021-12-22 07:52:59 +09:00
David Rodríguez
b86a7ba492
[rubygems/rubygems] Fix error when gem specified twice in gemfile under different platforms
...
83bc87ca98
2021-12-22 03:12:57 +09:00
Yuki Nishijima
cdb7d699d0
Revert commits for did_you_mean
...
This reverts commit 4560091b1c
.
This reverts commit a6f76122a2
.
This reverts commit e59b18a637
.
This reverts commit 505dfae05d
.
2021-12-21 22:10:03 +09:00
Yuki Nishijima
4560091b1c
* gems/default_gems: Make the SPELL_CHECKERS constant as compatible as possible
2021-12-21 22:00:23 +09:00
Yuki Nishijima
505dfae05d
* gems/default_gems: Sync did_you_mean
2021-12-21 19:03:25 +09:00
aycabta
1855f901c8
[ruby/irb] Check colorize option correctly to clear char attr and don't use it for tests
...
de561cafeb
2021-12-21 15:50:32 +09:00