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

951 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez cb71930351 [bundler/bundler] Remove unexistent folder from exemptions
https://github.com/bundler/bundler/commit/0b6d973543
2019-08-16 14:30:23 +09:00
David Rodríguez f48a61fb46 [bundler/bundler] Commit man pages to source control
This has the benefit that:

* Allows the installation of bundler as a default gem from rubygems to
include man pages.
* Removes the need to build man pages during our tests.
* Makes working with the manifest easier, because we only have source
controlled files, and not a mix of source control and generated files.

To make sure they never fall out of sync, we replace the previous
`man:build` CI task with a `man:check` task that makes sure the
generated man pages are up to date.

https://github.com/bundler/bundler/commit/23de1d0177
2019-08-16 14:30:23 +09:00
David Rodríguez 4913c9b6bf [bundler/bundler] Remove unexistent file from exemptions
https://github.com/bundler/bundler/commit/8601575490
2019-08-16 14:30:23 +09:00
David Rodríguez 94e26a97a1 [bundler/bundler] Bump rspec dependency to 3.8
Because we're using `config.bisect_runner` which is only available from
3.8.

https://github.com/bundler/bundler/commit/304a187f72
2019-08-16 14:30:23 +09:00
David Rodríguez 521a2d2beb [bundler/bundler] Revert "make system_bundle_bin_path helper and resolve failing tests for ruby < 2.6"
This reverts commit e63e844bc7444c6a489fcde0dc7011c6c4807edd.

It was introduced to resolve some failing tests at the cost of making
the intention of the spec much less clear.

Thanks to the previous fixes we have added to this spec, we can revert
that patch now.

https://github.com/bundler/bundler/commit/b29a40820f
2019-08-16 14:30:23 +09:00
David Rodríguez 5bff72c912 [bundler/bundler] Make sure spec fails if `bundle install` fails
https://github.com/bundler/bundler/commit/2ed2bbfdec
2019-08-16 14:30:23 +09:00
David Rodríguez 7ff0b4fec4 [bundler/bundler] Fix installation of system bundler
Previously it was being installed to the :bundle_path
(`/tmp/bundled_app/.bundle`), but the `bundle` helper uses the
`system_gem_path("bin/bundle")`. That means the first `bundle install`in
the spec was actually failing, but not affecting the test status because
of not being called as `bundle!`.

https://github.com/bundler/bundler/commit/ad75f75539
2019-08-16 14:30:23 +09:00
David Rodríguez 6c6c4c7388 [bundler/bundler] Use non deprecated way of setting bundler path
https://github.com/bundler/bundler/commit/6013c93e81
2019-08-16 14:30:23 +09:00
David Rodríguez ee1f3038f1 [bundler/bundler] Clarify spec description
https://github.com/bundler/bundler/commit/b2abde04aa
2019-08-16 14:30:23 +09:00
David Rodríguez 0aed0bd9ed [bundler/bundler] Bump rack and sinatra to latest versions
https://github.com/bundler/bundler/commit/09ecaf04fa
2019-08-16 14:30:23 +09:00
David Rodríguez 129657ab6a [bundler/bundler] Normalize style with other artifice files
https://github.com/bundler/bundler/commit/f11c9a2b3f
2019-08-16 14:30:23 +09:00
David Rodríguez 41534ce327 [bundler/bundler] Make spec pass more resiliently
Previously, if bundler-2.1.0.pre.1 would be installed globally, it would
fail. Now we force that a locally installed version of bundler is used,
so it always passed regardless of which bundler is installed globally.

https://github.com/bundler/bundler/commit/764d8e8fd1
2019-08-16 14:30:23 +09:00
David Rodríguez 3c23bb29ec [bundler/bundler] Remove unnecessary exclusions
https://github.com/bundler/bundler/commit/c189dfdde0
2019-08-16 14:30:23 +09:00
David Rodríguez 3f0e19c9fa [bundler/bundler] Enable retries on flaky spec
https://github.com/bundler/bundler/commit/da360659f7
2019-08-16 14:30:23 +09:00
Benoit Daloze 2b0f3aa095 [bundler/bundler] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION
* RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby.
* There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION.

https://github.com/bundler/bundler/commit/f9d910403b
2019-08-16 14:30:23 +09:00
David Rodríguez 6711343d5a [bundler/bundler] Fix inconsistent lockfile order
When Gemfile would specify path sources as relative paths starting with
"./", the lockfile would have inconsistent order on `bundle install` and
`bundle update`.

https://github.com/bundler/bundler/commit/c7532ced89
2019-08-16 14:30:23 +09:00
David Rodríguez c11c8b69ea [bundler/bundler] Indentation tweak
https://github.com/bundler/bundler/commit/5978a88f33
2019-08-16 14:30:23 +09:00
Koichi Sasada 182a408c2c
change Proc#to_s format ('@...' -> ' ...') (#2362)
Now Proc#to_s returns
"#<Proc:0x00000237a0f5f170@t.rb:1>".
However, it is convenient to select a file name by (double-)clicking
on some terminals by separating ' ' instead of '@' like
"#<Proc:0x00000237a0f5f170 t.rb:1>"
[Feature #16101]
2019-08-14 16:25:15 +09:00
Hiroshi SHIBATA ed9d59afc8
Added example filter for Linux of GitHub Actions. 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA 8a8f680f01
Re-use GITHUB_ACTION variables for filtering bundler examples. 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA bb2f24251f
GitHub Actions does not support ANSI color code. Skip failing examples. 2019-08-11 12:17:22 +09:00
ohbarye b1678338e5
Fix typo: duplicated the [skip-ci] 2019-08-09 16:23:49 -07:00
Nobuyoshi Nakada ec0d742dd7
Suppress warnings against locations in eval 2019-08-03 14:07:10 +09:00
Hiroshi SHIBATA b3b2b55f7b
[bundler/bundler] The keys for RbConfig::CONFIG was String.
https://github.com/bundler/bundler/commit/ffc5e76335
2019-08-03 09:40:11 +09:00
Hiroshi SHIBATA 220f6aa01c
Explicitly ignored GEMRC environmental variable. 2019-08-03 09:30:00 +09:00
Hiroshi SHIBATA 4c72ca195d
Fixed up 365ee22d73ec73c119a842de271504e04bed6f45 2019-08-03 09:30:00 +09:00
Hiroshi SHIBATA 01d141938c
Fixed the broken example with ruby core structure. 2019-08-03 09:30:00 +09:00
David Rodríguez 7ed1fc527e
[bundler/bundler] Bump rubocop to 0.74.0
And reenable exclusion because the bug why we added them has been fixed.
See https://github.com/rubocop-hq/rubocop/issues/6861.

https://github.com/bundler/bundler/commit/bda63fcffc
2019-08-03 09:30:00 +09:00
David Rodríguez 1e63683795
[bundler/bundler] Bump automatiek to 0.2.0
https://github.com/bundler/bundler/commit/cd1abf8b3f
2019-08-03 09:30:00 +09:00
David Rodríguez 97f3ceeaa5
[bundler/bundler] Bump net-http-persistent to 3.0.1
* Adds an extra artifice task to vendorize new `connection_pool`
dependency.

* Cherry-pick's needed Windows fix not yet merged into master branch of
`net-http-persistent`.

* Update bundler usages to be compatible with the new version, and fix
unit specs.

https://github.com/bundler/bundler/commit/0575baa6bb
2019-08-03 09:30:00 +09:00
David Rodríguez 2b7e39f364
[bundler/bundler] Always set `cache_all` via config during tests
So that the behavior is the same regardless of the tested bundler
version.

https://github.com/bundler/bundler/commit/664549427a
2019-08-03 09:30:00 +09:00
David Rodríguez 267a72be80
[bundler/bundler] Enable `Style/UnneededInterpolation` cop
https://github.com/bundler/bundler/commit/4c6a3c3cf7
2019-08-03 09:30:00 +09:00
David Rodríguez e84e63230b
[bundler/bundler] Check for straneous quotes
And use single quotes consistenly.

https://github.com/bundler/bundler/commit/8b9fbbb2df
2019-08-03 09:30:00 +09:00
Samuel Giddins 4dea1356c3
[bundler/bundler] [CurrentRuby] Say we are ruby? when the generic local platform is Gem::Platform::RUBY
This allows us to always say we're ruby? when force_ruby_platform is
set, and fixes using gemspec & force_ruby_platform on windows.

https://github.com/bundler/bundler/commit/3cb89b7e5c
2019-08-03 09:30:00 +09:00
David Rodríguez 6fb73e6043
[bundler/bundler] Fully remove compatibility guard
https://github.com/bundler/bundler/commit/2a7a5daba0
2019-08-03 09:30:00 +09:00
David Rodríguez 452516f50f
[bundler/bundler] Remove development dependencies from gemspec
And refactor development setup.

https://github.com/bundler/bundler/commit/f288806d02
2019-08-03 09:30:00 +09:00
David Rodríguez 7255f55dba
[bundler/bundler] RUBY_ENGINE should always be defined after 1.8.7
https://github.com/bundler/bundler/commit/d6c9196d18
2019-08-03 09:30:00 +09:00
Hiroshi SHIBATA d4b1804b11
[bundler/bundler] Removed the environmental variables that are BUNDLE_USER_*.
It's affect with rspec examples and broke them.

https://github.com/bundler/bundler/commit/355a922073
2019-08-03 09:30:00 +09:00
Guillermo Guerrero e33dd659d4
[bundler/bundler] Move duplicated code to `before` blocks
https://github.com/bundler/bundler/commit/69bee117fb
2019-08-03 09:29:59 +09:00
David Rodríguez c4a2a9a381
[bundler/bundler] Remove now unused logic
https://github.com/bundler/bundler/commit/5b285685a4
2019-08-03 09:29:59 +09:00
David Rodríguez 322d4fe98d
[bundler/bundler] Remove unnecessary indirections
These specs are only run on bundler 2, so the compatibility method is
not needed.

https://github.com/bundler/bundler/commit/6cb28e3aeb
2019-08-03 09:29:59 +09:00
David Rodríguez 640dbdd155
[bundler/bundler] Better info about spec exclusions
https://github.com/bundler/bundler/commit/1ee77d9c55
2019-08-03 09:29:59 +09:00
David Rodríguez 51aaed128a
[bundler/bundler] Skip specs using `Process.fork` on Windows
https://github.com/bundler/bundler/commit/ebcb25a3c3
2019-08-03 09:29:59 +09:00
David Rodríguez d7487d6c08
[bundler/bundler] Try make some specs platform independent
https://github.com/bundler/bundler/commit/b5900e57a4
2019-08-03 09:29:59 +09:00
David Rodríguez 9d82962af3
[bundler/bundler] Check for generic lockfiles
https://github.com/bundler/bundler/commit/344a881592
2019-08-03 09:29:59 +09:00
David Rodríguez cb6abf551a
[bundler/bundler] Update error messages to be more precise
https://github.com/bundler/bundler/commit/9ddeeb1fe1
2019-08-03 09:29:59 +09:00
David Rodríguez a1c69991a5
[bundler/bundler] Use a consistent requirement in binstub
https://github.com/bundler/bundler/commit/50ccdb32c2
2019-08-03 09:29:59 +09:00
David Rodríguez 3e10b4a0be
[bundler/bundler] Indentation fixes
https://github.com/bundler/bundler/commit/2a44090cb6
2019-08-03 09:29:58 +09:00
David Rodríguez 3e83fbddfa
[bundler/bundler] Add a comment to explain the initial reset
https://github.com/bundler/bundler/commit/6d0a8f4128
2019-08-03 09:29:58 +09:00
David Rodríguez 55831647fb
[bundler/bundler] Move environment reset to the only test needing it
https://github.com/bundler/bundler/commit/6d3b809695
2019-08-03 09:29:58 +09:00
David Rodríguez 1b081cdd65
[bundler/bundler] Improve test to make it more independent from env
https://github.com/bundler/bundler/commit/038f0d7c37
2019-08-03 09:29:58 +09:00
David Rodríguez 26f651796c
[bundler/bundler] Remove unnecessary assignments
https://github.com/bundler/bundler/commit/3e5d4b2c42
2019-08-03 09:29:58 +09:00
MSP-Greg d6a2e082e6
[bundler/bundler] spec/bundler/shared_helpers_spec.rb - fixup after 7248
PR 7248 incorrectly changed a path calculation.  This reverts.

After running Azure Pipelines CI in my ruby/ruby fork and checking  the  'bundler' jobs, the error was apparent...

https://github.com/bundler/bundler/commit/811755b413
2019-08-03 09:29:58 +09:00
MSP-Greg 432285c004
[bundler/bundler] fix nested bundle exec's when bundler is a default gem
https://github.com/bundler/bundler/commit/537c0ab712
2019-08-03 09:29:58 +09:00
MSP-Greg 7b7caf9b55
[bundler/bundler] dsl_spec.rb - fix for Ruby core
https://github.com/bundler/bundler/commit/33892e1ed2
2019-08-03 09:29:58 +09:00
David Rodríguez 4f5e1b6ebf
[bundler/bundler] Remove `cache_command_is_package` feature flag
So that we handle the removal of `bundle cache` just like we'll handle
the removal of `bundle show` and `bundle console`.

https://github.com/bundler/bundler/commit/ff1a669efb
2019-08-03 09:29:58 +09:00
David Rodríguez 31541d7389
[bundler/bundler] Drop rubygems 2.5.0 and 2.5.1 support
https://github.com/bundler/bundler/commit/8ecd722b9f
2019-08-03 09:29:58 +09:00
David Rodríguez fc42423b8d
[bundler/bundler] Correct a rubygems test filter
It seems to pass under rubygems 2.5.2.

https://github.com/bundler/bundler/commit/062cd2be7c
2019-08-03 09:29:58 +09:00
David Rodríguez f5cd02f362
[bundler/bundler] Remove unnecessary test filter
Since it covers the whole range we support.

https://github.com/bundler/bundler/commit/c0b9d4e6c6
2019-08-03 09:29:58 +09:00
David Rodríguez a6ce001bab
[bundler/bundler] Change the refresh spec to not use `stubs_for`
We plan to incrementally populate this array in rubygems, so that will
break the test because the first time `find_by_name("rack")` is called
will make the `rack` gem available in the array.

We can test the same thing using some other way, which is more
appropriate anyways, because `Bundler.rubygems.find_name` is only used
inside `bundler` to look for the `bundler` gem itself whereas
`Bundler.rubygems.all_specs` is used in more places.

https://github.com/bundler/bundler/commit/49c519ef47
2019-08-03 09:29:58 +09:00
David Rodríguez a181df7542
[bundler/bundler] No need to make `Gem.refresh` a noop
The rubygems integration sets up a `post_reset` hook that resets the
specs back to what bundler knows after `Gem::Specification.reset` is
called (which is what `Gem.refresh` calls under the hood).

https://github.com/bundler/bundler/commit/3810f9945c
2019-08-03 09:29:58 +09:00
David Rodríguez f399a2b796
[bundler/bundler] Remove unnecessary line
It contains a typo, so it can't be needed.

https://github.com/bundler/bundler/commit/ef38c97fbf
2019-08-03 09:29:58 +09:00
David Rodríguez 56fd027aa6
[bundler/bundler] Tweak some quality specs to check more files
https://github.com/bundler/bundler/commit/98023e25de
2019-08-03 09:29:58 +09:00
David Rodríguez 812dfa44f0
[bundler/bundler] Refactor setting the encoding in quality specs
Instead of setting the encoding globally, set it when reading the files.

https://github.com/bundler/bundler/commit/e2a5c45e4d
2019-08-03 09:29:57 +09:00
David Rodríguez 6cbe818c66
[bundler/bundler] This seems to pass for me
https://github.com/bundler/bundler/commit/e31880b1ea
2019-08-03 09:29:57 +09:00
David Rodríguez dae6d303d5
[bundler/bundler] Remove now meaningless warning
https://github.com/bundler/bundler/commit/00b095b98f
2019-08-03 09:29:57 +09:00
David Rodríguez c1ca77281d
[bundler/bundler] Add all platforms to lockfile by default
https://github.com/bundler/bundler/commit/3dc509e645
2019-08-03 09:29:57 +09:00
David Rodríguez d8cd45cb1a
[bundler/bundler] Refactor some specs
https://github.com/bundler/bundler/commit/785c7af1f3
2019-08-03 09:29:57 +09:00
David Rodríguez cef81eb8cc
[bundler/bundler] Make some specs more explicit
https://github.com/bundler/bundler/commit/5e08e849ec
2019-08-03 09:29:57 +09:00
David Rodríguez b2baf6bb02
[bundler/bundler] Remove unnecessary begin-end block
And freeze the resulting hash to appease rubocop.

https://github.com/bundler/bundler/commit/f38ebff92f
2019-08-03 09:29:57 +09:00
David Rodríguez 0dad89c0fe
[bundler/bundler] Fix typos
https://github.com/bundler/bundler/commit/1bd9660780
2019-08-03 09:29:57 +09:00
David Rodríguez 8d9fc8466f
[bundler/bundler] Reuse `lockfile` spec helper
https://github.com/bundler/bundler/commit/e6a03f1102
2019-08-03 09:29:57 +09:00
David Rodríguez 2f1d52c266
[bundler/bundler] Remove unused filter
https://github.com/bundler/bundler/commit/102d6229d4
2019-08-03 09:29:57 +09:00
David Rodríguez aae244569b
[bundler/bundler] Reuse `gemfile` spec helper
https://github.com/bundler/bundler/commit/22de94d3b4
2019-08-03 09:29:57 +09:00
David Rodríguez 05c3b7c8a9
[bundler/bundler] More specific assertion
1.0.0 is such a common output, and it was hiding a crash in the test.

https://github.com/bundler/bundler/commit/c688337e24
2019-08-03 09:29:57 +09:00
David Rodríguez 13e5bf3454
[bundler/bundler] Remove redundant assertion
https://github.com/bundler/bundler/commit/7ac854dea1
2019-08-03 09:29:57 +09:00
David Rodríguez 2c262d137c
[bundler/bundler] Make spec easier to debug
https://github.com/bundler/bundler/commit/156629291e
2019-08-03 09:29:57 +09:00
Samuel Giddins 82bf064375
[bundler/bundler] [Package] Ensure uninstallable gems are _never_ installed
https://github.com/bundler/bundler/commit/899aeeebb0
2019-08-03 09:29:57 +09:00
Samuel Giddins d761a0f6ff
[bundler/bundler] [Package] Always resolve remotely for --all-platforms
https://github.com/bundler/bundler/commit/e45d2272ea
2019-08-03 09:29:56 +09:00
David Rodríguez 2ccb3db5fb
[bundler/bundler] Add missing mock
I'm not sure this test is useful but since it's there, it should be
complete.

https://github.com/bundler/bundler/commit/3e350089db
2019-08-03 09:29:56 +09:00
David Rodríguez e6dc7b5b5b
[bundler/bundler] Improve spec to be more realistic
https://github.com/bundler/bundler/commit/ca96316b97
2019-08-03 09:29:56 +09:00
David Rodríguez 4b1395ab4a
[bundler/bundler] Clearer MissingRevision git errors
https://github.com/bundler/bundler/commit/b47d23edf5
2019-08-03 09:29:56 +09:00
David Rodríguez bdcd1990ad
[bundler/bundler] Generate new gem development dependencies in Gemfile
https://github.com/bundler/bundler/commit/02177d0e10
2019-08-03 09:29:56 +09:00
David Rodríguez 86757abd25
[bundler/bundler] Fix local variable name
https://github.com/bundler/bundler/commit/3df138318f
2019-08-03 09:29:56 +09:00
David Rodríguez f2cc018adb
[bundler/bundler] Reuse `execute_bundle_gem` method
https://github.com/bundler/bundler/commit/773203ec5a
2019-08-03 09:29:56 +09:00
David Rodríguez 2771789302
[bundler/bundler] Don't re-resolve locked platform specific gems
https://github.com/bundler/bundler/commit/7da2bf75f5
2019-08-03 09:29:56 +09:00
David Rodríguez 72daf37dee
[bundler/bundler] Fix a typo on a spec comment
https://github.com/bundler/bundler/commit/1a853ad6ac
2019-08-03 09:29:56 +09:00
robuye 884f948a90
[bundler/bundler] bundler/inline should always install gems to system path
As discussed in the P/R, when `BUNDLE_PATH` env is set Bundler should
still install gems to the system path. `GEM_HOME` can be used to provide
different location if needed.

The test is added to document expected behavior of `bundler/inline`.

https://github.com/bundler/bundler/commit/ae419fd6f8
2019-08-03 09:29:56 +09:00
David Rodríguez 4089f8df1e
[bundler/bundler] Use real paths for `bundle clean`
https://github.com/bundler/bundler/commit/0646f9e286
2019-08-03 09:29:56 +09:00
David Rodríguez e59b57a3a7
[bundler/bundler] Fix thread leak in compact index specs
This spec was not stopping threads after itself. That would cause the
previous spec in the file (that checks that no threads are left behind)
to fail.

https://github.com/bundler/bundler/commit/81ad85b92d
2019-08-03 09:29:56 +09:00
Miklos Fazekas a12557dbfd
[bundler/bundler] Add `required_ruby_version` to gemspec template
https://github.com/bundler/bundler/commit/f47421f92d
2019-08-03 09:29:56 +09:00
David Rodríguez b014a2157f
[bundler/bundler] Factor out gemspec call inside `let`
https://github.com/bundler/bundler/commit/ae0ac190aa
2019-08-03 09:29:56 +09:00
David Rodríguez 10c0271f97
[bundler/bundler] Remove duplicated `let`'s
https://github.com/bundler/bundler/commit/43ffaab796
2019-08-03 09:29:55 +09:00
David Rodríguez a685a8643f
[bundler/bundler] Fix `rake release` not prompting for OTP code
Co-authored-by: Colby Swandale <me@colby.fyi>
Co-authored-by: Kevin Deisz <kevin.deisz@gmail.com>

https://github.com/bundler/bundler/commit/1b2bbc7364
2019-08-03 09:29:55 +09:00
David Rodríguez e111f38f34
[bundler/bundler] Fix file:// handling under Windows
Windows paths do not start with a slash, so we add an extra slash to
separate the host from the path in file:// urls. Otherwise "D:" is
parsed as the host segment in the URI.

The path for those URLs now starts with "/", so we ignore that leading
character when using the URI's path.

This reduces Windows CI spec failures from 429 to 355.

https://github.com/bundler/bundler/commit/1b7e274cbc
2019-08-03 09:29:55 +09:00
David Rodríguez c3ddd47ce7
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
2019-08-03 09:29:55 +09:00
David Rodríguez d8d5e16305
[bundler/bundler] Use a clean gemspec for gem helper specs
https://github.com/bundler/bundler/commit/f694fe7f67
2019-08-03 09:29:55 +09:00
David Rodríguez 1c070c9c29
[bundler/bundler] Move "on releasing" to a RSpec context
So we can later add more tests with the same setup.

https://github.com/bundler/bundler/commit/21b4b6c49c
2019-08-03 09:29:55 +09:00
David Rodríguez 1a4bb80cd7
[bundler/bundler] Skip specs that need coloring on Windows
ANSI codes don't work there.

https://github.com/bundler/bundler/commit/4f05417ca7
2019-08-03 09:29:55 +09:00
David Rodríguez 38df9e18da
[bundler/bundler] Add missing no-color source specs
For consistency.

https://github.com/bundler/bundler/commit/279603ab42
2019-08-03 09:29:55 +09:00
David Rodríguez 214e992556
[bundler/bundler] Be explicit about coloring in specs that need that
https://github.com/bundler/bundler/commit/a4d04506ab
2019-08-03 09:29:55 +09:00
David Rodríguez 580e165873
[bundler/bundler] Respect color option when instantiating shells
Thor's base shell will be memoized the first time it is set. So if we
instantiate a no-color shell first, further instantiations of a bundler
shell will be initialized with a no-color shell by default. This is
caused some sources specs to fail, depending on the order they run.

See for example https://travis-ci.org/bundler/bundler/builds/500328994.

What we do to fix it is to reset the shell unless no-color is explicitly
specified. That way, further instantiations will rerun thor's internal
logic to choose the default shell.

https://github.com/bundler/bundler/commit/786b5d9894
2019-08-03 09:29:55 +09:00
Hiroshi SHIBATA 4c2255fd5c
[bundler/bundler] Added Ruby 2.6 to dsl.
https://github.com/bundler/bundler/commit/1892626858
2019-08-03 09:29:55 +09:00
Koichi Sasada a1a198d03a File.realpath can raise ENOTDIR 2019-07-31 21:16:20 +01:00
Benoit Daloze e432f5dafd Split in two spec examples 2019-07-31 11:06:54 +02:00
Benoit Daloze eab6c534ad Attempt to fix Hash#rehash spec 2019-07-31 11:04:35 +02:00
Koichi Sasada 40651cf1f5 delete a check on bad assumption.
If object was modified, but there is a case that
hash values (#hash) are same between before modified
and after modified objects.
2019-07-31 15:14:51 +09:00
Jeremy Evans aa97410b0a Warn if using return at top-level with an argument
Fixes [Bug #14062]
2019-07-29 09:01:23 -07:00
Benoit Daloze 7b727e30fc Update to ruby/spec@0526d8f 2019-07-27 12:57:46 +02:00
Benoit Daloze 5c276e1cc9 Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
Nobuyoshi Nakada 149e414ed5
Initialize DST flag
* time.c (zone_timelocal): initialize DST flag by asking the
  timezone object.  [Bug #15988]
2019-07-27 12:41:33 +09:00
Nobuyoshi Nakada 6ab95fb741
Removed twisted tests
Why does only Process.daemon have these tests?
2019-07-16 22:03:25 +09:00
Hiroshi SHIBATA f73ea3342b
Fixed ruby/spec for Logger::LogDevice changes. 2019-07-15 15:07:26 +09:00
Nobuyoshi Nakada cd069df365
File::Stat uses Time#inspect 2019-07-11 19:46:11 +09:00
Nobuyoshi Nakada 4e038a7e64
Revert "parse.y: Deprecate flip-flops"
This reverts commit bae638ad5b.

[Feature #5400]
2019-07-11 14:52:02 +09:00
Nobuyoshi Nakada 23c92b6f82
Revert self-referencing finalizer warning [Feature #15974]
It has caused CI failures.

* d0cd0866d8

  Disable GC during rb_objspace_reachable_object_p

* 89cef1c56b

  Version guard for [Feature #15974]

* 796eeb6339.

  Fix up [Feature #15974]

* 928260c2a6.

  Warn in verbose mode on defining a finalizer that captures the object
2019-07-04 04:01:06 +09:00
Nobuyoshi Nakada 89cef1c56b
Version guard for [Feature #15974] 2019-07-03 15:22:16 +09:00
Chris Seaton 928260c2a6
Warn in verbose mode on defining a finalizer that captures the object
[Feature #15974]

Closes: https://github.com/ruby/ruby/pull/2264
2019-07-03 04:05:22 +09:00
Takashi Kokubun dbe834ab5a
Prefer master rather than trunk in README [ci skip] 2019-07-01 01:05:29 +09:00
Nobuyoshi Nakada 9f648262f9
Fix predicate to assert if object is same 2019-06-29 21:45:59 +09:00
Nobuyoshi Nakada cbb7dc21a8
Fix predicate to assert if object is same 2019-06-29 19:17:51 +09:00
Benoit Daloze a2091c3023 Update to ruby/spec@94d98ff 2019-06-27 21:21:33 +02:00
Benoit Daloze d80e44deec Update to ruby/spec@8d74d49 2019-06-27 21:02:36 +02:00
Benoit Daloze c940397116 Update to ruby/mspec@ca2bc42 2019-06-27 21:02:33 +02:00
Benoit Daloze 9247f6fcc0 Expand and clarify documentation about version guards for specs 2019-06-27 12:06:39 +02:00
Hiroshi SHIBATA e478671e19
Added version guard for backtrace printing feature of psych to ruby/spec. 2019-06-26 09:23:02 +09:00
Hiroshi SHIBATA d7887b05d8
Fixed broken ruby/spec related a53ab897c3 2019-06-25 16:46:53 +09:00
Nobuyoshi Nakada 97a7f463f6
Max length of UNIX socket path is 104 bytes on macOS 2019-06-23 23:12:47 +09:00
Nobuyoshi Nakada 50b2807a7c
Do not lengthen UNIX socket path
* spec/ruby/library/socket/unixsocket/recvfrom_spec.rb: do not
  lengthen UNIX socket path, which is very stricted.
2019-06-23 23:10:16 +09:00
Kenichi Kamiya d01fd82187 Alias ENV.merge! as ENV.update
[Feature #15947]

Closes: https://github.com/ruby/ruby/pull/2246
2019-06-21 18:25:01 +02:00
Benoit Daloze 3b2d11ad90 Use different names for autoload constants in specs for clarity 2019-06-21 18:21:45 +02:00
Jean Boussier e5e811e4a0 Add extra spec from https://github.com/ruby/ruby/pull/2173 2019-06-21 18:21:45 +02:00
Jean Boussier fb85a42860
Add an optional `inherit` argument to Module#autoload?
[Feature #15777]

Closes: https://github.com/ruby/ruby/pull/2173
2019-06-21 17:28:37 +09:00
Jeremy Evans a0af60c7f2 Remove spec testing undefined behavior
Fixes [Bug #15432]
2019-06-19 12:20:30 -07:00
Jeremy Evans b9ef35e4c6 Implement Complex#<=>
Implement Complex#<=> so that it is usable as an argument when
calling <=> on objects of other classes (since #coerce will coerce
such numbers to Complex).  If the complex number has a zero imaginary
part, and the other argument is a real number (or complex number with
zero imaginary part), return -1, 0, or 1.  Otherwise, return nil,
indicating the objects are not comparable.

Fixes [Bug #15857]
2019-06-19 10:50:58 -07:00
Hiroshi SHIBATA e4364dbf6e
Fixed the code-style with the upstream rule. 2019-06-11 12:16:26 +09:00
Benoit Daloze 626ae5a9b6 Resolv specs should pass on Windows now 2019-06-10 12:47:08 +02:00
Benoit Daloze 60af6fef3c Fix Resolv specs to not depend on a system /etc/hosts file
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20190609T153804Z.fail.html.gz
* Thanks @naruse for the tip.
2019-06-10 12:45:00 +02:00
Hiroshi SHIBATA 2c59c58a47 Fixed wrong BUNDLE_BIN_PATH for ruby core. 2019-06-09 12:44:31 +09:00
Hiroshi SHIBATA 44f7f093ab Added the condition for ruby_core repository. 2019-06-09 12:44:27 +09:00
Hiroshi SHIBATA 8f37629519 Merge bundler master from upstream.
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0
2019-06-09 12:44:10 +09:00
Jeremy Evans 119ca4343c Make specs pass on OpenBSD
Skip Process clockres specs that don't work on either FreeBSD or
Solaris/AIX in addition to OpenBSD.

Run most current String#crypt specs on non-OpenBSD, and add a new
set of crypt specs for OpenBSD, which support bcrypt but not DES
in crypt(3).

Use @server.connect_address instead of @server.getsockname in some
socket tests, as OpenBSD does not treat connection to all zero
IPv4 or IPv6 addresses as connection to localhost.

When trying to connect using UDP on an unsupported address family,
allow Errno::EPROTONOSUPPORT in addition to Errno::EAFNOSUPPORT,
as OpenBSD raises the former.
2019-06-06 21:16:28 -07:00
Nobuyoshi Nakada 84c294eb0b
spec/bundler/bundler/dsl_spec.rb: fix exception to raise
When describing "Runtime errors", raise a `RuntimeError` as-is.
2019-06-05 15:51:48 +09:00
Nobuyoshi Nakada aa8a8d8f6d
Split an assertion for f1f04caf60 2019-06-05 12:04:11 +09:00
Nobuyoshi Nakada 22da5d71ea
`ruby -v` may no longer be ASCII-only on non-master branches 2019-06-03 12:56:36 +09:00
Benoit Daloze 1d37cc1900 Update to ruby/spec@cfe908c 2019-05-31 19:02:08 +02:00
Benoit Daloze f97979ce88 Update to ruby/mspec@a57a9af 2019-05-31 19:02:06 +02:00
Nobuyoshi Nakada 8b39df854d
Let irb use an empty file as irbrc
to get rid of side-effect by existing .irbrc file.
2019-05-31 16:32:27 +09:00
Nobuyoshi Nakada b632566d33
UNIX domain socket name length has a certain limit 2019-05-31 16:32:27 +09:00
Benoit Daloze a4161b7649 Update to ruby/spec@0ba5312 2019-05-30 22:11:24 +02:00
Benoit Daloze e935a3227d Update to ruby/mspec@3cc36d0 2019-05-30 22:11:22 +02:00
Takashi Kokubun 5379ca9250
Skip spec broken since a66bc2c011
This has not worked since the merge https://travis-ci.org/ruby/ruby/jobs/538438184
2019-05-29 14:57:25 +09:00
Nobuyoshi Nakada 8552e9d696
Fix shorten-64-to-32 warning 2019-05-29 13:24:24 +09:00
Benoit Daloze 91f5a8db59 Update to ruby/spec@0c5c5c1 2019-05-28 23:15:57 +02:00
Benoit Daloze a66bc2c011 Update to ruby/spec@9a501a8 2019-05-28 22:41:48 +02:00
Jeremy Evans 39eadca76b Add FrozenError#receiver
Similar to NameError#receiver, this returns the object on which
the modification was attempted.  This is useful as it can pinpoint
exactly what is frozen.  In many cases when a FrozenError is
raised, you cannot determine from the context which object is
frozen that you attempted to modify.

Users of the current rb_error_frozen C function will have to switch
to using rb_error_frozen_object or the new rb_frozen_error_raise
in order to set the receiver of the FrozenError.

To allow the receiver to be set from Ruby, support an optional
second argument to FrozenError#initialize.

Implements [Feature #15751]
2019-05-26 11:09:21 -07:00
Benoit Daloze 2d34087a38 Add notes for the Process#clock_getres spec 2019-05-24 14:48:10 +02:00
Benoit Daloze 4541d2effe Only exclude the failing clocks for Process.clock_getres specs on AIX
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz
2019-05-24 14:29:47 +02:00
Yusuke Endoh 50e993d4e3 Skip the Process.clock_getres spec on AIX
https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz
2019-05-24 12:17:05 +09:00
manga_osyo f5415a95ce
Add `Time#ceil`.
Closes: https://github.com/ruby/ruby/pull/2133
2019-05-23 22:30:19 +09:00
Alfonso Jiménez 0acbdd1ed0
Adding Enumerable#filter_map
[Feature #15323]
Closes: https://github.com/ruby/ruby/pull/2017
2019-05-23 14:39:16 +09:00
Yusuke Endoh 00f7e42451 spec/ruby/core/hash/constructor_spec.rb: add "ruby_version_is" guard
follow up for d3f1c615c5
2019-05-23 01:46:21 +09:00
Yusuke Endoh d3f1c615c5 hash.c (rb_hash_s_create): Reject `Hash[[nil]]`
The behavior of `Hash[[nil]] #=> {}` was a bug until 1.9.3, but had been
remained with a warning because some programs depended upon it.
Now, six years passed.  We can remove the compatibility behavior.
[Bug #7300]
2019-05-23 00:19:56 +09:00
Alan Wu b00f280d4b
Eagerly name modules and classes
* variable.c: make the hidden ivars `classpath` and `tmp_classpath` the source
  of truth for module and constant names. Assign to them when modules are bind
  to constants.

* variable.c: remove references to module name cache, as what used to be the cache
  is now the source of truth. Remove rb_class_path_no_cache().

* variable.c: remove the hidden ivar `classid`. This existed for the purposes of
  module name search, which is now replaced. Also, remove the associated
  rb_name_class().

* class.c: use rb_set_class_path_string to set the name of Object during boot.
  Must use a fstring as this runs before rb_cString is initialized and
  creating a normal string leads to a VALUE without a class.

* spec/ruby/core/module/name_spec.rb: add a few specs to specify what happens
  to Module#name across multiple operations. These specs pass without other
  code changes in this commit.

[Feature #15765]
2019-05-22 15:46:47 +09:00
Benoit Daloze 8c8f2d97cf Remove redundant ignore rule for Process#clock_getres specs 2019-05-20 10:41:57 +02:00
Benoit Daloze 2a34543e11 Move exclusion for Hyper-V next to other skipped constants 2019-05-20 10:41:40 +02:00
Koichi Sasada ab0f2deab1 skip a test for CLOCK_MONOTONIC_RAW.
On my Linux guest machine on Hyper-V, I got an error.
Process.clock_gettime(CLOCK_MONOTONIC_RAW, :nanosecond) returns like:

  ...
  875573945119100
  875573945119600
  ...

even if `Process.clock_getres(value, :nanosecond)` returns 1.
So I simply skip this test for CLOCK_MONOTONIC_RAW.
2019-05-20 14:43:04 +09:00
Nobuyoshi Nakada a85ed43294
Do not access the internal member 2019-05-10 09:00:25 +09:00
Nobuyoshi Nakada d736080c8b
Use ruby_bug guard 2019-05-08 15:45:13 +09:00
Takashi Kokubun a7cbb65956
Do not break rubyspec for old Ruby
Fixing 7d805e67f3
2019-05-08 15:13:34 +09:00
Jean Boussier 7d805e67f3
Avoid triggering autoload in Module#const_defined?(String)
[Bug #15780]
2019-05-07 21:20:01 +09:00
aycabta 17350c7e55 Add Reline as a fallback library for Readline
* lib/reine.rb, lib/reline/*: Reline is a readline stdlib compatible
  library.
* lib/readline.rb: Readline uses a fallback to Reline when ext/readline
  doesn't exist.
* tool/sync_default_gems.rb: add ruby/reline as a default gem.
* appveyor.yml: add "set RELINE_TEST_ENCODING=Windows-31J" for test suit
  of Reline, and add "--exclude readline" to "nmake test-all" on Visual
  Studio builds because of strange behavior.
* spec/ruby/library/readline/spec_helper.rb: skip Reline as with
  RbReadline.
2019-04-30 11:44:20 +09:00
NAKAMURA Usaku eb45ba6116
Skip the spec on Windows because RUBY_EXE is RUNRUBY and it calls ruby as grandchild 2019-04-30 04:09:25 +09:00
Benoit Daloze daa0874056 CLOCK_MONOTONIC_RAW_APPROX seems less precise than advertised on macOS
* https://travis-ci.org/ruby/ruby/builds/525651487
2019-04-28 23:29:49 +02:00
Benoit Daloze 79671ec57e Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
Benoit Daloze 994833085a Update to ruby/mspec@c25d63d 2019-04-28 23:20:09 +02:00
Benoit Daloze bbb93608a3 Move the check for CentOS CLOCK_MONOTONIC_RAW next to others
* Fixes "No behavior expectation was found in the example"
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos6/ruby-trunk/log/20190428T093004Z.fail.html.gz
2019-04-28 23:17:42 +02:00
Benoit Daloze d906dd87b0 Skip CLOCK_UPTIME_RAW_APPROX since it seems less precise than advertised on macOS
* See https://travis-ci.org/ruby/ruby/jobs/525595997
2019-04-28 15:25:09 +02:00
Benoit Daloze 9426da83c6 Exclude failing Process.clock_getres specs on AIX 2019-04-28 14:59:14 +02:00
Benoit Daloze a27f7e499c Add missing platform guard 2019-04-28 14:55:30 +02:00
Benoit Daloze 9a0dbb3414 Skip problematic Process.clock_getres specs on ARM
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-trunk/log/20190428T051708Z.fail.html.gz
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-trunk/log/20190428T045405Z.fail.html.gz
2019-04-28 14:55:30 +02:00
Benoit Daloze 13abf5519a Workaround a CentOS bug in Process.clock_getres specs 2019-04-28 14:44:12 +02:00
Benoit Daloze 16695af0ef Refactor logic in Process.clock_gettime spec 2019-04-28 14:36:03 +02:00
Benoit Daloze fc37a045a0 Fix typo in spec 2019-04-28 14:35:17 +02:00
Benoit Daloze 5d24fba544 Skip the entire Process.clock_getres spec on FreeBSD
* Clocks don't match the reported precision.
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/log/20190428T093003Z.fail.html.gz
2019-04-28 12:37:29 +02:00
Benoit Daloze 2c283655a6 Some Solaris versions seem to only provide millisecond accuracy for CLOCK_REALTIME
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-trunk/log/20190427T182404Z.fail.html.gz
2019-04-27 23:46:08 +02:00
Benoit Daloze b7c301569d Skip clock_getres spec on BSD
* clock_getres() seems to be incorrect on BSD:
  https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/log/20190427T183003Z.fail.html.gz
2019-04-27 23:42:31 +02:00
Benoit Daloze 0d227d1ce6 Try to more accurately reflect MRI's logic in specs for finding the home if $HOME is unset 2019-04-27 19:42:54 +02:00
Benoit Daloze 5b93321064 Update to ruby/spec@14e6148 2019-04-27 19:23:45 +02:00
Benoit Daloze a1b4816759 Update to ruby/spec@15c9619 2019-04-27 18:53:23 +02:00
Benoit Daloze 00c33d9c23 Update to ruby/mspec@18c5a7d 2019-04-27 18:53:20 +02:00
Nobuyoshi Nakada 18eb9e5855
Use an exclusive range for ruby_version_is 2019-04-23 15:13:36 +09:00
Takashi Kokubun 4cd67a848a
Fix RUBY_REVISION spec
broken by 5da52d1210
2019-04-22 22:00:48 +09:00
nobu 1686c0d470 Add `Time#floor`
[Feature #15653]
[Fix GH-2092]

From: manga_osyo <manga.osyo@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-20 05:00:43 +00:00
nobu 3ee0648dc7 io.c: warn non-nil $,
* array.c (rb_ary_join_m): warn use of non-nil $,.

* io.c (rb_output_fs_setter): warn when set to non-nil value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-18 21:56:55 +00:00
nobu b86d87c81a Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-18 09:56:03 +00:00
marcandre 816c5323fe OpenStruct: improve error message when passing wrong number of arguments.
Patch by Lisa Ugray (issue #15515)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 13:47:24 +00:00
hsbt 3ac518f9bd Enabled to some bundler examples again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 06:05:27 +00:00
hsbt 2e8b9aba9b Skip to failing examples on ruby core repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 06:03:58 +00:00
hsbt 59fa123204 Added rspec dependency for bundler examples.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 06:02:47 +00:00
hsbt 68ddd4d300 Merge Bundler 2.1.0.pre.1 as developed version from upstream.
a53709556b

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 06:01:35 +00:00
marcandre d3da5fbd30 Proc.new: change deprecation warning for clarity (issue #15539)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-13 00:56:12 +00:00
mame 95f7992b89 Introduce beginless range [Feature#14799]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-03 08:11:41 +00:00
eregon 990df87302 Make spec for the jit feature more general and not MRI-specific
* Other implementations should not define RubyVM.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-01 20:46:10 +00:00
eregon 960d059ef7 Simplify spec as there is no easy way to tell if MJIT support is available
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-01 20:45:55 +00:00
eregon c71c59feeb Fix Float#to_s specs to not depend on the platform representation of doubles
* AIX, Solaris, etc have a different binary representation.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-01 20:35:10 +00:00
k0kubun 49f1b71144 Add some more buffer for timeout check
This spec is unstable on our CI environment:
https://gist.github.com/ko1/efa58acf4cd1d7b5bf1f63881537afe8

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-29 12:00:44 +00:00
nobu f27d4354c8 strip trailing spaces [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-29 00:59:32 +00:00
k0kubun b6c04a7ad7 Guard spec against msys2 shell
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-28 16:25:25 +00:00
k0kubun 68987d4ae1 Do not fail with --disable-jit-support
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-28 15:25:43 +00:00
eregon a28aa80c73 Update to ruby/spec@e81b3cd
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-28 14:22:29 +00:00
kazu ede77e64a7 Fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-27 23:56:14 +00:00
k0kubun 41d36d2ce2 Skip EBADF spec in MJIT test for now
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-27 13:31:36 +00:00
k0kubun 4d6e202977 Skip Bundler's test made fail by r67226
Possible fix would be https://github.com/bundler/bundler/pull/7038,
but Ruby script ending with `^~~` could be wrongly stripped by that?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-14 13:47:10 +00:00
mame 76fc1ce0a7 The combination of non-Symbol keys and Symbol keys is now allowed again
Revert r64358.  [Bug #15658]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-11 12:48:33 +00:00
nobu 19d3aaff5c Directories in RbConfig may not exist until installation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-03-05 00:28:22 +00:00
hsbt 19408c785c skip to not support color tty environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-27 12:40:19 +00:00
k0kubun f22ffd83e9 spec/../rbconfig_spec.rb: skip spec not working on MinGW
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-23 02:22:05 +00:00
k0kubun 052dbbe74f spec/../shared/write.rb: suppress random failure
due to MJIT worker's known race condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-23 02:17:54 +00:00
nobu b9357e4d1b File#birthtime depends on the kernel version on Linux
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-22 06:07:30 +00:00
eregon da7976235f Update to ruby/spec@7a16e01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-21 15:38:59 +00:00
eregon 92d3a72624 Update to ruby/mspec@2ee5661
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-21 15:38:36 +00:00
hsbt 7c2bbd1c7d Adjust the rubycop rules of Bundler upstream repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-20 10:43:23 +00:00
nobu c3e0244efe Revise the example on OpenBSD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-20 08:09:32 +00:00
ko1 8ed1709616 fix rubyspec test to pass tests. please revisit it @nobu?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-20 07:46:15 +00:00
marcandre b7f8996813 * spec/ruby: Tweak Enuemrator::Chain#rewind spec so that arity of block matches what is yielded
Calling `and_yield(*args)` adds an implicit expectation that all the `args` are passed to a block that can accept them, even though blocks that are not lambda-like don't mind extra arguments.
It so happens that this spec passed on Ruby 2.6.1 See [Bug #15613]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-20 04:39:56 +00:00
hsbt d04963501b Use ENV["BUNDLE_GEM"] instead of gem command provided by system ruby.
It break the examples of bundler. Because some examples detect the
  different version of system ruby than test target version like trunk.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-18 13:33:25 +00:00
hsbt bef0c0a367 Fixup r66984. It breakes bundler's examples.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-18 09:53:13 +00:00
hsbt 3661d0521f The ruby core applied the difference structure from bundler upstream repository. We need to modify a configuration for test-bundler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-18 09:46:25 +00:00
eregon 2f1bf4fae3 Accept a third value for NaNs, as produced by the Sun Studio C Compiler
* See http://rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-trunk/log/20190211T142523Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-11 21:57:10 +00:00
eregon 713279550a Fix specs for yield in singleton class being deprecated
* Use eval to trigger warning only when the method is called.
* Suppress warnings and clarify this will be removed in 3.0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-07 16:40:27 +00:00
eregon 75334db3c6 Update to ruby/spec@6cf8ebe
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-07 16:35:33 +00:00
eregon 820f99791e Update to ruby/mspec@231e2ce
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-07 16:35:03 +00:00
eregon c1f0daeb6a Make sure to wait with IO.select before using Socket#accept_nonblock and recvfrom_nonblock
* On all platforms, as this is the recommended code pattern.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-05 10:19:29 +00:00
eregon 920b924e56 Make sure to wait with IO.select before using Socket#recvfrom_nonblock
* On all platforms, as this is the recommended code pattern.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-05 09:58:50 +00:00
eregon 8552ee87b6 Pass the Array from select() to Socket.udp_server_recv
* As mentioned in the documentation.
* Use Array#size instead of #count, it's more common.
* Use :unset, it clarifies things if the specs fails.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-05 09:50:11 +00:00
hsbt 0fadb48498 Ignore to add bundler lib direcotry if it is same as rubylibdir.
[Bug #15469][ruby-core:90742]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-05 04:58:46 +00:00
samuel c7628071b0 Make sure to wait for socket to be readable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-05 02:19:51 +00:00
ko1 0c18a3d982 add debug code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-04 06:12:27 +00:00
hsbt 8cca079d3b Fixup r66984. Update the location of bundler gemspec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-02 10:41:22 +00:00
nobu 2a4c87dc31 Add refinements support to method/instance_method.
[Fix GH-2034]

From: manga_osyo <manga.osyo@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-28 11:45:21 +00:00
eregon 42921458ff Update to ruby/spec@e57f49c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-27 13:12:39 +00:00
eregon 4487562da1 Update to ruby/spec@e2fbd4d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-20 21:25:08 +00:00
eregon 6204e0804b Update to ruby/spec@35a9fba
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-20 20:38:57 +00:00
eregon 58573c33e4 Update to ruby/mspec@e9a482d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-20 20:38:27 +00:00
nobu d25a27abba call rb_str_modify to make a copy unshared
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-17 00:36:08 +00:00
shyouhei d154bec0d5 setbyte / ungetbyte allow out-of-range integers
* string.c: String#setbyte to accept arbitrary integers [Bug #15460]

* io.c: ditto for IO#ungetbyte

* ext/strringio/stringio.c: ditto for StringIO#ungetbyte



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-15 06:41:58 +00:00
nobu 056c24d398 RbConfig::CONFIG never had "exeext"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-12 04:53:09 +00:00
nobu 0a5655a5be Drop whole examples
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-11 09:36:49 +00:00
nobu 8197abf9aa Fix r66791
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-11 08:44:41 +00:00