aycabta
8b6d757ba0
[ruby/reline] Remove variables that have no meaning in calculations
...
https://github.com/ruby/reline/commit/3b7a1900fd
2021-09-08 03:34:46 +09:00
aycabta
11a00e3fa2
[ruby/reline] Remove garbage left behind when rerendering the right side of the dialog
...
https://github.com/ruby/reline/commit/d89c23e30b
2021-09-08 03:34:40 +09:00
aycabta
95089ddaf4
[ruby/reline] Move only one line when render a line and then go to the next line
...
https://github.com/ruby/reline/commit/8a966cd962
2021-09-08 01:11:13 +09:00
aycabta
6faf653ab0
[ruby/reline] The #reset_dialog should also use calculated block elem width
...
https://github.com/ruby/reline/commit/577df401b9
2021-09-08 00:13:21 +09:00
aycabta
5a01da7a29
[ruby/reline] Remove debug print
...
https://github.com/ruby/reline/commit/6f82177f2e
2021-09-08 00:08:48 +09:00
aycabta
b766214851
[ruby/reline] Calculate block elem width only once
...
https://github.com/ruby/reline/commit/3054a67d05
2021-09-08 00:08:43 +09:00
aycabta
0ef3d574a0
[ruby/reline] Ensure that scrollbar is only rerendered when the position is changed
...
https://github.com/ruby/reline/commit/f629853eae
2021-09-08 00:08:38 +09:00
aycabta
30486d9150
[ruby/reline] The width of Block Elements in Unicode is East Asian Ambiguous
...
https://github.com/ruby/reline/commit/05e8ab8cbb
2021-09-08 00:04:40 +09:00
aycabta
b4d9126e43
[ruby/reline] Refactor the merging key bindings to make it more readable
...
https://github.com/ruby/reline/commit/59665a22de
2021-09-07 03:23:33 +09:00
aycabta
2441bc8ea9
[ruby/reline] Change the comment about key bindings to more appropriate
...
https://github.com/ruby/reline/commit/4364d9a386
2021-09-07 03:23:26 +09:00
aycabta
30203a6fd9
[ruby/reline] Use Symbol for method names
...
https://github.com/ruby/reline/commit/479eee5393
2021-09-07 02:42:49 +09:00
aycabta
cec50ec8d6
[ruby/reline] Remove SIG prefix because don't use it in any other signal processing
...
https://github.com/ruby/reline/commit/37648042e8
2021-09-07 02:42:42 +09:00
aycabta
f927614e55
[ruby/reline] Use String for the value to be passed because Signal.trap also returns String
...
https://github.com/ruby/reline/commit/b908fe4439
2021-09-07 02:42:38 +09:00
aycabta
4885a61b12
[ruby/reline] Rescue ArgumentError from Signal.trap(:TSTP) on Windows
...
https://github.com/ruby/reline/commit/8da8182d1c
2021-09-07 01:59:13 +09:00
aycabta
e8ad881336
[ruby/reline] Trap TSTP to handle C-z
...
https://github.com/ruby/reline/commit/ebbd0076b8
2021-09-07 01:59:05 +09:00
aycabta
966ed206a6
[ruby/reline] Limit number of chars only when completion source text (pointer == -1)
...
https://github.com/ruby/reline/commit/1d7b603811
2021-09-06 22:50:11 +09:00
aycabta
8baac078bc
[ruby/irb] Version 1.3.8.pre.8
...
https://github.com/ruby/irb/commit/9ff0b1bba0
2021-09-06 16:11:50 +09:00
aycabta
692e7147b4
[ruby/irb] Update dependency, reline >= 0.2.8.pre.8
...
https://github.com/ruby/irb/commit/79ad1f5a6d
2021-09-06 16:11:45 +09:00
aycabta
3cef8869b0
[ruby/reline] Version 0.2.8.pre.8
...
https://github.com/ruby/reline/commit/967e19786d
2021-09-06 16:10:22 +09:00
Filip Pyda
be5159c2f8
[ruby/irb] Pass RI options to help
...
https://github.com/ruby/irb/commit/9b98d1afab
2021-09-06 07:10:27 +09:00
manga_osyo
97a569c648
[ruby/reline] Memoize path of `.inputrc` [Ref #319 ]
...
When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`.
Memoize the path of `.inputrc` and don't get the path after the second time.
https://github.com/ruby/reline/commit/7b90b16165
2021-09-06 07:05:52 +09:00
aycabta
2a4bacce8c
[ruby/irb] Add comments for Alt+d key sequences
...
https://github.com/ruby/irb/commit/4cb5f7e546
2021-09-06 06:39:02 +09:00
aycabta
32ff4a8c93
[ruby/reline] Set scrollbar color
...
https://github.com/ruby/reline/commit/d7962e420d
2021-09-06 05:35:03 +09:00
aycabta
991eb4894d
[ruby/irb] Use multiple trap_key
...
https://github.com/ruby/irb/commit/416abe2524
2021-09-06 05:24:41 +09:00
aycabta
348bb62331
[ruby/reline] Cut out read_2nd_character_of_key_sequence
...
https://github.com/ruby/reline/commit/92518d1dee
2021-09-06 05:24:15 +09:00
aycabta
79652c5873
[ruby/reline] Support multiple trap_key
...
https://github.com/ruby/reline/commit/b0207fa049
2021-09-06 05:24:05 +09:00
aycabta
d07060c42a
[ruby/reline] No need to use max_by when array.size == 1
...
https://github.com/ruby/reline/commit/7e56c8af05
2021-09-06 05:23:55 +09:00
aycabta
8913b9b742
[ruby/reline] Use sort.last instead of sort.reverse.first
...
https://github.com/ruby/reline/commit/67f1d8d2d2
2021-09-06 05:23:46 +09:00
aycabta
7de2c9a966
[ruby/reline] Use combined_key if it exists when comparing Reline::Key and Integer
...
https://github.com/ruby/reline/commit/8fca5f6f9c
2021-09-06 05:23:36 +09:00
aycabta
3773296bfc
[ruby/reline] Allow Reline::KeyStroke to compare raw and meta-key processed key sequences
...
https://github.com/ruby/reline/commit/731103f9c9
2021-09-06 05:23:27 +09:00
aycabta
56ab22ab3d
[ruby/reline] Support for key bindings result Symbol in Reline::Key
...
https://github.com/ruby/reline/commit/cf78a38064
2021-09-06 05:23:18 +09:00
aycabta
bbb3162dd2
[ruby/reline] Add Reline::Key#== as an alias to Reline::Key#match?
...
https://github.com/ruby/reline/commit/1fc3276c01
2021-09-06 05:23:11 +09:00
aycabta
544cd3fb91
[ruby/reline] Support oneshot key bindings config for key_trap of dialog callbacks
...
https://github.com/ruby/reline/commit/5f1141b693
2021-09-06 05:23:06 +09:00
aycabta
bb6d45cfee
[ruby/reline] Reline::Key supports the comparison with Integer
...
https://github.com/ruby/reline/commit/ebc3e0f673
2021-09-06 05:23:01 +09:00
aycabta
e68a586263
[ruby/reline] Add that Reline::Unicode.take_range is cutting based on width
...
https://github.com/ruby/reline/commit/18405d9594
2021-09-06 05:22:36 +09:00
aycabta
1fe604a675
[ruby/reline] Add comments about optimizing chars in ASCII range of UTF-8
...
https://github.com/ruby/reline/commit/3c13d93486
2021-09-06 05:22:29 +09:00
aycabta
5f771f4f02
[ruby/irb] Remove commeted out code
...
https://github.com/ruby/irb/commit/7dda1f803e
2021-09-04 21:59:39 +09:00
aycabta
c8bf45f23c
[ruby/irb] Show doc at the same height as the autocompletion dialog
...
https://github.com/ruby/irb/commit/a9db71e6bc
2021-09-04 21:57:11 +09:00
aycabta
f7d9dd2e4c
[ruby/irb] Render properly if both autocomplete and show doc dialogs are left of the cursor
...
https://github.com/ruby/irb/commit/0090203107
2021-09-04 21:55:55 +09:00
aycabta
03e9887d2e
[ruby/reline] Correct misalignment of scrollbar
...
https://github.com/ruby/reline/commit/7924b4cfc6
2021-09-04 21:40:17 +09:00
aycabta
ec36ceb072
[ruby/reline] Implement scrollbar
...
https://github.com/ruby/reline/commit/4c7fc42151
2021-09-04 21:40:12 +09:00
aycabta
6fa37d2666
[ruby/irb] Retrieve completed receiver that is a module or class correctly
...
https://github.com/ruby/irb/commit/b2324727e1
2021-09-04 17:48:20 +09:00
aycabta
b7e2f7759d
[ruby/irb] Version 1.3.8.pre.7
...
https://github.com/ruby/irb/commit/02c4a8d3b6
2021-09-04 02:18:54 +09:00
aycabta
119edc459f
[ruby/irb] Update dependency, reline >= 0.2.8.pre.7
...
https://github.com/ruby/irb/commit/39593fb4d0
2021-09-04 02:18:50 +09:00
aycabta
36afcf1e15
[ruby/reline] Version 0.2.8.pre.7
...
https://github.com/ruby/reline/commit/c77c3c6fae
2021-09-04 02:17:50 +09:00
aycabta
f445d34c25
[ruby/reline] Show even if it's only one candidate until a perfect match
...
https://github.com/ruby/reline/commit/fe7e34e79f
2021-09-04 02:16:28 +09:00
Hiroshi SHIBATA
94845d0170
Removed needless Gemfile in ruby repo.
2021-09-03 20:35:29 +09:00
Nobuyoshi Nakada
76c7388c1f
[ruby/rdoc] Add tests for `--template-stylesheets` option
...
Also flattens `@options.template_stylesheets` when parsing the
command lines.
Fixes #205
Fixes #828 too
https://github.com/ruby/rdoc/commit/857002a763
2021-09-03 19:13:15 +09:00
Hiroshi SHIBATA
078969914d
[ruby/rdoc] minitest is not need to run rubygems test now
...
https://github.com/ruby/rdoc/commit/27c5f946d2
2021-09-03 19:10:20 +09:00
Nobuyoshi Nakada
62fc81fe12
[ruby/cgi] Use Time#strftime
...
https://github.com/ruby/cgi/commit/caf1d0755d
2021-09-03 17:50:00 +09:00
aycabta
3d6a475587
[ruby/irb] Use Reline::Key for trap_key in dialog callback
...
https://github.com/ruby/irb/commit/b05ce3c72d
2021-09-03 04:28:53 +09:00
aycabta
eb92d7c732
[ruby/irb] Add message to show full doc
...
https://github.com/ruby/irb/commit/6370a5d974
2021-09-03 04:28:32 +09:00
aycabta
f793f68264
[ruby/irb] Add Alt+d trap from show doc dialog to show full doc
...
https://github.com/ruby/irb/commit/368327b082
2021-09-03 04:28:27 +09:00
aycabta
057ab5f056
[ruby/reline] Emulate Unix like terminals that sends Alt+key as \e+key
...
https://github.com/ruby/reline/commit/dc2cf90fa6
2021-09-03 04:27:53 +09:00
aycabta
9e0caba187
[ruby/reline] Add Reline::Key#match?
...
https://github.com/ruby/reline/commit/8f6aa3af2e
2021-09-03 04:27:48 +09:00
aycabta
38ae3b8e36
[ruby/reline] Add key accessor for dialog callbacks
...
https://github.com/ruby/reline/commit/c949e44a14
2021-09-03 04:27:42 +09:00
aycabta
f3fe3511da
[ruby/reline] Swap the order of initialization for readability
...
https://github.com/ruby/reline/commit/d53749b208
2021-09-03 03:32:12 +09:00
aycabta
93080111cd
[ruby/reline] Fix autocomplete dialog width
...
https://github.com/ruby/reline/commit/9868432687
2021-09-03 03:32:07 +09:00
aycabta
8c067f182e
[ruby/reline] Autocompletion ignites when target char length is 3 or longer
...
https://github.com/ruby/reline/commit/261830fda3
2021-09-03 01:12:46 +09:00
aycabta
ed83a01048
[ruby/irb] Version 1.3.8.pre.6
...
https://github.com/ruby/irb/commit/7dc98df80b
2021-09-02 22:17:01 +09:00
aycabta
1efe5cb020
[ruby/irb] Update dependency, reline >= 0.2.8.pre.6
...
https://github.com/ruby/irb/commit/7896296ae2
2021-09-02 22:16:56 +09:00
aycabta
a0a5bdb3ae
[ruby/reline] Version 0.2.8.pre.6
...
https://github.com/ruby/reline/commit/175d5ad4c4
2021-09-02 22:16:36 +09:00
aycabta
4e40b7ddb0
[ruby/irb] Detect the variable class to show doc
...
https://github.com/ruby/irb/commit/33b9bec954
2021-09-02 21:39:55 +09:00
aycabta
f734590f8e
[ruby/reline] Add a space
...
https://github.com/ruby/reline/commit/3d70e07331
2021-09-02 21:36:24 +09:00
aycabta
afa4b59e06
[ruby/reline] Clear only necessary parts when dialog disappearing
...
https://github.com/ruby/reline/commit/46ff0ff435
2021-09-02 17:11:21 +09:00
aycabta
4208cd0301
[ruby/reline] Shrink the dialog height when contents is shorter than it
...
https://github.com/ruby/reline/commit/a18817635f
2021-09-02 17:11:14 +09:00
aycabta
a44d28db9f
[ruby/reline] Fix a misalignment when dialog is shown on top
...
https://github.com/ruby/reline/commit/0527b1a492
2021-09-02 17:11:09 +09:00
aycabta
123fcc8c92
[ruby/reline] Remove an unnsed constant
...
https://github.com/ruby/reline/commit/44da8a6b9e
2021-09-02 17:11:01 +09:00
aycabta
4852d87a81
[ruby/reline] Fix a crash when completing empty line
...
https://github.com/ruby/reline/commit/8226ae7e57
2021-09-02 14:07:48 +09:00
aycabta
5f23003cc2
[ruby/reline] Fix a crash when completing after 2nd line
...
https://github.com/ruby/reline/commit/f9d3480c34
2021-09-02 14:07:40 +09:00
Nobuyoshi Nakada
cb5a41c0a0
Get rid of incompatible-pointer-types-discards-qualifiers warning
2021-09-02 08:47:47 +09:00
aycabta
cf2faf2e33
[ruby/rdoc] Move RDoc::RDoc#load_options to RDoc::RDoc.load_options
...
https://github.com/ruby/rdoc/commit/ac85e01756
2021-09-02 00:32:13 +09:00
aycabta
f9bdb17c02
[ruby/reline] Use padding_space_with_escape_sequences to padding spaces in reset_dialog
...
https://github.com/ruby/reline/commit/7d582f4982
2021-09-01 18:05:37 +09:00
aycabta
acf11b94d2
[ruby/reline] Cut out a method that calcs width including the escape sequence and padding with spaces
...
https://github.com/ruby/reline/commit/46c9d944e5
2021-09-01 18:05:30 +09:00
aycabta
a669b9661e
[ruby/reline] Calc width including escape sequences and padding with spaces correctly
...
https://github.com/ruby/reline/commit/21c795e97f
2021-09-01 18:05:25 +09:00
aycabta
3bd3adde7c
[ruby/reline] Calc width including escape sequences and clear dialog correctly
...
https://github.com/ruby/reline/commit/9b812d5151
2021-09-01 18:05:20 +09:00
aycabta
ba0464e0cf
Reline::GeneralIO should work fine without tty
2021-09-01 17:29:01 +09:00
Stan Lo
fe7aaa94b4
Small grammar fixes
2021-09-01 09:15:57 +09:00
aycabta
9b188ac238
[ruby/reline] Remove one unnecessary nest for simplicity's sake
...
https://github.com/ruby/reline/commit/f4bda85a7c
2021-08-31 20:48:54 +09:00
aycabta
64373a3c58
Move access to dialog_render_info inside nil check
2021-08-31 20:35:10 +09:00
David Rodríguez
f315be2615
[rubygems/rubygems] Remove dead code
...
https://github.com/rubygems/rubygems/commit/9978b787a0
2021-08-31 19:06:14 +09:00
David Rodríguez
4bc87cb1fb
[rubygems/rubygems] Remove `syck` traces from `bundler`
...
Same reason as in the previous commit.
https://github.com/rubygems/rubygems/commit/f00a6c8516
2021-08-31 19:06:14 +09:00
David Rodríguez
1e290c31f4
[rubygems/rubygems] Merge `Gem::UriParser` and `Gem::PrintableUri` into a `Gem::Uri` class
...
The new class is a wrapper on top of an URI. And then, when you want
credentials redacted, you call `#redacted` that returns a copy of itself,
but with credentials redacted.
https://github.com/rubygems/rubygems/commit/9581c2740a
2021-08-31 19:06:14 +09:00
David Rodríguez
f0c6cc14b1
[rubygems/rubygems] Make sure `Gem::Command` is available before using it
...
https://github.com/rubygems/rubygems/commit/95326f827c
2021-08-31 19:06:14 +09:00
David Rodríguez
41240ffee3
[rubygems/rubygems] Remove unused require
...
https://github.com/rubygems/rubygems/commit/2ee3e78a7a
2021-08-31 19:06:14 +09:00
Keiko Kaneko
e841042070
[rubygems/rubygems] Add missing key `branches:`
...
ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
Running jobs with only branch name, without `branches:`, CI fails
https://github.com/rubygems/rubygems/commit/fcec167d61
2021-08-31 19:06:14 +09:00
Daniel Niknam
1948ac20ce
[rubygems/rubygems] Replacing clone with dup
...
https://github.com/rubygems/rubygems/commit/30f5b3c027
2021-08-31 19:06:14 +09:00
Daniel Niknam
4715bbf7b3
[rubygems/rubygems] Remove returning self for `Gem::PrintableUri#parse_uri`
...
https://github.com/rubygems/rubygems/commit/25c99d7f9d
2021-08-31 19:06:14 +09:00
Daniel Niknam
aa898b4206
[rubygems/rubygems] Remove @credential_redacted instance variable
...
https://github.com/rubygems/rubygems/commit/c3bb52eb5c
2021-08-31 19:06:14 +09:00
Daniel Niknam
7067005f23
[rubygems/rubygems] Bring back the empty line that was removed previously by mistake
...
https://github.com/rubygems/rubygems/commit/ffb480ca7a
2021-08-31 19:06:14 +09:00
Daniel Niknam
d73dc8e937
[rubygems/rubygems] Remove unused method
...
https://github.com/rubygems/rubygems/commit/3a8486794e
2021-08-31 19:06:14 +09:00
Daniel Niknam
6d883b33ae
[rubygems/rubygems] Remove `ruby/uri` requirement
...
For the purpose of this class, we need to make sure the return object by `Gem::UriParser.parse_uri` method will have the following method:
- user
- user=
- password
- password=
So we can remove the the `uri` dependency and just look for the methods to exist.
https://github.com/rubygems/rubygems/commit/241e093597
2021-08-31 19:06:14 +09:00
Daniel Niknam
589377fbdc
[rubygems/rubygems] Refactor `Gem::RemoteFetcher::FetchError.build` back to its initialize method
...
https://github.com/rubygems/rubygems/commit/21dcdd2dc5
2021-08-31 19:06:14 +09:00
Daniel Niknam
a508693f06
[rubygems/rubygems] Remove defensive guards
...
https://github.com/rubygems/rubygems/commit/dba130cd80
2021-08-31 19:06:14 +09:00
Daniel Niknam
fafd9d280a
[rubygems/rubygems] Rename `Gem::PrintableUri#parsed_uri?` to `Gem::PrintableUri#valid_uri?`
...
https://github.com/rubygems/rubygems/commit/a5177709c9
2021-08-31 19:06:14 +09:00
Daniel Niknam
e3c319ad53
[rubygems/rubygems] Remove trailing `if`
...
https://github.com/rubygems/rubygems/commit/5b6b649bba
2021-08-31 19:06:14 +09:00
Daniel Niknam
3adc141a79
[rubygems/rubygems] Refactor `Gem::RemoteFetcher::FetchError` initializer to `build` method
...
The `initialize` method is already doing a lot and by adding the `Gem::PrintableUri` to redact sensitive information, things are getting complicated and hard to read here. For the start, I have refactored the `initialize` method into a class method called `build`.
https://github.com/rubygems/rubygems/commit/4312e8fdf5
2021-08-31 19:06:14 +09:00
Daniel Niknam
19e1d3cdce
[rubygems/rubygems] Using `Gem::PrintableUri` in `Gem::Request` class
...
The `@uri` variable could be a source URI with a credential. Using `Gem::PrintableUri` to make sure we are redacting sensitive information from it when logging on verbose mode.
https://github.com/rubygems/rubygems/commit/f566787211
2021-08-31 19:06:14 +09:00
Daniel Niknam
31c2e6c08e
[rubygems/rubygems] Using `Gem::PrintableUri` in `Gem::Commands::InstallCommand` class
...
The `x.source.uri` could be a source URI with a credential. Using `Gem::PrintableUri` to make sure we are redacting sensitive information from it.
https://github.com/rubygems/rubygems/commit/8755ee0aaa
2021-08-31 19:06:14 +09:00
Daniel Niknam
b41802421a
[rubygems/rubygems] Introduce `Gem::PrintableUri` that would redact URIs to be used on outputs
...
We need to redact URI credential in several places and copy pasting the code into each part of it is not ideal. This class is responsible for parsing URI strings and redacting credential from it. Also, it will handle URI object in the same manner. We will be reusing this class whenever we need to print/display a URI to users.
URI with the following format will be redacted:
- Token: `http://my-secure-token@example.com ` => `http://REDACTED@example.com `
- Username & Password: `http://my-username:my-secure-password@example.com ` => `http://my-username:REDACTED@example.com `
- x-oauth-basic: `http://my-secure-token:x-oauth-basic@example.com ` => `http://REDACTED:x-oauth-basic@example.com `
https://github.com/rubygems/rubygems/commit/f1e45d3a89
2021-08-31 19:06:14 +09:00
Matt Larraz
5f205073d2
[rubygems/rubygems] Pass second argument to Array#split to ensure only two values returned
...
https://github.com/rubygems/rubygems/commit/601b5553bb
2021-08-31 19:06:14 +09:00
David Rodríguez
c119dd2b5a
[rubygems/rubygems] Fix `bundle plugin install` misdetection of installed versions
...
https://github.com/rubygems/rubygems/commit/9c88db949d
2021-08-31 19:06:14 +09:00
David Rodríguez
c044f818ca
[rubygems/rubygems] Move `Bundler.rubygems.clear_paths` to a better place
...
Since it clears both home and path.
https://github.com/rubygems/rubygems/commit/fadf5e03ea
2021-08-31 19:06:14 +09:00
David Rodríguez
8c79486e7e
[rubygems/rubygems] Bundle path is already expanded
...
https://github.com/rubygems/rubygems/commit/a296052670
2021-08-31 19:06:14 +09:00
David Rodríguez
71b937d3d7
[rubygems/rubygems] Normalize setting `GEM_PATH`
...
https://github.com/rubygems/rubygems/commit/4188ebd568
2021-08-31 19:06:14 +09:00
David Rodríguez
d0da3a2a7f
[rubygems/rubygems] Remove more unused code
...
https://github.com/rubygems/rubygems/commit/986e889a79
2021-08-31 19:06:14 +09:00
David Rodríguez
8d32f46d04
[rubygems/rubygems] Remove unnecessary line
...
https://github.com/rubygems/rubygems/commit/a7023c6c21
2021-08-31 19:06:14 +09:00
David Rodríguez
f934096638
[rubygems/rubygems] Make plugin installation idempotent
...
The error had not be caught be specs because `bundle install` was
returning a zero exit code when plugin installation errors happened. So
I fixed that issue too.
https://github.com/rubygems/rubygems/commit/90cde87856
2021-08-31 19:06:14 +09:00
David Rodríguez
3a9dd795a7
[rubygems/rubygems] Move some logic to a `save_plugin` method
...
https://github.com/rubygems/rubygems/commit/9620bee2a5
2021-08-31 19:06:14 +09:00
Matt Larraz
2aed061384
[rubygems/rubygems] Correctly redact credentials when using x-oauth-basic
...
https://github.com/rubygems/rubygems/commit/290b6ab078
2021-08-31 19:06:14 +09:00
Daniel Niknam
f212b9d4f2
[rubygems/rubygems] Refactor Ruby platform priority condition to its own method
...
The `Gem::Platform::RUBY ? -1 : 1` has been used multiple times in different places and could be refactored to a method (DRY).
https://github.com/rubygems/rubygems/commit/9d43ca8f0c
2021-08-31 19:06:14 +09:00
Daniel Niknam
c71d1a26ef
[rubygems/rubygems] Pick the last founded gems when fetching metadata
...
https://github.com/rubygems/rubygems/commit/e3d150d822
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2021-08-31 19:06:14 +09:00
David Rodríguez
54ae3f587e
[rubygems/rubygems] Prefer `require_relative` to `require` for internal requires
...
https://github.com/rubygems/rubygems/commit/c74fc58695
2021-08-31 19:06:14 +09:00
David Rodríguez
f6803d2411
[rubygems/rubygems] Fix `bundle check` showing duplicated gems
...
If the lockfile contains multiple platforms, `bundle check` would show
duplicated missing gems.
https://github.com/rubygems/rubygems/commit/6ac5931783
2021-08-31 19:06:14 +09:00
David Rodríguez
e70419d608
[rubygems/rubygems] Explicitly set `allow_cached` to false when setting local mode
...
https://github.com/rubygems/rubygems/commit/1b8139e9d3
2021-08-31 19:06:14 +09:00
David Rodríguez
3683781f53
[rubygems/rubygems] Restore working `bundle check` behaviour
...
As part of a recent bug fix where bundler was accidentally hitting the
network when not supposed to, I made some refactoring, and the commit I'm
reverting here
(d74830d00b
)
was some cleanup that those refactorings allowed according to "past me".
That was completely wrong, `bundle check` should never consider cached
gems, only installed gems, so the code that was removed was necessary.
https://github.com/rubygems/rubygems/commit/5483e98305
2021-08-31 19:06:14 +09:00
David Rodríguez
d01c3111c2
[rubygems/rubygems] Remove MacOS specific extra GEM_PATH
...
They should properly configure `GEM_PATH` instead.
https://github.com/rubygems/rubygems/commit/3bd9ae33ca
2021-08-31 19:06:14 +09:00
David Rodríguez
afabef5a5a
[rubygems/rubygems] Remove MacOS specific gem layout
...
MacOS should properly configure Ruby. They should not expect us to
maintain a different layout just for them.
https://github.com/rubygems/rubygems/commit/ecad900925
2021-08-31 19:06:14 +09:00
Daniel Niknam
717ad64f41
[rubygems/rubygems] Replace StandardError with Exception
...
We think it's unlikely that `rubygems/defaults/operating_system` could be shipped with a SyntaxError so StandardError could be better choice to prevent "false positives" errors.
https://github.com/rubygems/rubygems/commit/1f73e784dd
2021-08-31 19:06:14 +09:00
Daniel Niknam
34e073c0ca
[rubygems/rubygems] Reword the message
...
For errors that could happened while loading `rubygems/defaults/operating_system`
https://github.com/rubygems/rubygems/commit/6e1e2141f8
2021-08-31 19:06:14 +09:00
David Rodríguez
7d859489e1
[rubygems/rubygems] Bring `--jobs` documentation up to date
...
https://github.com/rubygems/rubygems/commit/58da501e5d
2021-08-31 19:06:14 +09:00
David Rodríguez
890b261154
[rubygems/rubygems] See if parallel installation on Windows works better now
...
https://github.com/rubygems/rubygems/commit/0822e1c260
2021-08-31 19:06:14 +09:00
Daniel Niknam
aafc615b4a
[rubygems/rubygems] Enhance error handling when loading the rubygems/defaults/operating_system file
...
When loading `rubygems/defaults/operating_system`
- we want to keep it silent if the raised exception is a LoadError
- we want to print a message in other cases and ask users to report the issue to their OS support.
Ruby 3 comes with special error handling for loading `rubygems` and it will show a warning when LoadError exception raised for requiring 'rubygem'.
Because of that, we decided to leave the LoadError scenario as it is.
Reference: d1998d8767/gem_prelude.rb (L1-L5)
https://github.com/rubygems/rubygems/commit/0a97e12fe1
2021-08-31 19:06:14 +09:00
David Rodríguez
9fa5c4cd07
[rubygems/rubygems] Also load user installed rubygems plugins
...
https://github.com/rubygems/rubygems/commit/82960c262f
2021-08-31 19:06:14 +09:00
David Rodríguez
21db5876ca
[rubygems/rubygems] Respect `BUNDLE_USER_HOME` for global config location
...
https://github.com/rubygems/rubygems/commit/58fc31442f
2021-08-31 19:06:14 +09:00
David Rodríguez
5aee962fe3
[rubygems/rubygems] Remove `RUBYGEMS_GEMDEPS` warning
...
When setting the `RUBYGEMS_GEMDEPS` environment variable to allow
skipping `bundle exec`, `bundler` will print a warning about potential
incompatibility.
Initially the `RUBYGEMS_GEMDEPS` variable used a completely different
(re)implementation of `bundler` functionality. That implementation was
not battle tested and could potentially differ in behaviour from what
`bundler` does. That's why print a warning.
However, these days, all `rubygems` does when `RUBYGEMS_GEMDEPS` is set
is to require `bundler/setup`, so there's no risk of any
incompatibility, since that's just plain `bundler`.
https://github.com/rubygems/rubygems/commit/bbddc27016
2021-08-31 19:06:14 +09:00
David Rodríguez
2d0d1c339a
[rubygems/rubygems] Recommend `bundle install` rather than `gem install -g`
...
https://github.com/rubygems/rubygems/commit/4028cbc408
2021-08-31 19:06:14 +09:00
David Rodríguez
43aecf216e
[rubygems/rubygems] Get a CI matrix configured in default Github Actions generated config
...
Even if it only has one entry at the moment, it makes it easier to add
new entries by doing it this way.
https://github.com/rubygems/rubygems/commit/46232fe265
Co-authored-by: NeimadTL <damientalbot26@gmail.com>
2021-08-31 19:06:14 +09:00
David Rodríguez
2e30d9ab42
[rubygems/rubygems] Avoid double CI runs in default Github Actions generated config
...
Otherwise CI will run once for every pull request update and once for
every push.
The disavantage is that people working on a non default branch without
creating pull requests won't get CI run at all.
I think the advantages are greater than the disadvantages, it's also my
personal workflow, and it's something desired enough so that someone
opened an issue about it.
So let's do it!
https://github.com/rubygems/rubygems/commit/924d916a73
Co-authored-by: NeimadTL <damientalbot26@gmail.com>
2021-08-31 19:06:14 +09:00
David Rodríguez
553ee573d4
[rubygems/rubygems] Don't use gemdeps on bundler binstub
...
https://github.com/rubygems/rubygems/commit/320fdc1513
2021-08-31 19:06:14 +09:00
David Rodríguez
1663dd5f73
[rubygems/rubygems] Simplify rescue of bundler errors
...
As far as I understand, this block should only be run when
`bundler/setup` fails. The only other case where these errors could be
run is when bundler itself is required.
If bundler itself fails to be required or activated (like in old rubies
where it was not a default gem, for example), the raw error is much more
helpful than this message.
So we can move the rescue after bundler is succesfully required, and
that simplifies the list of exceptions that we need to track to just
`Bundler::Error`.
https://github.com/rubygems/rubygems/commit/3663c11e93
2021-08-31 19:06:14 +09:00
David Rodríguez
0aa9eb9eed
[rubygems/rubygems] Move list of exceptions to the `rescue` clause
...
Instead of having to match classes and re-raise in the exception body.
https://github.com/rubygems/rubygems/commit/5edf74b781
2021-08-31 19:06:14 +09:00
David Rodríguez
87dfb55c16
[rubygems/rubygems] Use `Gem.use_gemdeps` only from binstubs
...
The previous behavior was to automatically require `bundler/setup`
everytime `rubygems` was required, which I think was too much.
https://github.com/rubygems/rubygems/commit/b25379a295
2021-08-31 19:06:14 +09:00
David Rodríguez
a3b3fdc3cd
[rubygems/rubygems] Take advantage of `target` being a `Pathname`
...
https://github.com/rubygems/rubygems/commit/c31b8cd232
2021-08-31 19:06:14 +09:00
David Rodríguez
8adc606271
[rubygems/rubygems] Fix git repo initialization on a path with spaces
...
https://github.com/rubygems/rubygems/commit/a2d6e10192
2021-08-31 19:06:14 +09:00
David Rodríguez
d9ecc97f33
[rubygems/rubygems] Remove bad TODO
...
The commented out code causes failing tests because it's not correct.
https://github.com/rubygems/rubygems/commit/38f0eca91a
2021-08-31 19:06:14 +09:00
David Rodríguez
19d77a1cfc
[rubygems/rubygems] Remove unnecessary spec manipulation
...
https://github.com/rubygems/rubygems/commit/c7c00c280f
2021-08-31 19:06:14 +09:00
David Rodríguez
10dcd0eb5b
[rubygems/rubygems] Deprecate `bundle exec --no-keep-file-descriptors`
...
https://github.com/rubygems/rubygems/commit/591466d512
2021-08-31 19:06:14 +09:00
David Rodríguez
8c1b31f7b3
[rubygems/rubygems] Don't warn default behaviour
...
https://github.com/rubygems/rubygems/commit/ed845d861c
2021-08-31 19:06:14 +09:00
David Rodríguez
58635d4ff7
[rubygems/rubygems] Keep file descriptors by default
...
https://github.com/rubygems/rubygems/commit/88b7a3e7e2
2021-08-31 19:06:14 +09:00
Nobuyoshi Nakada
9fc16a31d9
[rubygems/rubygems] Exclude gemspec file itself from gem
...
The processed YML data is included as metadata, the source gemspec
file is unused and just confusing.
https://github.com/rubygems/rubygems/commit/f444478eac
2021-08-31 19:06:14 +09:00
Tim Sutton
d7c734a27e
[rubygems/rubygems] typos in UI messages: fix a couple missing spaces between sentence breaks
...
https://github.com/rubygems/rubygems/commit/5cdda53382
2021-08-31 19:06:14 +09:00
David Rodríguez
97de4c02ad
[rubygems/rubygems] Remove now unnecessary code
...
https://github.com/rubygems/rubygems/commit/d74830d00b
2021-08-31 19:06:14 +09:00
David Rodríguez
0e01ad881a
[rubygems/rubygems] The `--local` flag to `bundle install` shouldn't hit the network
...
If the cache was missing, `bundler` would try to re-fetch it. With the
`--local` flag, it should just look at installed gems.
https://github.com/rubygems/rubygems/commit/630d29c69e
2021-08-31 19:06:14 +09:00
David Rodríguez
7116ec6199
[rubygems/rubygems] Requiring `bundler/setup` shouldn't try to hit the network
...
https://github.com/rubygems/rubygems/commit/06f5efce02
2021-08-31 19:06:14 +09:00
David Rodríguez
0b4dbe2e6a
[rubygems/rubygems] Improve "gem not found in source" errors
...
When printing sources inside these error messages, it's useful to only
consider the current state of the source. For example, when requiring
`bundler/setup`, the source shouldn't be configured to be able to hit
the network, so the error message should only mention "locally installed
gems" to make that more clear.
https://github.com/rubygems/rubygems/commit/30eb14f853
2021-08-31 19:06:14 +09:00
David Rodríguez
2e850e0038
[rubygems/rubygems] Only set local variable in the branch using it
...
https://github.com/rubygems/rubygems/commit/9fd39bd5a3
2021-08-31 19:06:14 +09:00
David Rodríguez
b351cebab2
[rubygems/rubygems] Simplify error message building in resolver
...
Since all requirements have an explicit source now (even if it's the
default source).
https://github.com/rubygems/rubygems/commit/2c341cfc22
2021-08-31 19:06:14 +09:00
David Rodríguez
b17cdad2f8
[rubygems/rubygems] Remove redundant part of error message
...
It doesn't really add much, in my opinion. We want to be helpful, but
also concise when possible.
https://github.com/rubygems/rubygems/commit/9d56009cf7
2021-08-31 19:06:14 +09:00
David Rodríguez
f1c0729128
[rubygems/rubygems] Fix standalone generated script to deal with path sources
...
In the case of path sources, the path the source is pointing to should
be added directly to the `$LOAD_PATH` without any modifications.
https://github.com/rubygems/rubygems/commit/d3bba936f0
Co-authored-by: Daniel Niknam <mhmd.niknam@gmail.com>
2021-08-31 19:06:14 +09:00
David Rodríguez
7465b94f8a
[rubygems/rubygems] Remove unnecessary `ruby_version` local variable
...
Under some case, this variable might not end up being used, in which
case running the script would print unused variable warnings.
https://github.com/rubygems/rubygems/commit/bf96030362
2021-08-31 19:06:14 +09:00
David Rodríguez
7566c85cc0
[rubygems/rubygems] Use same criteria for ruby engine as in the final script
...
https://github.com/rubygems/rubygems/commit/fcb8c3d188
2021-08-31 19:06:14 +09:00
David Rodríguez
3aa087d533
[rubygems/rubygems] Remove unnecessary `ruby_engine` local variable
...
Under some case, this variable might not end up being used, in which
case running the script would print unused variable warnings.
https://github.com/rubygems/rubygems/commit/a2d6392ada
2021-08-31 19:06:14 +09:00
David Rodríguez
1d6551a02d
[rubygems/rubygems] Remove unnecessary `path` local variable
...
We can use `__dir__` directly.
https://github.com/rubygems/rubygems/commit/0e6083ca94
2021-08-31 19:06:14 +09:00
David Rodríguez
97c0d3fead
[rubygems/rubygems] Fix unnecessary $LOAD_PATH modification in standalone script
...
Due to the `bundler` gem itself being ignored from `$LOAD_PATHS`, a
`nil` value is being introduced here, resulting in the current folder
being added to the `$LOAD_PATH` by the standalone script.
I'm pretty sure this is unintentional.
https://github.com/rubygems/rubygems/commit/df54b07b5e
2021-08-31 19:06:14 +09:00
David Rodríguez
23c27d2c7b
[rubygems/rubygems] Don't sort materialized specs when not necessary
...
This should fix a weird flaky spec failure, given that the code
producing the error will be no longer run.
https://github.com/rubygems/rubygems/commit/a171965409
2021-08-31 19:06:14 +09:00
David Rodríguez
0ab160e2e0
[rubygems/rubygems] Respect `BUNDLE_USER_CONFIG` if set
...
https://github.com/rubygems/rubygems/commit/f28ab141af
2021-08-31 19:06:14 +09:00
David Rodríguez
d37c2441cc
[rubygems/rubygems] We can now avoid source materialization work
...
No need to fill up missing names from sources anymore since they should
now be properly set up correctly from the beginning.
https://github.com/rubygems/rubygems/commit/706fd28681
2021-08-31 19:06:14 +09:00
David Rodríguez
1b9b41472f
[rubygems/rubygems] Completely avoid replacing sources when in multisource compatibility mode
...
Since this mode is only enabled in frozen mode, it's fine to use the
lockfile and means we don't have to "prepare" the replacement for
materialization.
https://github.com/rubygems/rubygems/commit/dda01b288e
2021-08-31 19:06:14 +09:00
David Rodríguez
c2f376bcc0
[rubygems/rubygems] Fix standalone install of default gems
...
Rubygems source replacement was broken.
https://github.com/rubygems/rubygems/commit/3549c122f6
2021-08-31 19:06:14 +09:00
David Rodríguez
570167eaa9
[rubygems/rubygems] Give a `bundle install` hint when `bundle list` fails
...
https://github.com/rubygems/rubygems/commit/98f5087e34
2021-08-31 19:06:14 +09:00
David Rodríguez
81c0643762
[rubygems/rubygems] Remove unnecessary escape sequences
...
Bundler formatters already take care of this.
https://github.com/rubygems/rubygems/commit/c24415fdd5
2021-08-31 19:06:14 +09:00
David Rodríguez
fe47ac213b
[rubygems/rubygems] Remove unnecessary exception
...
If we have succeeded to materialize the bundle, all specs should be
loaded.
https://github.com/rubygems/rubygems/commit/bd3712d824
2021-08-31 19:06:14 +09:00
David Rodríguez
9a25a98c6b
[rubygems/rubygems] Show all missing gems when using a bundle before installing it
...
Not only the first one that's missing.
This also allows us to simplify things.
https://github.com/rubygems/rubygems/commit/69718a9509
2021-08-31 19:06:14 +09:00
David Rodríguez
d298ef40f2
[rubygems/rubygems] Small refactor by DRYing up some logic
...
https://github.com/rubygems/rubygems/commit/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
...
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/86d692edb8
2021-08-31 19:06:14 +09:00
David Rodríguez
dd22549e07
[rubygems/rubygems] Let original exception be re-raised
...
https://github.com/rubygems/rubygems/commit/a669401a5a
2021-08-31 19:06:14 +09:00
aycabta
80309800f1
[ruby/irb] Version 1.3.8.pre.5
...
https://github.com/ruby/irb/commit/968422799c
2021-08-31 15:23:54 +09:00
aycabta
a512496b3f
[ruby/irb] Update dependency, reline >= 0.2.8.pre.5
...
https://github.com/ruby/irb/commit/657bd3fd12
2021-08-31 15:23:47 +09:00
aycabta
8273e95753
[ruby/reline] Version 0.2.8.pre.5
...
https://github.com/ruby/reline/commit/79b7d80fee
2021-08-31 15:22:05 +09:00
aycabta
817694481c
[ruby/irb] Set the dialog width to render with a fixed width
...
https://github.com/ruby/irb/commit/80c4329643
2021-08-31 15:20:34 +09:00
aycabta
077bc98ce4
[ruby/irb] Follow that Dialog#contents_width has been renamed to #width
...
https://github.com/ruby/irb/commit/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
...
https://github.com/ruby/irb/commit/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.
https://github.com/ruby/irb/commit/f8b752bd98
2021-08-31 15:20:17 +09:00
aycabta
7afb5b8b95
[ruby/reline] Use Reline::Unicode.take_range to devide exactly by width
...
https://github.com/ruby/reline/commit/de1ad93f44
2021-08-31 15:19:44 +09:00
aycabta
4f5166e790
[ruby/reline] Check if dialog_render_info is nil or not
...
https://github.com/ruby/reline/commit/e2b87fe831
2021-08-31 15:19:37 +09:00
aycabta
c8a07a1231
[ruby/reline] Fix Reline::Unicode.take_range as it was not fully functional
...
https://github.com/ruby/reline/commit/5da6a8d851
2021-08-31 15:19:32 +09:00
aycabta
7fae57dbb4
[ruby/reline] Use dynamic contents width
...
https://github.com/ruby/reline/commit/f0e54f239b
2021-08-31 15:19:25 +09:00
aycabta
a598730e79
[ruby/reline] Remove an unused variable
...
https://github.com/ruby/reline/commit/0ae7d8b336
2021-08-31 05:45:02 +09:00
aycabta
4a174b7c55
[ruby/irb] Version 1.3.8.pre.4
...
https://github.com/ruby/irb/commit/61fe6cfa43
2021-08-31 05:30:09 +09:00
aycabta
96131c5ae9
[ruby/irb] Update dependency, reline >= 0.2.8.pre.4
...
https://github.com/ruby/irb/commit/24315382d0
2021-08-31 05:30:04 +09:00
aycabta
bb2b5052f5
[ruby/reline] Version 0.2.8.pre.4
...
https://github.com/ruby/reline/commit/059d39b090
2021-08-31 05:28:17 +09:00
aycabta
c98b2e14c7
[ruby/reline] Pass "dialog" to context to get "dialog.scroll_top" later
...
https://github.com/ruby/reline/commit/d81f29a134
2021-08-31 05:26:53 +09:00
aycabta
32abd38014
[ruby/reline] Autocompletion dialog height 15
...
https://github.com/ruby/reline/commit/7e18716754
2021-08-31 05:26:45 +09:00
aycabta
81d40b5b7e
[ruby/reline] Scroll autocompletion pointer in dialog correctly
...
https://github.com/ruby/reline/commit/dc79ed2dd8
2021-08-31 05:26:39 +09:00
aycabta
282f7ce896
[ruby/reline] Use DialogRenderInfo struct
...
https://github.com/ruby/reline/commit/ac6f652a39
2021-08-31 05:26:33 +09:00
aycabta
0c09418fff
[ruby/reline] Fix dialog rendering at the bottom edge
...
https://github.com/ruby/reline/commit/860be91bd7
2021-08-31 05:26:28 +09:00
aycabta
c63d98b401
[ruby/irb] Use DialogRenderInfo
...
https://github.com/ruby/irb/commit/5bc3a72ca3
2021-08-31 05:24:55 +09:00
aycabta
b30be9f222
[ruby/irb] Take dialog to get scroll_top
...
https://github.com/ruby/irb/commit/7209082a11
2021-08-31 05:24:45 +09:00
aycabta
16cf2ef6f2
[ruby/irb] Don't show doc when pointer is negative
...
https://github.com/ruby/irb/commit/48af34bfc2
2021-08-31 05:24:36 +09:00
aycabta
7379a493bd
[ruby/irb] Version 1.3.8.pre.3
...
https://github.com/ruby/irb/commit/a1fc68abaa
2021-08-30 12:00:35 +09:00
aycabta
aeec02d7f3
[ruby/irb] [].name to display the doc for Array.name
...
https://github.com/ruby/irb/commit/7c2abc14d8
2021-08-30 11:58:56 +09:00
aycabta
1e2f10e8aa
[ruby/irb] Rescue unknown error to quash crashing
...
https://github.com/ruby/irb/commit/92cce941cb
2021-08-30 11:58:51 +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
...
https://github.com/ruby/reline/commit/6e0ea3362a
2021-08-30 02:37:23 +09:00
aycabta
8750e1ada8
[ruby/reline] Fix Reline.autocompletion=() interface
...
https://github.com/ruby/reline/commit/71c2eb143d
2021-08-30 02:37:23 +09:00
aycabta
e1ee7f9ced
[ruby/reline] Version 0.2.8.pre.2
...
https://github.com/ruby/reline/commit/5e3ea74891
2021-08-30 02:37:23 +09:00
aycabta
62555d7ae6
[ruby/reline] Set autocompletion is false by default
...
For compatibility with ext/readline.
https://github.com/ruby/reline/commit/13d9b936bc
2021-08-30 02:37:23 +09:00
aycabta
3a2e2a6848
[ruby/reline] Add Reline.autocompletion=() interface
...
https://github.com/ruby/reline/commit/a2e69f6277
2021-08-30 02:37:23 +09:00
aycabta
935bb4c617
[ruby/reline] Add autocompletion on emacs mode by Tab / S-Tab
...
https://github.com/ruby/reline/commit/22d0b4e5d8
2021-08-30 02:37:23 +09:00
aycabta
11b825076b
[ruby/reline] Add config.autocompletion
...
https://github.com/ruby/reline/commit/3d918e4ccb
2021-08-30 02:37:23 +09:00
aycabta
60eb328d42
[ruby/irb] Version 1.3.8.pre.2
...
https://github.com/ruby/irb/commit/ff111173fd
2021-08-30 02:34:18 +09:00
aycabta
b35eff27dd
[ruby/irb] Update dependency, reline >= 0.2.8.pre.3
...
https://github.com/ruby/irb/commit/2f1d989d7c
2021-08-30 02:33:34 +09:00
aycabta
4750dfa6db
[ruby/irb] Update dependency to "reline >= 0.2.7.pre.2" for Reline.autocomplete=()
...
https://github.com/ruby/irb/commit/66178f34b9
2021-08-30 02:33:21 +09:00
aycabta
5f7c2291d6
[ruby/irb] Version 1.3.8.pre.1
...
https://github.com/ruby/irb/commit/9f82ae66fc
2021-08-29 20:33:21 +09:00
aycabta
8876710f2a
[ruby/reline] Version 0.2.8.pre.1
...
https://github.com/ruby/reline/commit/2668715509
2021-08-29 20:30:33 +09:00
aycabta
7857a1ab66
[ruby/reline] Make autocomplete dialog is registered first
...
https://github.com/ruby/reline/commit/d027dbe118
2021-08-29 20:30:33 +09:00
aycabta
535a1cc71c
[ruby/reline] Delete show doc dialog to move it to IRB
...
https://github.com/ruby/reline/commit/640102fe27
2021-08-29 20:30:33 +09:00
aycabta
74ba532883
[ruby/reline] Remove an unnecessary variable
...
https://github.com/ruby/reline/commit/3b8cc5ce0a
2021-08-29 20:30:33 +09:00
aycabta
3248c42592
[ruby/reline] Remove dialog_proc_list accessor of Reline
...
https://github.com/ruby/reline/commit/ac8fa84f4d
2021-08-29 20:30:33 +09:00
aycabta
32124de17e
[ruby/reline] Move constants of dialogs to under Reline
...
https://github.com/ruby/reline/commit/9100ea2934
2021-08-29 20:30:33 +09:00
aycabta
29586ec9f3
[ruby/reline] Use default dialog context to communicate others
...
https://github.com/ruby/reline/commit/5e67e6ffe0
2021-08-29 20:30:33 +09:00
aycabta
b023ef8594
[ruby/reline] Clear dialog by C-c
...
https://github.com/ruby/reline/commit/f66a079c85
2021-08-29 20:30:33 +09:00
aycabta
d41d41da38
[ruby/reline] Clear completion journey data when finished
...
https://github.com/ruby/reline/commit/03716a411e
2021-08-29 20:30:33 +09:00
aycabta
6273b9bb62
[ruby/reline] Use colored doc output with ANSI escape sequence
...
https://github.com/ruby/reline/commit/7d1c75b43f
2021-08-29 20:30:33 +09:00
aycabta
3d757ba1b6
[ruby/reline] Suppress crashes on nil
...
https://github.com/ruby/reline/commit/b5f62c366b
2021-08-29 20:30:33 +09:00
aycabta
acd15a39d2
[ruby/reline] Support custom bg color
...
https://github.com/ruby/reline/commit/cd0cbf53d5
2021-08-29 20:30:33 +09:00
aycabta
78f46e6576
[ruby/reline] Show method or class doc correctly
...
https://github.com/ruby/reline/commit/a505294f12
2021-08-29 20:30:33 +09:00
aycabta
7e8a627052
[ruby/reline] Implement doc display dialog in conjunction with autocomplete
...
https://github.com/ruby/reline/commit/e97bbc4ccf
2021-08-29 20:30:33 +09:00
aycabta
4cd344c958
[ruby/reline] Add the ability to handle context between dialogs
...
https://github.com/ruby/reline/commit/063d9c70d9
2021-08-29 20:30:33 +09:00
aycabta
8d4370b066
[ruby/reline] Support for multiple dialog rendering
...
https://github.com/ruby/reline/commit/f589fab718
2021-08-29 20:30:33 +09:00
aycabta
acffb0b068
[ruby/reline] Cut out the autocomplete callback
...
https://github.com/ruby/reline/commit/46aa2694da
2021-08-29 20:30:33 +09:00
aycabta
164e486225
[ruby/reline] Remove @dialog_updown and @dialog_contents_width
...
https://github.com/ruby/reline/commit/458cb8a9cc
2021-08-29 20:30:33 +09:00
aycabta
4b2b10707a
[ruby/reline] Implement dynamic selection of candidates
...
https://github.com/ruby/reline/commit/e46437df00
2021-08-29 20:30:33 +09:00
aycabta
8e463e3e73
[ruby/reline] Remove unnecessary condition
...
https://github.com/ruby/reline/commit/07e911ec8e
2021-08-29 20:30:33 +09:00
aycabta
fdc005e54e
[ruby/reline] Completion journey starts with one of candidates
...
First one is just original string.
https://github.com/ruby/reline/commit/ccb70cc240
2021-08-29 20:30:33 +09:00
aycabta
18c0814fe0
[ruby/reline] Fix typo
...
https://github.com/ruby/reline/commit/6370353c71
2021-08-29 20:30:33 +09:00
aycabta
475038a622
[ruby/reline] Move cursor correctly when current line is auto wrapped
...
https://github.com/ruby/reline/commit/14c8fade54
2021-08-29 20:30:33 +09:00
aycabta
ff43b0f2dd
[ruby/reline] Update dialog backup before clearing
...
https://github.com/ruby/reline/commit/a39e2c8813
2021-08-29 20:30:33 +09:00
aycabta
ca1a2d1f68
[ruby/reline] Show autocomplete correctly when starts from prev line
...
https://github.com/ruby/reline/commit/f31a76ff31
2021-08-29 20:30:33 +09:00
aycabta
06bd48aba8
[ruby/reline] Remove unnecessary metadata between lines
...
https://github.com/ruby/reline/commit/83928249e3
2021-08-29 20:30:33 +09:00
aycabta
081e5de34d
[ruby/reline] Combine vertical processing into @dialog_vertical_offset
...
https://github.com/ruby/reline/commit/600b93620c
2021-08-29 20:30:33 +09:00
aycabta
f863ed5210
[ruby/reline] Drop too much contents before processing
...
https://github.com/ruby/reline/commit/94f7027edc
2021-08-29 20:30:33 +09:00
aycabta
fb9fe4c43f
[ruby/reline] Display autocomplete below original line if end point was wrapped
...
https://github.com/ruby/reline/commit/49f3392d59
2021-08-29 20:30:33 +09:00
aycabta
9b2afb2eed
[ruby/reline] Scroll properly to create margin
...
https://github.com/ruby/reline/commit/064d54f8f1
2021-08-29 20:30:33 +09:00
aycabta
85dd0ad5e0
[ruby/reline] Move dialog pos to left when goes beyond right edge
...
https://github.com/ruby/reline/commit/f1efa2b062
2021-08-29 20:30:33 +09:00
aycabta
d768eeeddb
[ruby/reline] Support hide/show cursor on Windows
...
https://github.com/ruby/reline/commit/0c870813bd
2021-08-29 20:30:33 +09:00
aycabta
02a61fe33f
[ruby/reline] Hide cursor when rendering dialog
...
https://github.com/ruby/reline/commit/a9050cf676
2021-08-29 20:30:32 +09:00
aycabta
c0349765e9
[ruby/reline] Remove debug code
...
https://github.com/ruby/reline/commit/2389d175f7
2021-08-29 20:30:32 +09:00
aycabta
2ec3977ce2
[ruby/reline] Clear after cursor
...
https://github.com/ruby/reline/commit/4d7503cd1f
2021-08-29 20:30:32 +09:00
aycabta
b95e5f4a41
[ruby/reline] Move cursor to rerender right margin of dialog correctly
...
https://github.com/ruby/reline/commit/554855013b
2021-08-29 20:30:32 +09:00
usa
788c047695
[ruby/reline] Create windows.rb
...
see issue #317
https://github.com/ruby/reline/commit/aad164de93
2021-08-29 20:30:32 +09:00
aycabta
d7f654ad5a
[ruby/reline] Add "sleep 0.01" to Windows event loop
...
https://github.com/ruby/reline/commit/dfc89eae53
2021-08-29 20:30:32 +09:00
aycabta
6f66927aef
[ruby/reline] Add comments about where rerendering
...
https://github.com/ruby/reline/commit/4406069b7e
2021-08-29 20:30:32 +09:00
aycabta
55459bdd67
[ruby/reline] Use background color instead of border frame
...
https://github.com/ruby/reline/commit/8f1db0a076
2021-08-29 20:30:32 +09:00
aycabta
6fda457448
[ruby/reline] Suppress warning; unused variable
...
https://github.com/ruby/reline/commit/74a6124e8d
2021-08-29 20:30:32 +09:00
aycabta
1e527c8a55
[ruby/reline] Remove an unnecessary variable
...
https://github.com/ruby/reline/commit/5435c1aa3f
2021-08-29 20:30:32 +09:00
aycabta
fb0fc20196
[ruby/reline] Implement dialog with autocomplete callback
...
https://github.com/ruby/reline/commit/1401d6165e
2021-08-29 20:30:32 +09:00
aycabta
e66200780b
[ruby/reline] Separate calling completion proc with checking args
...
https://github.com/ruby/reline/commit/3203cb97db
2021-08-29 20:30:32 +09:00
aycabta
eadd25d5af
[ruby/irb] Update dependency to "reline >= 0.2.7.pre.1" for use dialog feature in tests
...
https://github.com/ruby/irb/commit/df04a9a881
2021-08-29 20:30:07 +09:00
aycabta
cde84a5baa
[ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_name
...
https://github.com/ruby/irb/commit/c5f13b23d7
2021-08-29 20:30:01 +09:00
aycabta
ae4e301d5d
[ruby/irb] Add show doc dialog for Reline
...
https://github.com/ruby/irb/commit/026700499d
2021-08-29 20:29:54 +09:00
Nobuyoshi Nakada
b62ed309f0
[ruby/securerandom] [DOC] fix a code mark up [ci skip]
...
https://github.com/ruby/securerandom/commit/de47532707
2021-08-24 19:29:54 +09:00
Olle Jonsson
80597f2544
[ruby/un] gemspec: Explicitly list 0 executables
...
This gem exposes no executables, so this makes that clear to the reader.
https://github.com/ruby/un/commit/012c298e12
2021-08-24 18:02:44 +09:00
Hiroshi SHIBATA
b126a27d8c
[ruby/un] LICENSE
...
https://github.com/ruby/un/commit/762c38c176
2021-08-24 18:02:44 +09:00
Kazuhiro NISHIYAMA
2eed62fb65
[ruby/un] Use STDIN if no arguments
...
https://github.com/ruby/un/commit/8e0d6f62cb
2021-08-24 18:02:44 +09:00
Kazuhiro NISHIYAMA
66abeb0370
[ruby/un] Add colorize command
...
https://github.com/ruby/un/commit/4d080eeec0
2021-08-24 18:02:44 +09:00
Kentaro Goto
689962eaea
improves message. thanks to eregon
2021-08-23 09:59:09 +09:00
Kentaro Goto
f18e1752dc
Display httpd URLs supporting HTTPS
2021-08-23 09:59:09 +09:00
Kentaro Goto
8361675e3a
Display httpd URLs
2021-08-23 09:59:09 +09:00
Yusuke Endoh
cad83fa3c4
ast.c: Rename "save_script_lines" to "keep_script_lines"
...
... as per ko1's preference. He is preparing to extend this feature to
ISeq for his new debugger. He prefers "keep" to "save" for this wording.
This API is internal and not included in any released version, so I
change it in advance.
2021-08-20 16:18:36 +09:00
aycabta
acce754eb8
[ruby/reline] Remove interrupt avoidance
...
There used to be a process that did not want to be interrupted by
SIGINT, so it was trapped, but that process is no longer there.
https://github.com/ruby/reline/commit/ba7252a5db
2021-08-14 22:13:31 +09:00
aycabta
5534698b84
[ruby/reline] Version 0.2.7
...
https://github.com/ruby/reline/commit/040d29b4c0
2021-08-12 19:55:17 +09:00
aycabta
f9abcfb6fc
[ruby/irb] Version 1.3.7
...
https://github.com/ruby/irb/commit/98610236ec
2021-08-12 19:53:10 +09:00
aycabta
53743a42c4
[ruby/irb] Update dependency, reline >= 0.2.7
...
https://github.com/ruby/irb/commit/5a0c8dc9e6
2021-08-12 19:53:04 +09:00
aycabta
b8f771fba2
Update parser files of RDoc generated by the latest Racc
2021-08-10 02:36:00 +09:00
aycabta
44635ebe9a
Update parser files of RDoc generated by the latest KPeg
2021-08-10 02:36:00 +09:00
aycabta
6b439e9c4e
[ruby/rdoc] Use HEAD of kpeg
...
I compared the results between the latest release of kpeg gem (1.1.0)
and HEAD of kpeg gem with `time` command, and the execution time is
reduced from 38.35s sec to 35.06 sec.
ref. https://github.com/evanphx/kpeg/pull/43
https://github.com/ruby/rdoc/commit/682bcb48ce
2021-08-10 02:36:00 +09:00
aycabta
d082510429
[ruby/rdoc] Add "rake clean" task to erase generated parser files
...
https://github.com/ruby/rdoc/commit/4e3e635afa
2021-08-10 02:36:00 +09:00
aycabta
b277a6d26d
Import copied Rakefile from original RDoc repository
2021-08-10 02:36:00 +09:00
aycabta
d8eeee97ce
[ruby/rdoc] Move dev dependency of gettext to Gemfile
...
https://github.com/ruby/rdoc/commit/a177377b6f
2021-08-10 02:36:00 +09:00
aycabta
638c72e162
[ruby/rdoc] Use single quote in Gemfile
...
https://github.com/ruby/rdoc/commit/e4b68d414c
2021-08-10 02:36:00 +09:00
aycabta
b685c60bef
Import copied Gemfile from original RDoc repository
2021-08-10 02:36:00 +09:00
Nobuyoshi Nakada
3e7fb4b91d
Check the result of tigetstr
2021-08-06 13:34:25 +09:00
Nobuyoshi Nakada
9bfb8ea671
Fix caching of curses_dl
2021-08-06 13:33:47 +09:00
aycabta
7bcbee37b5
Fix the result of checking the existence of constants being reversed
2021-08-06 02:51:10 +09:00
aycabta
de93b8b069
Handle SIGINT in other thread correctly
...
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-08-04 18:29:42 +09:00
aycabta
5bb7b57129
Use Symbol of signal for trap
2021-08-04 18:29:42 +09:00
Masataka Pocke Kuwabara
242f024bcb
[ruby/error_highlight] Keep it work if paren exists after receiver
...
https://github.com/ruby/error_highlight/commit/b79d679bbd
2021-07-31 22:15:16 +09:00
aycabta
1c9cb9da8f
[ruby/reline] Support Terminfo on Cygwin and macOS
...
https://github.com/ruby/reline/commit/b0b75fcd27
2021-07-30 02:27:02 +09:00
aycabta
f1b5cb7e5d
[ruby/reline] Don't check the existence of Terminfo on Windows
...
https://github.com/ruby/reline/commit/320f09055c
2021-07-30 02:27:02 +09:00
aycabta
b158b4666d
[ruby/reline] Check TYPE_VARIADIC
...
https://github.com/ruby/reline/commit/8e62e46e33
2021-07-30 02:27:02 +09:00
aycabta
0f496b9b29
[ruby/reline] Define StringWithTiparm instead of singular method
...
https://github.com/ruby/reline/commit/de234dc875
2021-07-30 02:27:02 +09:00
SilverPhoenix99
5b9f3ed326
[ruby/reline] Fixed Ctrl+Enter key in Windows.
...
https://github.com/ruby/reline/commit/0c38e39023
2021-07-30 02:27:02 +09:00
aycabta
46c6da9c37
[ruby/reline] Check empty .inputrc
...
https://github.com/ruby/reline/commit/b60b3b76cd
2021-07-30 02:27:02 +09:00
aycabta
51ee24e7f7
[ruby/reline] Add original C function declarations comment for each function
...
https://github.com/ruby/reline/commit/9a25ee9f12
2021-07-30 02:27:02 +09:00
Jeremy Evans
44a9337a46
[ruby/reline] Fix reline on OpenBSD
...
OpenBSD doesn't support tiparm, only tparm. I'm not sure if the
two are compatible, but this at least this allows me to run irb
on OpenBSD.
https://github.com/ruby/reline/commit/0ce2b34e2b
2021-07-30 02:27:02 +09:00
SilverPhoenix99
1bf768d2e1
[ruby/reline] Added support for Numpad divide key on Windows.
...
https://github.com/ruby/reline/commit/84577da0c4
2021-07-30 02:27:02 +09:00
aycabta
750359ce81
[ruby/reline] Support Enter key of numpad on Windows
...
The yamatanooroti gem can't emulate numpad key pressing...
https://github.com/ruby/reline/commit/8e9da1aeaf
2021-07-30 02:27:02 +09:00
Lars Kanis
03f8c27179
[ruby/reline] Windows cmd: Don't type anything when pressing ALT keys alone
...
Fixes #298
https://github.com/ruby/reline/commit/72acfcd27a
2021-07-30 02:27:02 +09:00
aycabta
b0633ee4b3
[ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()
...
https://github.com/ruby/reline/commit/a0d946a398
2021-07-30 02:27:02 +09:00
aycabta
2a7e86844b
[ruby/reline] Add require 'reline/terminfo' to use Reline::Terminfo.enabled?
...
https://github.com/ruby/reline/commit/7ef9805b35
2021-07-30 02:27:02 +09:00
Hiroshi SHIBATA
672796575e
Update the latest version of readline.gemspec
2021-07-29 16:20:10 +09:00
Miguel Teixeira
60b02db516
[ruby/net-http] Enforce write timeout when body_stream is used
...
The existing implementation of `Net::HTTP#write_timeout` relies on
`Net::BefferedIO` to trigger the `Net::WriteTimeout` error. This commit
changes `send_request_with_body_stream` to remove the optimization that
was making `Net::HTTP#write_timeout` not work when `body_stream` is
used.
Open issue:
https://bugs.ruby-lang.org/issues/17933
https://github.com/ruby/net-http/commit/a0fab1ab52
2021-07-29 15:53:54 +09:00
BurdetteLamar
1e04571da0
[ruby/set] Improve What's Here links
...
https://github.com/ruby/set/commit/76b056c3b9
2021-07-29 14:18:52 +09:00
BurdetteLamar
2bd68e32e7
[ruby/set] Improve What's Here links
...
https://github.com/ruby/set/commit/dd787a3988
2021-07-29 14:18:42 +09:00
Olle Jonsson
899194f3a6
[ruby/set] gemspec: This gem exposes 0 executables
...
This change removes unused configuration.
https://github.com/ruby/set/commit/6c2338d699
2021-07-29 14:18:33 +09:00
Jeremy Evans
52e602edda
[ruby/set] Update documentation for intersect?/disjoint?
...
https://github.com/ruby/set/commit/35b69e9d69
2021-07-29 14:18:25 +09:00
Jeremy Evans
cafa7d8975
[ruby/set] Allow the use of any enumerable in intersect?/disjoint?
...
https://github.com/ruby/set/commit/1a73ab9047
2021-07-29 14:18:18 +09:00