aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/uri] Remove revision lines from commentsMatt Muller2020-03-262-2/+0
| | | | https://github.com/ruby/uri/commit/f1c133a7d6
* [ruby/uri] Add support for WebSocketsMatt Muller2020-03-262-0/+108
| | | | https://github.com/ruby/uri/commit/805a95786a
* [ruby/uri] Simplify construction of URI instances using parser interface.Samuel Williams2020-03-263-25/+16
| | | | https://github.com/ruby/uri/commit/c145017dd7
* [ruby/uri] Prefer `require_relative` for loading internal codeDavid Rodríguez2020-03-261-10/+10
| | | | | | | So that we don't need to search the LOAD_PATH, given that we know which files we want to load in advance. https://github.com/ruby/uri/commit/cbecefb788
* [ruby/reline] Suppress error when check ambiguous char width in LANG=Caycabta2020-03-261-2/+8
| | | | https://github.com/ruby/reline/commit/623dffdd75
* [ruby/reline] Suppress error in case INPUTRC env is emptyaycabta2020-03-261-1/+10
| | | | https://github.com/ruby/reline/commit/bce7e7562b
* [ruby/reline] Work with wrong $/ value correctlyaycabta2020-03-262-4/+4
| | | | https://github.com/ruby/reline/commit/962ebf5a1b
* [ruby/irb] Suppress crashing when EncodingError has occurred without linenoaycabta2020-03-262-1/+4
| | | | https://github.com/ruby/irb/commit/13572d8cdc
* [ruby/irb] Detect multiple lines output simplifyaycabta2020-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old implementation performance test code: require 'objspace' puts "%.5g MB" % (ObjectSpace.memsize_of_all * 0.001 * 0.001) /\A.*\Z/ !~ ('abc' * 20_000_000) puts "%.5g MB" % (ObjectSpace.memsize_of_all * 0.001 * 0.001) and run `time test.rb`: 2.5868 MB 62.226 MB real 0m1.307s user 0m0.452s sys 0m0.797s The new implementation performance test code: require 'objspace' puts "%.5g MB" % (ObjectSpace.memsize_of_all * 0.001 * 0.001) ('abc' * 20_000_000).include?("\n") puts "%.5g MB" % (ObjectSpace.memsize_of_all * 0.001 * 0.001) and run `time test.rb`: 2.5861 MB 62.226 MB real 0m0.132s user 0m0.088s sys 0m0.042s https://github.com/ruby/irb/commit/40d6610baf
* [ruby/irb] Unnamed groups are not captured when named groups are usedNobuyoshi Nakada2020-03-261-1/+1
| | | | https://github.com/ruby/irb/commit/0a641a69b0
* Import racc-1.5.0 from upstream repository.Hiroshi SHIBATA2020-03-254-8/+5
|
* Sync rubygems with current master (#2889)David Rodríguez2020-03-2416-248/+144
|
* Support obj.clone(freeze: true) for freezing cloneJeremy Evans2020-03-222-2/+2
| | | | | | | | | | | | | | | | | | This freezes the clone even if the receiver is not frozen. It is only for consistency with freeze: false not freezing the clone even if the receiver is frozen. Because Object#clone is now partially implemented in Ruby and not fully implemented in C, freeze: nil must be supported to provide the default behavior of only freezing the clone if the receiver is frozen. This requires modifying delegate and set, to set freeze: nil instead of freeze: true as the keyword parameter for initialize_clone. Those are the two libraries in stdlib that override initialize_clone. Implements [Feature #16175]
* Add workaround for test-bundler failureKazuhiro NISHIYAMA2020-03-1221-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/ruby/actions/runs/500526558?check_suite_focus=true#step:16:127 ``` Failures: 1) Bundler.setup when Bundler is bundled doesn't blow up Failure/Error: expect(err).to be_empty expected `"fatal: not a git repository (or any of the parent directories): .git\nfatal: not a git repository (o...the parent directories): .git\nfatal: not a git repository (or any of the parent directories): .git".empty?` to return true, got false Commands: $ /home/runner/work/actions/actions/snapshot-master/ruby \ -I/home/runner/work/actions/actions/snapshot-master/lib:/home/runner/work/actions/actions/snapshot-master/spec/bundler \ -rsupport/hax -rsupport/artifice/fail \ /home/runner/work/actions/actions/snapshot-master/libexec/bundle install --retry 0 Resolving dependencies... Using bundler 2.1.4 Bundle complete! 1 Gemfile dependency, 1 gem now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git # $? => 0 $ /home/runner/work/actions/actions/snapshot-master/ruby \ -I/home/runner/work/actions/actions/snapshot-master/lib:/home/runner/work/actions/actions/snapshot-master/spec/bundler \ -rsupport/hax -rsupport/artifice/fail \ /home/runner/work/actions/actions/snapshot-master/libexec/bundle exec ruby -e \ require\ \'bundler\'\;\ Bundler.setup fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git # $? => 0 # ./spec/bundler/runtime/setup_spec.rb:1056:in `block (3 levels) in <top (required)>' # ./spec/bundler/spec_helper.rb:111:in `block (3 levels) in <top (required)>' # ./spec/bundler/spec_helper.rb:111:in `block (2 levels) in <top (required)>' # ./spec/bundler/spec_helper.rb:78:in `block (2 levels) in <top (required)>' make: *** [yes-test-bundler] Error 1 ```
* Fix an example committed to a wrong place [ci skip]Takashi Kokubun2020-03-101-1/+1
|
* Let Net::HTTP.get take request headers (#2957)Takashi Kokubun2020-03-101-10/+24
| | | | | | | | | | | * Let Net::HTTP.get take request headers * Add more test cases for no header usages * Add examples with request headers * Add a NEWS entry [ci skip] [Feature #16686]
* Specify explicit separator not to be affected by $;Nobuyoshi Nakada2020-03-089-10/+10
|
* Removed unnecessary `chomp`Nobuyoshi Nakada2020-03-071-1/+1
| | | | | As `String#split` with the default argument drops trailing newline as a separator, preceding `String#chomp` is futile.
* Improve docs for Prime.{prime_division,int_from_prime_division} (#8)Marcus Stollsteimer2020-03-061-18/+29
| | | | | | | | | | | | Move explanation for the decomposition array from the Example section to the method description. Mention the term "multiplicity". Use examples that also demonstrate factors with multiplicity other than 1, and avoid factors/multiplicities with the same value. Also add the decomposition written as simple mathematical expression. This also fixes missing syntax highlighting for the code examples due to verbatim blocks that did not only include Ruby code.
* [ruby/prime] Fix typoMarcus Stollsteimer2020-03-061-1/+1
| | | | https://github.com/ruby/prime/commit/549c1b86f1
* [ruby/prime] Improve docs for Prime.include? (#7)Marcus Stollsteimer2020-03-061-1/+2
| | | | https://github.com/ruby/prime/commit/230a5af325
* [ruby/prime] Fix Prime.include?Jeremy Evans2020-03-061-0/+12
| | | | | | | | | | | | | | | Previously, it would be an infinite loop if passed a non-prime integer. Also, Prime.include? should also provide similar results to Module#include? if passed a Module, so handle that. For consistency with Enumerable#include?, return false if passed other object types. Fixes Ruby Bug 10167. https://github.com/ruby/prime/commit/55dda6aa7f
* Ignore incompatible convert of symbolsKoichi Sasada2020-03-031-0/+2
|
* Convert incompatible encoding symbol namesaycabta2020-03-031-1/+3
|
* Suppress security alertsTakashi Kokubun2020-02-282-2/+2
| | | | https://github.com/advisories/GHSA-jppv-gw3r-w3q8
* Merge racc from upstream repository.Hiroshi SHIBATA2020-02-2715-47/+35
| | | | | * Support Ruby 2.4's frozen string literals. * Remove VCS revisions headers.
* Fixed net-ftp sync task and resync from standalone repoHiroshi SHIBATA2020-02-211-2/+2
|
* Promote net-http to the default gems.Hiroshi SHIBATA2020-02-213-1/+35
| | | | | test/net/http/test_https.rb: rename fixture methods to read_fixture because it conflicts with test-unit gem.
* Promote net-ftp to default gemsHiroshi SHIBATA2020-02-213-1/+35
|
* Fallback to load version file in ruby core repositoryHiroshi SHIBATA2020-02-201-1/+5
|
* Promote net-imap to the default gemsHiroshi SHIBATA2020-02-203-1/+31
|
* [ruby/rdoc] Removed `RDoc::Context::Section#sequence`Nobuyoshi Nakada2020-02-201-13/+0
| | | | | | It has been deprecated since 2011. https://github.com/ruby/rdoc/commit/5c2aa0f77d
* [ruby/irb] Version 1.2.3aycabta2020-02-171-2/+2
| | | | https://github.com/ruby/irb/commit/dd56e06df5
* * append newline at EOF. [ci skip]git2020-02-171-1/+1
|
* Promote net-protocol to default gemsHiroshi SHIBATA2020-02-172-0/+34
|
* [ruby/irb] fix reserved words and completion for themNobuhiro IMAI2020-02-151-2/+3
| | | | https://github.com/ruby/irb/commit/6184b227ad
* [ruby/irb] Include easter-egg.rb in gemspecNick Lewis2020-02-151-0/+1
| | | | | `irb` doesn't run because this file isn't included in the gem. https://github.com/ruby/irb/commit/73cda56d25
* [ruby/irb] Version 1.2.2aycabta2020-02-151-2/+2
| | | | https://github.com/ruby/irb/commit/a71753f15a
* [ruby/reline] Version 0.1.3aycabta2020-02-151-1/+1
| | | | https://github.com/ruby/reline/commit/ea2b182466
* lib/drb/drb.rb: Use ruby2_keywords for keyword separationYusuke Endoh2020-02-151-1/+1
| | | | [Bug #16634]
* [ruby/reline] Use IO#write instead of IO#printaycabta2020-02-144-12/+12
| | | | | | IO#print always adds a string of $\ automatically. https://github.com/ruby/reline/commit/a93119c847
* Promote English to the default gems.Hiroshi SHIBATA2020-02-131-0/+23
|
* Promote tmpdir to the default gemsHiroshi SHIBATA2020-02-121-0/+23
|
* Promote tempfile to the default gems.Hiroshi SHIBATA2020-02-121-0/+23
|
* [ruby/irb] Use 0.step instead of (..0).each for Ruby 2.5aycabta2020-02-121-1/+1
| | | | https://github.com/ruby/irb/commit/5d628ca40e
* [ruby/irb] Fix auto indent with closed braceaycabta2020-02-121-0/+1
| | | | | | | | | | | | A closed brace in auto-indent shouldn't affect the next brace in the same line, but it behaves like below: p() { } It's a bug. https://github.com/ruby/irb/commit/fbe59e344f
* [ruby/irb] Check doc namespace correctlyaycabta2020-02-121-3/+3
| | | | | | | IRB::InputCompletor::PerfectMatchedProc crashes when doc not found because a variable name was incorrect. https://github.com/ruby/irb/commit/889fd4928f
* Promote weakref to the default gemsHiroshi SHIBATA2020-02-112-0/+34
|
* Fix message of ExceptionForMatrix::ErrOperationNotDefinedKazuhiro NISHIYAMA2020-02-091-1/+1
| | | | | | | | | | | ``` % RBENV_VERSION=2.6.5 ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' #<ExceptionForMatrix::ErrOperationNotDefined: Operation(*) can't be defined: Vector op Vector> % RBENV_VERSION=2.7.0 ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' #<ExceptionForMatrix::ErrOperationNotDefined: Operation(*) can\'t be defined: Vector op Vector> % RBENV_VERSION=master ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' #<ExceptionForMatrix::ErrOperationNotDefined: Operation(*) can't be defined: Vector op Vector> ```
* [ruby/reline] Organize special keys escape sequencesaycabta2020-02-091-3/+22
| | | | https://github.com/ruby/reline/commit/41deb1a3d9