summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2019-07-11Add arg check to Reline.dig_perfect_match_proc=aycabta
2019-07-11WEBrick::HTTPResponse create tempfile if required.Tanaka Akira
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.
2019-07-10handle_interrupt to defend monitor state [Bug #15992]NARUSE, Yui
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.
2019-07-08Suppress a warning when `write_headers: true`Nobuyoshi Nakada
2019-07-07Fix default argument values for OptParse::Switch#summarizeJeremy Evans
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]
2019-07-06Refactored width calculationsNobuyoshi Nakada
2019-07-06SimplifiedNobuyoshi Nakada
2019-07-06Fix showing document of ClassName.method_name in IRBaycabta
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.
2019-07-04Support Control- and Meta-aycabta
2019-07-04Move a comment to proper placeaycabta
2019-07-04Parse key sequence more strictlyNobuyoshi Nakada
2019-07-04Use lstrip instead of gsub which can match only onceNobuyoshi Nakada
2019-07-04Skip indented comment lines [Bug #15981]Nobuyoshi Nakada
2019-07-03Check code_block_open for whether code continuesaycabta
2019-07-03Try to avoid `not delagated` errorKazuhiro NISHIYAMA
``` .../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
2019-07-02Keyword token that follows EXPR_FNAME must be a method nameaycabta
2019-07-01Show "-" if indent level is negativeaycabta
2019-07-01New indent must be non-negative numberNobuyoshi Nakada
2019-06-28Remove auto indent of continuation lineaycabta
2019-06-28[DOC] Singleton.instance [ci skip]Nobuyoshi Nakada
2019-06-28Moved Singleton.instance to get rid of redefinitionNobuyoshi Nakada
2019-06-28Removed unused variableNobuyoshi Nakada
2019-06-27Fix documentation for Net::SMTPServerBusyJeremy Evans
Fixes [Bug #11628]
2019-06-27EXPR_LABEL also indicates non-continuation lineaycabta
Example: [ 1, # this is not continuation line 2 ]
2019-06-27bc mode is already removed [ci skip]Kazuhiro NISHIYAMA
2019-06-27EXPR_CMDARG also indicates the end of an expressionaycabta
2019-06-27Increase indent of continuation lineaycabta
v = 3 # auto indent
2019-06-27Decrease indent by closing token correctlyaycabta
2019-06-26Decrease nesting level when closing token comes at a non-first token of lineaycabta
2019-06-26`ensure` is not a continuos lineNobuyoshi Nakada
2019-06-26Decrease indent at "elsif" tooNobuyoshi Nakada
2019-06-26Remove other debug printsNobuyoshi Nakada
2019-06-26Remove debug print...sorryaycabta
2019-06-25Treat auto indent with newline correctlyaycabta
2019-06-25Decrease indent when "else", "rescue", "ensure", "when", or "in" comeaycabta
2019-06-25Fix IO#scanf on pipes on WindowsJeremy Evans
IO.seek on a pipe on Windows raises Errno::EINVAL instead of Errno::ESPIPE. Fixes Ruby Bug #15199
2019-06-25Require version file relativelyDavid Rodríguez
2019-06-25Bump version to 1.2.0.SHIBATA Hiroshi
2019-06-25Refactor calculation of corresponding token depthaycabta
2019-06-24Adds WebAssembly MIME typeRob
2019-06-24Remove extraneous spaces at the end of status lineNobuyoshi Nakada
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/
2019-06-22Treat closing token with starting token at head of 2nd line correctlyaycabta
v = if true # starting token at head of 2nd line 3 end # closing token
2019-06-22Do auto indent only when closing token at first of lineaycabta
if true 3; end # this isn't auto-indented
2019-06-21Constified unusable charsNobuyoshi Nakada
2019-06-21Support irregular auto indentaycabta
v = if true 3 end # this "end" is auto-indented correctly
2019-06-21Fix small typo on block_scanf example [ci-skip]Espartaco Palma
Closes: https://github.com/ruby/ruby/pull/2247
2019-06-20Avoid verbose warning when using Net::POP3 with SSLJeremy Evans
Patch from Jos Kamphorst. Fixes [Bug #14822]
2019-06-20Revert "Removed needless file with the upstream repository."Hiroshi SHIBATA
This reverts commit 5bbfca7b1d4be89d4728203b4610de17bccbefd7.
2019-06-20Removed needless file with the upstream repository.Hiroshi SHIBATA
2019-06-20Added gemspec of racc generated from upstream for the default gems.Hiroshi SHIBATA
1.4.16.pre.1 is the teemporary version. It may be changed 1.5.0 or others.