Граф коммитов

57333 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 7551117c70
[bundler/bundler] Reuse more shared path helpers
https://github.com/bundler/bundler/commit/79fdebd868
2019-08-17 17:08:49 +09:00
David Rodríguez 9995ce64a2
[bundler/bundler] Remove unnecessary assignment
https://github.com/bundler/bundler/commit/e483322519
2019-08-17 17:08:49 +09:00
David Rodríguez a2ca3a12ba
[bundler/bundler] Remove unnecessary `let`
Use shared helper instead.

https://github.com/bundler/bundler/commit/ef55470cc6
2019-08-17 17:08:49 +09:00
David Rodríguez 745b286161
[bundler/bundler] Move `lib` helper together with path helpers
https://github.com/bundler/bundler/commit/f2df73bdb4
2019-08-17 17:08:49 +09:00
David Rodríguez 50a91fcd10
[bundler/bundler] Reuse `lib` method
https://github.com/bundler/bundler/commit/4589a57852
2019-08-17 17:08:49 +09:00
David Rodríguez ef2d415802
[bundler/bundler] Remove duplicated method
https://github.com/bundler/bundler/commit/afdacd62ac
2019-08-17 17:08:49 +09:00
Hiroshi SHIBATA 7664b5cb65
Support the current stable version of Ruby like 2.5 and 2.6. 2019-08-17 17:06:36 +09:00
Hiroshi SHIBATA 221ba9b66c
Revert "`Gem.load_path_insert_index always returns non-nil index after Ruby 1.9"
This reverts commit 260ef51a73.

  This broke the stable versions of Ruby like 2.4 and 2.5
2019-08-17 17:01:23 +09:00
Hiroshi SHIBATA d041c6cebb
Added comments for extended require by RubyGems 2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA 260ef51a73
`Gem.load_path_insert_index always returns non-nil index after Ruby 1.9 2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA 06fcf88d69
Use the original require for test_race_exception
The extension for require method with rubygems affects this test
  case. We need to keep this test for the original method.
2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA d8148650f6
Try to continue on LoadError with gem_original_require 2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA 22d9bd944d
Keep the existance behavior with symlink path 2019-08-17 15:12:45 +09:00
Hiroshi SHIBATA 273f1f4498
Move fixture path to last path 2019-08-17 15:12:45 +09:00
Hiroshi SHIBATA dd16f8524c
Revert "Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem""
This reverts commit 75d29db8f9.
2019-08-17 15:12:45 +09:00
Kenichi Kamiya 9d20d2b0f5 Clean sample code biorhythm (#2375)
* Standardize to load date libary code

> git grep 'require .date.' | wc -l
179
> git grep 'require .date\.rb' | wc -l
1

* Simplify
2019-08-17 15:03:00 +09:00
Kenichi Kamiya 72adc6cffb Simplify a sample code (#2374) 2019-08-17 14:56:57 +09:00
Iain Barnett dce1e14e80 Use more different arguments in Fiber.yield documentation to make it clear (#2170)
https://github.com/ruby/ruby/pull/2170#issuecomment-489880700

Documentation is for those who don't know, remember, or understand (to any degree) the language, it should attempt to be clear above all other things. The example given is needlessly unclear because if you use a block it's common for arguments to be reused on every entry to the block. In Fiber's case this is not so.

First time round 10 goes in, 12 comes out.
Second time round 14 goes in, 14 comes out… was that because 14 is 12 + 2 or because it's "the return value of the call to Fiber.yield". It's the latter because it says so but why does the example need to make anyone think the former?

Using different numbers makes it immediately clear what's happening whether the description is there or not.
2019-08-17 14:24:45 +09:00
David CARLIER 28267cea08 NetBSD native support of explicit_bzero's like feature (#2145) 2019-08-17 14:17:30 +09:00
Kazuhiro NISHIYAMA ccbfb054b1
Fix typos 2019-08-17 13:57:12 +09:00
Hiroshi SHIBATA 2468466a1a Added missing condition for test-bundler and test-bundled-gems. 2019-08-17 13:27:11 +09:00
Hiroshi SHIBATA ea496e9fb2 Added test check to ubuntu on GitHub Actions 2019-08-17 13:27:11 +09:00
Nobuyoshi Nakada dc020b06ff
Hoisted out search_refined_method
[Bug #16107]
2019-08-17 12:32:34 +09:00
Nobuyoshi Nakada 11a9f7ab94 Search refinement module along nested usings
[Bug #16107]
2019-08-17 12:30:38 +09:00
OKURA Masafumi 042be439d9 Improve the doc example of `method_missing`
Improvements are:
* Use `symbol` instead of `methId`, described in doc
* Add `*args` following method signature
* Rescue error in `roman_to_int` and calls `super`, recommended in doc
* Call invalid `foo` method to Roman object to raise NoMethodError
2019-08-17 12:19:13 +09:00
Takashi Kokubun 045152df9e
Disable fail-fast of GitHub Actions
This is default: true
https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast

When `make check` fails, we do not want to cancel `make test-bundler`.
2019-08-17 09:43:06 +09:00
Hiroshi SHIBATA 75d29db8f9
Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem"
This reverts commit 00cd5d74ce.
2019-08-17 08:52:39 +09:00
OKURA Masafumi efd37f8fc3 Remove redundant each from `sum` example (#2190) [ci skip]
It used to be `Enumerator#sum`, now it's range of string which calls
`Enumerable#sum` and causes TypeError.
2019-08-17 08:52:23 +09:00
Hiroshi SHIBATA 7624154595
Fixed Insecure Operation in require
Caused by 00cd5d74ce
2019-08-17 08:44:31 +09:00
git e0fc9b7ccd * 2019-08-17 [ci skip] 2019-08-17 07:49:00 +09:00
Hiroshi SHIBATA f30d38bdd0
Move lib directory to the last of $LOAD_PATH on ruby repository.
https://github.com/rubygems/rubygems/pull/1868 changes the behavior
  of require when it used with -I options. Therefore, the options of
  ruby repository was different from rubygems/rubygems.
2019-08-17 07:47:19 +09:00
Hiroshi SHIBATA ae3002b540
[rubygems/rubygems] Fixup #2844
https://github.com/rubygems/rubygems/commit/5924286ae2
2019-08-17 07:35:49 +09:00
MSP-Greg 56a28a8728
[rubygems/rubygems] installer.rb - fix #windows_stub_script
use ruby_exe in heredocs instead of ruby.exe

https://github.com/rubygems/rubygems/commit/9f1b7d6590
2019-08-17 07:35:49 +09:00
Alexander Pakulov 25a327d41b
[rubygems/rubygems] Do not mutate uri.query during s3 signature creation
https://github.com/rubygems/rubygems/commit/c0275ee537
2019-08-17 07:35:48 +09:00
Hiroshi SHIBATA c4f7c260f9
[rubygems/rubygems] Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap.
https://github.com/rubygems/rubygems/commit/1133c2f700
2019-08-17 07:35:48 +09:00
David Rodríguez c78839902b
[rubygems/rubygems] Return `nil` to clarify return value is ignored
https://github.com/rubygems/rubygems/commit/8702f59d32
2019-08-17 07:35:48 +09:00
David Rodríguez 5998012a0c
[rubygems/rubygems] Autoswitch to exact bundler version if present
https://github.com/rubygems/rubygems/commit/bb02953a97
2019-08-17 07:35:48 +09:00
David Rodríguez 3587824d71
[rubygems/rubygems] Don't unregister default specifications
I think this should be more efficient?

https://github.com/rubygems/rubygems/commit/a1de78104f
2019-08-17 07:35:48 +09:00
David Rodríguez 1ac6890bd0
[rubygems/rubygems] Fix removing unresolved default spec files from map
https://github.com/rubygems/rubygems/commit/7964917bbc
2019-08-17 07:35:48 +09:00
David Rodríguez f42ad4a425
[rubygems/rubygems] Little refactor
There's already a method called `suffix_pattern`, that's different from
this local variable. So, move the local variable to a `suffix_regexp`
that clearly differenciates from `suffix_pattern`.

https://github.com/rubygems/rubygems/commit/4ec69c48b9
2019-08-17 07:35:48 +09:00
bronzdoc 89ad5df979
[rubygems/rubygems] Replace domain parameter in Gem::Command#show_lookup_failure with a parameter to suppress suggestions
https://github.com/rubygems/rubygems/commit/760b7d834f
2019-08-17 07:35:48 +09:00
David Rodríguez b8984370da
[rubygems/rubygems] Fix jruby issue
https://github.com/rubygems/rubygems/commit/fc3f722164
2019-08-17 07:35:48 +09:00
David Rodríguez 37abd2c390
[rubygems/rubygems] Fix old rubies compat
https://github.com/rubygems/rubygems/commit/41e60cdb6b
2019-08-17 07:35:48 +09:00
Samuel Giddins 00cd5d74ce
[rubygems/rubygems] [Require] Ensure -I beats a default gem
https://github.com/rubygems/rubygems/commit/6fbda98eb3
2019-08-17 07:35:48 +09:00
David Rodríguez d4feeb1936
[rubygems/rubygems] Make test also assert the gems that it should load
https://github.com/rubygems/rubygems/commit/a6375920bf
2019-08-17 07:35:48 +09:00
David Rodríguez bb2a65800d
[rubygems/rubygems] Use `assert_require`
For consistency with the other specs.

https://github.com/rubygems/rubygems/commit/44b93aec4c
2019-08-17 07:35:48 +09:00
Yusuke Endoh 229ae3269d lib/rdoc/store.rb: Use `Marshal.dump(obj, io)`
instead of dumping obj to a string and then saving the string.
It omits object creation.
2019-08-16 21:27:05 +09:00
Nobuyoshi Nakada 619f82bb6b
Hoisted out unixsocket_len, triming NUL chars from sun_path 2019-08-16 17:44:45 +09:00
Nobuyoshi Nakada 03f4a0b18e [ruby/rdoc] Use assert_raise
https://github.com/ruby/rdoc/commit/f2c63549f7
2019-08-16 17:28:40 +09:00
Hiroshi SHIBATA 02d0d424be
Revert "[bundler/bundler] Fixup #7297"
This reverts commit b8d759806f.

  It's accidentally picked from the upstream repository.
2019-08-16 14:52:03 +09:00