aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add arg check to Reline.dig_perfect_match_proc=aycabta2019-07-111-0/+1
|
* WEBrick::HTTPResponse create tempfile if required.Tanaka Akira2019-07-111-2/+39
| | | | | | | | | | | | | | | | | | | | | WEBrick::HTTPProxyServer implementes HTTP proxy using WEBrick and Net::HTTP. WEBrick accepts HTTP/1.0 clients and Net::HTTP uses always HTTP/1.1. However HTTP/1.1 supports chunked transfer coding HTTP/1.0 doesn't. Chunked transfer coding doesn't require that content-length before the content is sent. But non-chunked transfer coding require content-length before the content is sent. So, when HTTP/1.0 clients connects WEBrick::HTTPProxyServer and origin server returns chunked response, WEBrick::HTTPProxyServer needs to store whole content to know the length of it. This patch do it using tempfile.
* handle_interrupt to defend monitor state [Bug #15992]NARUSE, Yui2019-07-101-2/+4
| | | | | | | If an exception is raised from another thread for example Timeout and this thread is just after `mon_exit`'s `@mon_owner = nil`, the exception breaks the state of MonitorMixin. To prevent that situation, it need to block interruption in mon_enter and mon_exit.
* Suppress a warning when `write_headers: true`Nobuyoshi Nakada2019-07-081-0/+1
|
* Fix default argument values for OptParse::Switch#summarizeJeremy Evans2019-07-071-1/+1
| | | | | | | | | | The documentation describes these arguments being hashes, and the method is called with hashes, so a hash default makes more sense. The method would fail previously if called without arguments and @short or @long contained a non-integer value. Fixes [Bug #10928]
* Refactored width calculationsNobuyoshi Nakada2019-07-061-43/+21
|
* SimplifiedNobuyoshi Nakada2019-07-061-8/+1
|
* Fix showing document of ClassName.method_name in IRBaycabta2019-07-061-1/+1
| | | | | | In IRB, Time.new is split as "Time", ".", and "new". The receiver "Time" is processed by #class method but it means that "Time" changes to "Class". This commit fixes it.
* Support Control- and Meta-aycabta2019-07-041-5/+4
|
* Move a comment to proper placeaycabta2019-07-041-1/+1
|
* Parse key sequence more strictlyNobuyoshi Nakada2019-07-041-4/+6
|
* Use lstrip instead of gsub which can match only onceNobuyoshi Nakada2019-07-042-4/+4
|
* Skip indented comment lines [Bug #15981]Nobuyoshi Nakada2019-07-041-1/+1
|
* Check code_block_open for whether code continuesaycabta2019-07-031-2/+2
|
* Try to avoid `not delagated` errorKazuhiro NISHIYAMA2019-07-031-1/+1
| | | | | | | ``` .../ruby/lib/delegate.rb:405:in `__getobj__': not delegated (ArgumentError) ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190703T063006Z.fail.html.gz
* Keyword token that follows EXPR_FNAME must be a method nameaycabta2019-07-021-3/+6
|
* Show "-" if indent level is negativeaycabta2019-07-011-3/+11
|
* New indent must be non-negative numberNobuyoshi Nakada2019-07-011-1/+1
|
* Remove auto indent of continuation lineaycabta2019-06-281-3/+0
|
* [DOC] Singleton.instance [ci skip]Nobuyoshi Nakada2019-06-281-0/+4
|
* Moved Singleton.instance to get rid of redefinitionNobuyoshi Nakada2019-06-281-8/+9
|
* Removed unused variableNobuyoshi Nakada2019-06-281-1/+1
|
* Fix documentation for Net::SMTPServerBusyJeremy Evans2019-06-271-1/+1
| | | | Fixes [Bug #11628]
* EXPR_LABEL also indicates non-continuation lineaycabta2019-06-271-1/+1
| | | | | | | | | Example: [ 1, # this is not continuation line 2 ]
* bc mode is already removed [ci skip]Kazuhiro NISHIYAMA2019-06-272-2/+2
|
* EXPR_CMDARG also indicates the end of an expressionaycabta2019-06-271-1/+1
|
* Increase indent of continuation lineaycabta2019-06-271-0/+3
| | | | | v = 3 # auto indent
* Decrease indent by closing token correctlyaycabta2019-06-271-3/+3
|
* Decrease nesting level when closing token comes at a non-first token of lineaycabta2019-06-261-0/+2
|
* `ensure` is not a continuos lineNobuyoshi Nakada2019-06-261-1/+1
|
* Decrease indent at "elsif" tooNobuyoshi Nakada2019-06-261-2/+2
|
* Remove other debug printsNobuyoshi Nakada2019-06-261-3/+0
|
* Remove debug print...sorryaycabta2019-06-261-2/+0
|
* Treat auto indent with newline correctlyaycabta2019-06-251-10/+42
|
* Decrease indent when "else", "rescue", "ensure", "when", or "in" comeaycabta2019-06-251-0/+2
|
* Fix IO#scanf on pipes on WindowsJeremy Evans2019-06-251-1/+1
| | | | | | | IO.seek on a pipe on Windows raises Errno::EINVAL instead of Errno::ESPIPE. Fixes Ruby Bug #15199
* Require version file relativelyDavid Rodríguez2019-06-251-1/+1
|
* Bump version to 1.2.0.SHIBATA Hiroshi2019-06-251-1/+1
|
* Refactor calculation of corresponding token depthaycabta2019-06-251-18/+33
|
* Adds WebAssembly MIME typeRob2019-06-241-0/+1
|
* Remove extraneous spaces at the end of status lineNobuyoshi Nakada2019-06-241-1/+1
| | | | | | | | | | | | | Remove extraneous spaces after the status code that is non-compliant with RFC, i.e `HTTP 200 OK `, to unnecessary confusion for WEBrick users, by a risk that WEBrick instances in the wild will have server responses flagged as suspicious or malicious due to a similar bug in [Cobalt Strike misconfiguration]. Reported by Matt Tennis <mtennis@paloaltonetworks.com> [Cobalt Strike misconfiguration]: https://blog.fox-it.com/2019/02/26/identifying-cobalt-strike-team-servers-in-the-wild/
* Treat closing token with starting token at head of 2nd line correctlyaycabta2019-06-221-1/+1
| | | | | | | v = if true # starting token at head of 2nd line 3 end # closing token
* Do auto indent only when closing token at first of lineaycabta2019-06-221-4/+16
| | | | | if true 3; end # this isn't auto-indented
* Constified unusable charsNobuyoshi Nakada2019-06-211-2/+4
|
* Support irregular auto indentaycabta2019-06-211-8/+24
| | | | | | | v = if true 3 end # this "end" is auto-indented correctly
* Fix small typo on block_scanf example [ci-skip]Espartaco Palma2019-06-211-1/+1
| | | | Closes: https://github.com/ruby/ruby/pull/2247
* Avoid verbose warning when using Net::POP3 with SSLJeremy Evans2019-06-201-0/+1
| | | | | | Patch from Jos Kamphorst. Fixes [Bug #14822]
* Revert "Removed needless file with the upstream repository."Hiroshi SHIBATA2019-06-201-0/+640
| | | | This reverts commit 5bbfca7b1d4be89d4728203b4610de17bccbefd7.
* Removed needless file with the upstream repository.Hiroshi SHIBATA2019-06-201-640/+0
|
* Added gemspec of racc generated from upstream for the default gems.Hiroshi SHIBATA2019-06-202-1/+46
| | | | 1.4.16.pre.1 is the teemporary version. It may be changed 1.5.0 or others.