aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix articles.Tanaka Akira2020-04-111-2/+2
|
* Replace Fixnum by Integer in a document.Tanaka Akira2020-04-111-3/+3
|
* [ruby/weakref] Update TODO on READMEHiroshi SHIBATA2020-04-081-2/+2
| | | | https://github.com/ruby/weakref/commit/a67073856e
* The current net-http is only works with Ruby 2.6+Hiroshi SHIBATA2020-04-081-1/+1
|
* The current tempfile.rb is only works with Ruby 2.5+Hiroshi SHIBATA2020-04-081-1/+1
|
* Update the latest gemspec of prime.Hiroshi SHIBATA2020-04-081-4/+2
| | | | | * prime gem didn't use `version.rb` file. * Removed development_dependency because they are handled by Gemfile.
* Update the version of published gemspec.Hiroshi SHIBATA2020-04-081-2/+2
| | | | | * It couldn't use `English` because `english` is already reserved. * Bump version to 0.7.0 because versions < 0.7 are reserved.
* [DOC] get rid of parsing as TIDYLINK unintentionallyNobuyoshi Nakada2020-04-074-7/+7
|
* Bundler is not documented in RDoc, but something differentNobuyoshi Nakada2020-04-071-1/+1
|
* [Doc] Exclude bundler vendored libraries directoryNobuyoshi Nakada2020-04-052-3/+2
| | | | | The document in these external libraries may not be written in RDoc, ignore the whole directory.
* Exclude bundler vendored librariesNobuyoshi Nakada2020-04-051-1/+3
| | | | These libraries may not be written in RDoc.
* Added tooldir variableNobuyoshi Nakada2020-04-051-1/+1
|
* webrick/ssl: More keyUsage for self-signed certsSorah Fukumori2020-04-031-1/+1
| | | | | | | | | | | | | | | | | Chrome 75+ started to strictly enforce X.509 keyUsage against TLS server certificates. Webrick supports generating instant self-signed certificates for debugging purpose and these certificates lacks required keyUsage for modern TLS. So adding the following keyUsages: - digitalSignature (for server authentication) - keyAgreement (for DH key exchange) - dataEncipherment (for data encryption) References: - https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - https://crbug.com/795089 - https://boringssl-review.googlesource.com/c/34604
* Migrate {assert,refute}_patch_exits for compatibility with Minitest5Hiroshi SHIBATA2020-03-301-12/+0
|
* [rubygems/rubygems] Remove deprecated + broken rubygems/source_local.Ellen Marie Dash2020-03-301-7/+0
| | | | | | | | | It has been deprecated for 3 years, and has been broken for that entire period. (It required itself, instead of `rubygems/source/local`.) Closes #3158. https://github.com/rubygems/rubygems/commit/2f01a272d0
* [rubygems/rubygems] Revert "Remove ↵David Rodríguez2020-03-301-0/+77
| | | | | | | | | | | Gem::DependencyInstaller#find_gems_with_sources" This reverts commit 04c79d3eb9d9803d9fae78575b125b325b97206e. Final removal is postponed until next year until we find a better way to manage deprecations. https://github.com/rubygems/rubygems/commit/3e1cf918a5
* [rubygems/rubygems] Remove misleading commentDavid Rodríguez2020-03-301-1/+1
| | | | | | | That line means that the class supports both `URI`'s and `String`'s being passed to `initialize`. I don't see how that's related to 1.8. https://github.com/rubygems/rubygems/commit/77aeff4515
* [rubygems/rubygems] Remove ruby 1.8 leftoversDavid Rodríguez2020-03-302-8/+3
| | | | https://github.com/rubygems/rubygems/commit/84c89275b8
* [rubygems/rubygems] Enable `Style/ExtraSpacing` and auto-correctDavid Rodríguez2020-03-309-17/+17
| | | | https://github.com/rubygems/rubygems/commit/6fa0b1b679
* [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygemsDavid Rodríguez2020-03-3010-19/+19
| | | | | | So it matches the style used by bundler. https://github.com/rubygems/rubygems/commit/ab0580fd65
* [ruby/irb] Require jruby lib to get JRuby.compile_irCharles Oliver Nutter2020-03-291-0/+1
| | | | https://github.com/ruby/irb/commit/dc59afe4f6
* * remove trailing spaces. [ci skip]git2020-03-261-1/+1
|
* [ruby/uri] Remove RCS keywordsDavid Rodríguez2020-03-269-9/+0
| | | | https://github.com/ruby/uri/commit/1bcb1203ad
* [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
|