summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typoKazuhiro NISHIYAMA2019-11-131-1/+1
|
* Merge released version of RubyGems 3.1.0.pre3Hiroshi SHIBATA2019-11-131-1/+0
|
* Merge Bundler 2.1.0.pre3 released versionHiroshi SHIBATA2019-11-1318-89/+118
|
* Reline#readline and Reline#readmultiline to private.osyo-manga2019-11-121-0/+2
|
* Only enabled mon_owned condition with Ruby 2.5+Hiroshi SHIBATA2019-11-121-4/+8
|
* Revert "Method reference operator"Nobuyoshi Nakada2019-11-121-1/+1
| | | | | This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b. [Feature #16275]
* check more.Koichi Sasada2019-11-121-2/+2
|
* Monitor owner state check correctly.Koichi Sasada2019-11-121-1/+2
| | | | Monitor can be owned at the beginning of this method.
* Revert "Use untaint for File.symlink in kernel_require.rb"Yusuke Endoh2019-11-121-4/+1
| | | | | | | This reverts commit d9978ce5d397866afae536db2aa708af3b7a4b2f. Untaint was tentatively restored due to test failures. But now, the failed tests have been removed, so we can revert the tentative fix.
* Use untaint for File.symlink in kernel_require.rbHiroshi SHIBATA2019-11-121-1/+4
| | | | Partly reverted 7d463e360b9c4718b17378eb52783116a01b884b
* release RUBYGEMS_ACTIVATION_MONITOR correctly.Koichi Sasada2019-11-121-2/+10
| | | | | | `File.symlink? safe_lp` can raise SecurityError and raising an exception can leave RUBYGEMS_ACTIVATION_MONITOR locking. This patch release it correctly.
* more messagesKoichi Sasada2019-11-121-1/+1
|
* check monitor is owning for debugKoichi Sasada2019-11-121-0/+5
|
* lib/rubygems.rb: Suppress "Resolving dependencies..."Yusuke Endoh2019-11-121-5/+4
| | | | And suppress "Leaked file descriptor" again.
* Remove ruby-token.rbaycabta2019-11-111-267/+0
|
* Revert "Revert "Promote uri to default gems""Hiroshi SHIBATA2019-11-113-5/+36
| | | | | | This reverts commit fdfad905227a0e2e4c224d87181041fb75d5082e. f1f27da6c457684fdbfc0352297e6847f675ce4c resolved this.
* Revert "Try to revert the test failure with Ruby CI"Hiroshi SHIBATA2019-11-111-3/+7
| | | | This reverts commit 8b27c23b5d55bd707a89bb5d95d2bdba9e132c1a.
* Try to revert the test failure with Ruby CIHiroshi SHIBATA2019-11-111-7/+3
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20191111T093005Z.fail.html.gz
* Merge Bundler 2.1.0.pre.3Hiroshi SHIBATA2019-11-1120-212/+353
| | | | | | | | | | | | | | | Features: - Add caller information to some deprecation messages to make them easier to fix [#7361](https://github.com/bundler/bundler/pull/7361) - Reconcile `bundle cache` vs `bundle package` everywhere. Now in docs, CLI help and everywhere else `bundle cache` is the preferred version and `bundle package` remains as an alias [#7389](https://github.com/bundler/bundler/pull/7389) - Display some basic `bundler` documentation together with ruby's RDoc based documentation [#7394](https://github.com/bundler/bundler/pull/7394) Bugfixes: - Fix typos deprecation message and upgrading docs [#7374](https://github.com/bundler/bundler/pull/7374) - Deprecation warnings about `taint` usage on ruby 2.7 [#7385](https://github.com/bundler/bundler/pull/7385) - Fix `--help` flag not correctly delegating to `man` when used with command aliases [#7388](https://github.com/bundler/bundler/pull/7388) - `bundle add` should cache newly added gems if an application cache exists [#7393](https://github.com/bundler/bundler/pull/7393) - Stop using an insecure folder as a "fallback home" when user home is not defined [#7416](https://github.com/bundler/bundler/pull/7416) - Fix `bundler/inline` warning about `Bundler.root` redefinition [#7417](https://github.com/bundler/bundler/pull/7417)
* Merge RubyGems 3.1.0.pre3Hiroshi SHIBATA2019-11-1119-66/+78
| | | | | | | | | | | | | | | | | | | * Fix gem pristine not accounting for user installed gems. Pull request #2914 by Luis Sagastume. * Refactor keyword argument test for Ruby 2.7. Pull request #2947 by SHIBATA Hiroshi. * Fix errors at frozen Gem::Version. Pull request #2949 by Nobuyoshi Nakada. * Remove taint usage on Ruby 2.7+. Pull request #2951 by Jeremy Evans. * Check Manifest.txt is up to date. Pull request #2953 by David Rodríguez. * Clarify symlink conditionals in tests. Pull request #2962 by David Rodríguez. * Update command line parsing to work under ps. Pull request #2966 by David Rodríguez. * Properly test `Gem::Specifications.stub_for`. Pull request #2970 by David Rodríguez. * Fix Gem::LOADED_SPECS_MUTEX handling for recursive locking. Pull request #2985 by MSP-Greg.
* qsymbols and symbols should be colored as SymbolTakashi Kokubun2019-11-101-1/+1
|
* Colorize on_symbols_beg (%I)Takashi Kokubun2019-11-101-0/+1
|
* Colorize string quotes as boldTakashi Kokubun2019-11-101-7/+7
| | | | like pry
* Remove unneeded exec bits from some filesDavid Rodríguez2019-11-092-0/+0
| | | | | | | | | | | | | I noticed that some files in rubygems were executable, and I could think of no reason why they should be. In general, I think ruby files should never have the executable bit set unless they include a shebang, so I run the following command over the whole repo: ```bash find . -name '*.rb' -type f -executable -exec bash -c 'grep -L "^#!" $1 || chmod -x $1' _ {} \; ```
* Revert "Promote uri to default gems"Hiroshi SHIBATA2019-11-093-36/+5
| | | | | | | This reverts commit c5b4d2a2592942766dc2789f46105b91eba7026a. This commit affects with activation feature of RubyGems. [Bug #16337][ruby-core:95768]
* Remove YAML::VERSION because it conflicts with Psych::VERSIONHiroshi SHIBATA2019-11-092-10/+1
|
* Promote uri to default gemsHiroshi SHIBATA2019-11-093-5/+36
|
* Promote yaml to default gemsHiroshi SHIBATA2019-11-092-0/+32
|
* Promote timeout to default gemsHiroshi SHIBATA2019-11-092-0/+30
|
* Promote observer to default gems. But not yet releasedHiroshi SHIBATA2019-11-092-0/+32
|
* Added gemspec for readline gem that is wrapper library for reline and ↵Hiroshi SHIBATA2019-11-091-0/+23
| | | | readline extension
* Suppress "shadowing outer local variable" warning in 2.5aycabta2019-11-083-15/+21
|
* Fixed test failure related Net::ProtocolHiroshi SHIBATA2019-11-072-2/+4
|
* SMTP is not moduleHiroshi SHIBATA2019-11-071-1/+1
|
* Promote cgi to default gemsHiroshi SHIBATA2019-11-072-0/+30
|
* Promote net-smtp to default gemsHiroshi SHIBATA2019-11-073-1/+33
|
* Promote net-pop to default gemsHiroshi SHIBATA2019-11-073-1/+33
|
* Promote benchmark to default gemsHiroshi SHIBATA2019-11-072-0/+32
|
* Promote delegate to default gemsHiroshi SHIBATA2019-11-072-0/+30
|
* Promote pstore to default gemsHiroshi SHIBATA2019-11-072-0/+32
|
* Promote getoptlong to default gemsHiroshi SHIBATA2019-11-072-0/+32
|
* Promote open3 to default gemsHiroshi SHIBATA2019-11-072-0/+32
|
* Promote singleton to default gemsHiroshi SHIBATA2019-11-072-0/+30
|
* Time#strftime does not support `%Q`Kazuhiro NISHIYAMA2019-11-061-1/+0
| | | | | | | | ``` % ruby -r date -e 't=Time.utc(2001,2,3,4,5,6,7);p t; p [t, t.to_date, t.to_datetime].map{|d|d.strftime("%Q")}' 2001-02-03 04:05:06.000007 UTC ["%Q", "981158400000", "981173106000"] ```
* Only taint on Ruby <2.7Jeremy Evans2019-11-051-2/+2
| | | | Ruby 2.7 deprecates taint and it no longer has an effect.
* Only untaint line on Ruby <2.7Jeremy Evans2019-11-051-1/+1
| | | | Untaint is deprecated and has no effect on Ruby 2.7+.
* Use ident hash for top-level recursion checkJohn Hawthorn2019-11-041-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | We track recursion in order to not infinite loop in ==, inspect, and similar methods by keeping a thread-local 1 or 2 level hash. This allows us to track when we have seen the same object (ex. using inspect) or same pair of objects (ex. using ==) in this stack before and to treat that differently. Previously both levels of this Hash used the object's memory_id as a key (using object_id would be slow and wasteful). Unfortunately, prettyprint (pp.rb) uses this thread local variable to "pretend" to be inspect and inherit its same recursion behaviour. This commit changes the top-level hash to be an identity hash and to use objects as keys instead of their object_ids. I'd like to have also converted the 2nd level hash to an ident hash, but it would have prevented an optimization which avoids allocating a 2nd level hash for only a single element, which we want to keep because it's by far the most common case. So the new format of this hash is: { object => true } (not paired) { lhs_object => rhs_object_memory_id } (paired, single object) { lhs_object => { rhs_object_memory_id => true, ... } } (paired, many objects) We must also update pp.rb to match this (using identity hashes).
* Fixed a typoNobuyoshi Nakada2019-11-041-1/+1
|
* [ruby/racc] Strip trailing whitespaces at the last line of actionsNobuyoshi Nakada2019-11-041-0/+1
| | | | https://github.com/ruby/racc/commit/a887ebe529
* Use prompt_list to calculate height by linesaycabta2019-11-021-12/+14
|