aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Support XDG_* (#2174)Hiroshi SHIBATA2020-04-239-52/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support XDG_CONFIG_HOME for gemrc. * Support XDG_DATA_HOME for .gem * Added test for XDG_DATA_HOME * Do not reuse environmental variable. * Unify .rdoc path to RDoc.home. * Support XDG_DATA_HOME for .rdoc * Ignore exists? * Extracted config_home path * Use XDG_CONFIG_HOME for default credential path * Fixed inconsistency location. * Fixed the broken tests. * Support XDG_CONFIG_HOME for irbrc * Introduce Gem.cache_home as XDG_CACHE_HOME * Use Gem.cache_home instead of Gem.config_home for the credential file of RubyGems. * Initialized the old configurations * Fixed test failure related the configuration initialization * restore XDG_DATA_HOME * Fixed the broken examples of bundler with XDG_* * Do not modify environmental variable on test file * Use XDG_DATA_HOME insted of XDG_CACHE_HOME for credential file * stub out Gem.data_home * Move dir accessor to defaults.rb file * Use XDG_DATA_HOME for signed gem features * Use XDG_DATA_HOME for spec cache * Do not rely on Gem.user_home * Gem.user_home is always exists. Don't need to use FileUitls.mkdir_p * Bump support version to RubyGems 3.2.0+ * Removed the needless fallback configuration * Fixed the inconsistency methods that are find_config_file and config_file * Use Gem.configuration.credentials_path instead of hard-coded path * gem_path is always provided * Removed the duplicated code of find_home * Also removed the duplicated code of user_home * use Gem::UNTAINT instead of untaint for surpressing the warnings * Use File.directory * Restore XDG_DATA_HOME * Use File.write
* [ruby/rdoc] Drop old rubiesNobuyoshi Nakada2020-04-231-14/+3
| | | | | | | | | * `RbConfig::CONFIG['ridir']` has been set since 1.9.2 * `ENV["HOME"]` has been defaulted to `USERPROFILE` since 1.9.0, and backported to 1.8.5 or later. https://github.com/ruby/rdoc/commit/a3a614e676
* Fixed incorrect man path with ruby installation pathHiroshi SHIBATA2020-04-211-0/+2
| | | | [Bug #15359][ruby-core:90164]
* [ruby/reline] Add ed_search_next_historyaycabta2020-04-181-0/+52
| | | | https://github.com/ruby/reline/commit/ca750b676b
* [ruby/reline] Add ed_search_prev_historyaycabta2020-04-181-0/+47
| | | | https://github.com/ruby/reline/commit/e9ae288825
* [ruby/reline] Use vi_search_{prev,next} to incremental searchaycabta2020-04-184-14/+14
| | | | https://github.com/ruby/reline/commit/cab312f584
* [ruby/reline] Rename search_history with incremental_search_historyaycabta2020-04-181-3/+3
| | | | https://github.com/ruby/reline/commit/d563063ea0
* Remove lib/rss.rbSutou Kouhei2020-04-171-94/+0
| | | | This is a follow-up of 83240f315a10b42b53c3b62c1fbc428f97912665 .
* 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.