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

951 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Evans 27144de2bd Fix documentation for ENV.each to return ENV
Also have spec check that it returns ENV.

Mostly from burdettelamar@yahoo.com (Burdette Lamar).

Fixes [Bug #16164]
2019-09-20 12:18:07 -07:00
Hiroshi SHIBATA 67a6662032
Removed Scanf from the ruby repository. 2019-09-20 12:43:11 +09:00
Hiroshi SHIBATA a3b8501614
Removed CMath from the ruby repository. 2019-09-20 12:31:37 +09:00
Nobuyoshi Nakada e6378cdcd8
Allow calling a private accessor with `self.`
[Feature #11297] [Feature #16123]
2019-09-20 02:21:37 +09:00
Nobuyoshi Nakada d583df5259
Added version guard
[Feature #11297] [Feature #16123]
2019-09-20 02:21:25 +09:00
Dylan Thacker-Smith 7fbd2f7cc2
Allow calling a private method with `self.`
This makes it consistent with calling private attribute assignment
methods, which currently is allowed (e.g. `self.value =`).

Calling a private method in this way can be useful when trying to
assign the return value to a local variable with the same name.

[Feature #11297] [Feature #16123]
2019-09-20 02:20:59 +09:00
Hiroshi SHIBATA 7d354175d7
Fixed up ccbfb054b1 2019-09-18 18:26:33 +09:00
Hiroshi SHIBATA 2da8574930
Fixed the rubocop warnings 2019-09-18 18:26:33 +09:00
David Rodríguez effacde2c0
[bundler/bundler] Merge all `bundle check --path` specs
And skip them all for bundler 3.

https://github.com/bundler/bundler/commit/b88936cdc2
2019-09-18 18:26:33 +09:00
Bundlerbot 434af7303c
[bundler/bundler] Merge #7340
7340: Fix bundle clean issue r=deivid-rodriguez a=deivid-rodriguez

### What was the end-user problem that led to this PR?

The problem was that `bundle clean` is crashing under some conditions.

### What was your diagnosis of the problem?

My diagnosis was that sometimes (when the bundle includes git sourced gems with extensions), it assumes that some paths exist, but they don't.

### What is your fix for the problem, implemented in this PR?

My fix is to ignore those paths.

### Why did you choose this fix out of the possible options?

I chose this fix because it fixes the issue.

Fixes #7338.

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
(cherry picked from commit b007fde67c77c1f15f13b97eda186644c2a2be04)

https://github.com/bundler/bundler/commit/3766053507
2019-09-18 18:26:33 +09:00
David Rodríguez e6ad9452b6
[bundler/bundler] Fix remembered flag deprecation message
It was suggested a deprecated command as a fix.

https://github.com/bundler/bundler/commit/e330a9a34f
2019-09-18 18:26:33 +09:00
Samuel Giddins 4f2f6aeb5f
[bundler/bundler] Add a spec for installing git deps after packaging w/o git
https://github.com/bundler/bundler/commit/65351c58b8
2019-09-18 18:26:32 +09:00
David Rodríguez 0c6529bac2
[bundler/bundler] Revert "Add all platforms to lockfile by default"
This reverts commit 3dc509e645abb497e4dc92a7c42be471ff87db0b.

https://github.com/bundler/bundler/commit/b5766564fb
2019-09-18 18:26:32 +09:00
David Rodríguez 6f16ededdd
[bundler/bundler] Revert "Remove now meaningless warning"
This reverts commit 00b095b98fe4bd44950beaf3bc9f1d91eac7b69e.

https://github.com/bundler/bundler/commit/e93bce3b20
2019-09-18 18:26:32 +09:00
Takayuki Nakata c27aaf1a8f
[bundler/bundler] Fix comments and messages to refer to https url
https://github.com/bundler/bundler/commit/a86b49f1b9
2019-09-18 18:26:32 +09:00
David Rodríguez b9996803f7
[bundler/bundler] Remove duplicated spec filter
https://github.com/bundler/bundler/commit/b7fc6f4187
2019-09-18 18:26:32 +09:00
David Rodríguez a29ead52e1
[bundler/bundler] Deprecate `--path` flag to `bundle check`
https://github.com/bundler/bundler/commit/0a0e7cf5ec
2019-09-18 18:26:32 +09:00
Nobuyoshi Nakada 751d4ab9c2
Refine Timezone fixture 2019-09-15 21:55:34 +09:00
Yusuke Endoh cce6cfbe48 Make test-all and test-spec runnable on Android
Calling some syscall functions such as Dir.chroot causes SIGSYS instead
of EPERM on Android.
This change skips all tests that stops the test-suite run.
2019-09-09 20:24:03 +09:00
Benoit Daloze b10940a839 Improve Proc#to_s specs 2019-09-08 12:41:14 +02:00
Nobuyoshi Nakada aedf6946a7
Removed useless braces to suppress a warning 2019-09-08 12:54:06 +09:00
Benoit Daloze 324dd9d01f armv7l and armv7l are the same platform, generalize to armv7
[Bug #16007]
2019-09-07 12:53:47 +02:00
David Rodríguez 2a166cfea2 Add `File.absolute_path?` (#2198)
In order to check whether a path is absolute or not in a portable way.

[Feature #15868]
2019-09-05 20:00:50 +09:00
Jeremy Evans 4a3972c261 Remove bad expectation in spec
This spec should not be checking where methods are defined, only
that the method works as expected (returns a Lazy instance).
2019-09-03 11:30:49 -07:00
Nobuyoshi Nakada 6f206b8ec6
Prohibit nul-separated glob pattern [Feature #14643] (#2419) 2019-09-02 15:08:53 +09:00
Hiroshi SHIBATA 1756ec2065
Ignore the all of warnings with inline_spec.rb of bundler examples. 2019-09-01 08:56:00 +09:00
Jeremy Evans 3463e83192 Warn for keyword to last hash parameter when method has no optional/rest parameters
Previously, there was no warning in this case, even though we will
be changing the behavior in Ruby 3.

Fixes [Bug #14130]
2019-08-30 19:25:46 -07:00
Jeremy Evans b5b3afadfa Fix a couple of bundler issues with keyword argument separation
There are more issues than this, but hopefully this is enough
to get make test-bundler passing in CI.
2019-08-30 12:39:31 -07:00
Jeremy Evans a810f6cbef Update specs to handle non-Symbols for keyword splats in 2.7
Also handle some warnings for behavior that will change in 3.0.
2019-08-30 12:39:31 -07:00
Yusuke Endoh ba9adcc175 spec/ruby/core/unboundmethod/bind_call_spec.rb: Add ruby_version_is guard 2019-08-30 11:49:42 +09:00
Yusuke Endoh 09c940b17f spec/ruby/core/unboundmethod/bind_call_spec.rb: Added
For UnboundMethod#bind_call [Feature #15955] introduced in
002e592e0d67bb0271d16314a32380ad947c9ae9.
2019-08-30 11:13:00 +09:00
Nobuyoshi Nakada d3e0bc07e2
Fixed a comment [ci skip]
A range literal in conditional expression is turned into a
flip-flop, as a Range object is never falsy and does not make a
sense.
2019-08-29 11:23:16 +09:00
Nobuyoshi Nakada d92289cd8d
Revert "Remove warnings of flip-flop deprecation from tests and specs"
This reverts commit bf7a32d220.

flip-flop is no longer deprecated.

[Feature #5400]
2019-08-29 11:10:45 +09:00
Nobuyoshi Nakada 6a0d2bc2af
Follows callback declaration updates 2019-08-28 00:09:14 +09:00
Takashi Kokubun eaff19de2b
Fix rb_thread_create argument type
in response to the declaration change in
e3fc30564e.

Fixing the AppVeyor mswin CI failure:
https://ci.appveyor.com/project/ruby/ruby/builds/26980881/job/2j6h1qwjnbc8cpop

ref: https://github.com/ruby/ruby/pull/2404
2019-08-27 23:41:52 +09:00
Hiroshi SHIBATA d9b73dcc0d Remove github_action_linux tag from bundler examples.
Maybe it has fixed at 5a384e2c08
2019-08-23 19:05:45 +10:00
Nobuyoshi Nakada 4419b5dbc2
The investigation is going on... 2019-08-21 13:31:22 +09:00
lolwut a230e65e8b
[bundler/bundler] Freeze time to avoid failures at midnight
Specify just a string

set @built_at as nil before testing

https://github.com/bundler/bundler/commit/578ec96c9c
2019-08-21 08:10:49 +09:00
Hiroshi SHIBATA 1c2774526e
[bundler/bundler] Share test fixtures with parallel_tests
https://github.com/bundler/bundler/commit/a38161c5be
2019-08-21 08:10:49 +09:00
Hiroshi SHIBATA 10011f4371
[bundler/bundler] Try to use RunTimeLogger for parallel_tests
https://github.com/bundler/bundler/commit/faccc522d1
2019-08-21 08:10:48 +09:00
David Rodríguez ace88852f2
[bundler/bundler] Parallelize test suite
https://github.com/bundler/bundler/commit/23007cb107
2019-08-21 08:10:48 +09:00
David Rodríguez ede77d82e7
[bundler/bundler] Fix a couple of typos
https://github.com/bundler/bundler/commit/52b6b94068
2019-08-21 07:58:46 +09:00
David Rodríguez 1120bacd8b
[bundler/bundler] Remove the :ruby exclusion tag
Our current set of specs is the same for all supported rubies, and we
should keep it that way.

https://github.com/bundler/bundler/commit/c9dc0f6f2c
2019-08-21 07:58:46 +09:00
David Rodríguez bcc4ac924d
[bundler/bundler] Remove another 1.8.7 specific bit
https://github.com/bundler/bundler/commit/8c7942d2c6
2019-08-21 07:58:46 +09:00
David Rodríguez 5ea08883cf
[bundler/bundler] Remove old rubies stuff no longer needed
https://github.com/bundler/bundler/commit/36fb3287f4
2019-08-21 07:58:46 +09:00
Nobuyoshi Nakada dd58c4ba35
Investigation of a sporadic error at Github Actions 2019-08-20 16:07:43 +09:00
David Rodríguez 5a384e2c08 Fix some bundler specs (#2380)
* These seem to consistenly pass already

* Show actual command when running `make test-bundler`

Current the setup command that installs the necessary gems for testing
bundler was printed, but not the actual command that runs the tests.
That was a bit confusing.

* Borrow trick from setproctitle specs

* A title that long doesn't get set sometimes

No idea why, but the test doesn't need that the title is that long.

* Fix most gem helper spec ruby-core failures

* Fix the rest of the gem helper failures

* Fix version spec by improving the assertion

* Remove unnecessary `BUNDLE_RUBY` environment var

We can use `RUBY` when necessary, and `BUNDLE_RUBY` is not a good name
because bundler considers `BUNDLE_*` variables as settings.

* Rename `BUNDLE_GEM` to `GEM_COMMAND`

This is more descriptive I think, and also friendlier for bundler
because `BUNDLE_` env variables are interpreted by bundler as settings,
and this is not a bundler setting.

This fixes one bundler spec failure in config specs against ruby-core.

* Fix quality spec when run in core

Use the proper path helper.

* Fix dummy lib builder to never load default gems

If a dummy library is named as a default gem, when requiring the library
from its executable, the default gem would be loaded when running from
core, because in core all default gems share path with bundler, and thus
they are always in the $LOAD_PATH. We fix the issue by loading lib
relatively inside dummy lib executables.

* More exact assertions

Sometimes I have the problem that I do some "print debugging" inside
specs, and suddently the spec passes. This happens when the assertion is
too relaxed, and the things I print make it match, specially when they
are simple strings like "1.0" than can be easily be part of gem paths
that I print for debugging.

I fix this by making a more exact assertion.

* Detect the correct shebang when ENV["RUBY"] is set

* Relax assertion

So that the spec passes even if another paths containing "ext" are in
the load path. This works to fix a ruby-core issue, but it's a better
assertion in general. We just want to know that the extension path was
added.

* Use folder structure independent path helper

It should fix this spec for ruby-core.

* Fix the last failing spec on ruby-core

* Skip `bundle open <default_gem>` spec when no default gems
2019-08-20 09:46:31 +09:00
Hiroshi SHIBATA d3da1d57d3
Skip open_spec.rb:L95 because ruby repo doesn't have json as default gems. 2019-08-18 15:02:21 +09:00
David Rodríguez a77b3b4476 [bundler/bundler] Remove unnecessary require
https://github.com/bundler/bundler/commit/8ef571ed4e
2019-08-18 13:45:57 +09:00
David Rodríguez 683f9e1dbf [bundler/bundler] No need to activate the `fileutils` default gem
The version we're vendoring actually relaxed this restriction back to
2.3.0+, so we can always use the vendored version.

https://github.com/bundler/bundler/commit/d366cbfe5d
2019-08-18 13:45:45 +09:00
David Rodríguez 4756c5f7e7 [bundler/bundler] Remove unnecessary rubygems monkeypatch
Instead, make sure we always load the local copy of bundler during
specs, and never end up using the default copy.

https://github.com/bundler/bundler/commit/ac655ffeda
2019-08-18 13:45:35 +09:00
David Rodríguez 5a69a23afc [bundler/bundler] Don't use system bundler on this spec
If we use system bundler, when booting the "outermost" bundler process,
bundler will save the path to the system bundler in BUNDLE_BIN_PATH, and
use it again when booting the "innermost" bundler process (`bundle exec
echo foo`).

That means that second process will use the system bundler path again.
However, we have `-rsupport/hax` in RUBYOPT, so that file will load from
the local copy of bundler, and that file will load `bundler/version`
from the project (not from system), because -Ilib is in the LOAD_PATH.

That will end up causing redefinition errors because the same constant
will be loaded from two different locations.

In general, this is expected behavior, normally you will wrap the
process with `Bundler.with_original_env` to reset the environment.
However, the easiest fix here is to not use system bundler, because it's
not really necessary and thus doesn't help the readability of the spec.

https://github.com/bundler/bundler/commit/a3d72a34ab
2019-08-18 13:45:25 +09:00
David Rodríguez 0653d8c601 [bundler/bundler] Fix spec using the deprecated `bundle config` mode
https://github.com/bundler/bundler/commit/789dd1864f
2019-08-18 13:45:15 +09:00
David Rodríguez f753961611 [bundler/bundler] Remove a bunch of unneeded rubygems requires
https://github.com/bundler/bundler/commit/f9cb39e614
2019-08-18 13:44:46 +09:00
Zehan Zhao d80f5399ad [bundler/bundler] Fix open default gem error
https://github.com/bundler/bundler/commit/792d724752
2019-08-18 13:44:26 +09:00
David Rodríguez 98841b2b19 [bundler/bundler] Wrap `open` specs with a context
So I can add another context that doesn't run the `before` block.

https://github.com/bundler/bundler/commit/06d0acc45a
2019-08-18 13:44:22 +09:00
David Rodríguez e6e8d2d8c0 [bundler/bundler] Prefer `before` to `before :each`
https://github.com/bundler/bundler/commit/6678747fae
2019-08-18 13:44:13 +09:00
David Rodríguez cc644c7116 [bundler/bundler] Fix `bundle doctor` command
Previously `bundle doctor` would fail on any bundle that does not
include git gems or plugins. This is because the previously used
`Bundler.home` does not exist unless the bundle includes git gems or
plugins. For example, with `bundle config set path .bundle`, it points
to which does not exist unless this kind of gems exist in the Gemfile.

The name `Bundler.home` is really unfortunate, it should probably be
have more descriptive name, and be private. But for now I just want to
make `bundle doctor` usable.

https://github.com/bundler/bundler/commit/5531a18c1e
2019-08-18 13:44:03 +09:00
David Stosik a02dbcecb1 [bundler/bundler] Bundler displays a duplicate gem entries warning even if gems only appear once per group
https://github.com/bundler/bundler/commit/d18a83109e
2019-08-18 13:43:59 +09:00
David Rodríguez 08c58e3c0d
[bundler/bundler] Extract a `gemspec_dir` helper
https://github.com/bundler/bundler/commit/71a29e286a
2019-08-17 17:08:51 +09:00
David Rodríguez a2d7c97a91
[bundler/bundler] Extract yet another helper method
https://github.com/bundler/bundler/commit/948a863bd8
2019-08-17 17:08:51 +09:00
David Rodríguez 4318405609
[bundler/bundler] Extract a `root_gemspec` local variable
https://github.com/bundler/bundler/commit/a4beba4cbf
2019-08-17 17:08:51 +09:00
David Rodríguez 09455301ef
[bundler/bundler] Extract a `with_root_gemspec` helper
https://github.com/bundler/bundler/commit/f20c2bdf6a
2019-08-17 17:08:51 +09:00
David Rodríguez 20c5154f0b
[bundler/bundler] Only chdir when necessary
https://github.com/bundler/bundler/commit/07161ebc1a
2019-08-17 17:08:51 +09:00
David Rodríguez 580e093fdd
[bundler/bundler] Make sure gem has been built before deleteng it
https://github.com/bundler/bundler/commit/32520c7020
2019-08-17 17:08:51 +09:00
David Rodríguez a56bf5bfde
[bundler/bundler] Cleanup in a location independent way
https://github.com/bundler/bundler/commit/5b503a4bf1
2019-08-17 17:08:51 +09:00
David Rodríguez 9c0fcd1d0f
[bundler/bundler] Remove obvious comment
https://github.com/bundler/bundler/commit/91e7fe1b2f
2019-08-17 17:08:51 +09:00
David Rodríguez adfca752d6
[bundler/bundler] Remve another unneeded `to_s`
`FileUtils.rm` supports a `Pathname` argument.

https://github.com/bundler/bundler/commit/7d982a5be9
2019-08-17 17:08:51 +09:00
David Rodríguez 9925e1a10f
[bundler/bundler] Remove unneeded `to_s` calls
They are implicit inside `gem_command!`.

https://github.com/bundler/bundler/commit/6bdb13c899
2019-08-17 17:08:51 +09:00
David Rodríguez f88237623f
[bundler/bundler] Consistently use `Path` over `Spec::Path`
https://github.com/bundler/bundler/commit/a4cca66b79
2019-08-17 17:08:51 +09:00
David Rodríguez aef5509139
[bundler/bundler] Extract single gem installation logic
https://github.com/bundler/bundler/commit/7888d621c8
2019-08-17 17:08:51 +09:00
David Rodríguez 20af44c277
[bundler/bundler] Unalias `install_gem`
Since I plan to reuse it for something else.

https://github.com/bundler/bundler/commit/5379382198
2019-08-17 17:08:50 +09:00
David Rodríguez 6506993462
[bundler/bundler] Use `join` consistently
https://github.com/bundler/bundler/commit/096e53dfe6
2019-08-17 17:08:50 +09:00
David Rodríguez 6a299906b4
[bundler/bundler] Extract a `lib_tracked_files` path helper
https://github.com/bundler/bundler/commit/028dc46f5a
2019-08-17 17:08:50 +09:00
David Rodríguez 19dabfbe57
[bundler/bundler] Rename a variable
Otherwise I get conflicts when extracting the helper.

https://github.com/bundler/bundler/commit/314c64cd07
2019-08-17 17:08:50 +09:00
David Rodríguez c896f71577
[bundler/bundler] Extract a `tracked_files` path helper
https://github.com/bundler/bundler/commit/d35e31d2e0
2019-08-17 17:08:50 +09:00
David Rodríguez b43f4bd218
[bundler/bundler] Rename some variables
I want to extract these to path helper methods, but the name `files`
conflict with some builder methods that are also available at the same
level.

https://github.com/bundler/bundler/commit/7844096af0
2019-08-17 17:08:50 +09:00
David Rodríguez 334e615022
[bundler/bundler] Reconcile test
The `:bundler` gem is not needed in the regular repo either.

https://github.com/bundler/bundler/commit/ca5ce01a9b
2019-08-17 17:08:50 +09:00
David Rodríguez 122bc65042
[bundler/bundler] Reuse `gem_bin` helper inside `gem_command`
The logic for choosing `gem_bin` should work here too even if it's not
identical.

https://github.com/bundler/bundler/commit/6ca0271b27
2019-08-17 17:08:50 +09:00
David Rodríguez 30a4ec1fee
[bundler/bundler] Always use `--backtrace` when invoking `gem` CLI
For debuggability.

https://github.com/bundler/bundler/commit/ac3e8db658
2019-08-17 17:08:50 +09:00
David Rodríguez 91c63828f7
[bundler/bundler] Extract a `gem_bin` path helper
https://github.com/bundler/bundler/commit/8eedbecac0
2019-08-17 17:08:50 +09:00
David Rodríguez e38994d2f7
[bundler/bundler] Reuse `gem_command!` helper
https://github.com/bundler/bundler/commit/37d5dedffe
2019-08-17 17:08:50 +09:00
David Rodríguez 63d78afc2d
[bundler/bundler] Remove more dead code
https://github.com/bundler/bundler/commit/17d4d0de8e
2019-08-17 17:08:50 +09:00
David Rodríguez 2e6509498c
[bundler/bundler] Remove dead code
https://github.com/bundler/bundler/commit/cae948f514
2019-08-17 17:08:50 +09:00
David Rodríguez 3bebdda649
[bundler/bundler] Remove unnecessary rubygems require
https://github.com/bundler/bundler/commit/039604ff95
2019-08-17 17:08:50 +09:00
David Rodríguez 7af12a92c8
[bundler/bundler] Use path helpers to find bundle bin
https://github.com/bundler/bundler/commit/7985bb8e92
2019-08-17 17:08:50 +09:00
David Rodríguez 6357540945
[bundler/bundler] Fix bundle bin location in core repo
https://github.com/bundler/bundler/commit/9437568ab4
2019-08-17 17:08:49 +09:00
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 273f1f4498
Move fixture path to last path 2019-08-17 15:12:45 +09:00
Kazuhiro NISHIYAMA ccbfb054b1
Fix typos 2019-08-17 13:57:12 +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
Hiroshi SHIBATA b8d759806f [bundler/bundler] Fixup #7297
https://github.com/bundler/bundler/commit/1a0161b970
2019-08-16 14:30:23 +09:00
Hiroshi SHIBATA 8cf90a2f80 [bundler/bundler] Fixed rubocop error
https://github.com/bundler/bundler/commit/9256177446
2019-08-16 14:30:23 +09:00
tommy 3b61019a89 [bundler/bundler] Add initial Bundler::BuildMetadata Spec
https://github.com/bundler/bundler/commit/c6458b2727
2019-08-16 14:30:23 +09:00
David Rodríguez b587e8c7f1 [bundler/bundler] Add `--[no-]git` option to `bundle gem`
I think using `--no-git` can be useful when creating gems inside
monorepos.

https://github.com/bundler/bundler/commit/154c687310
2019-08-16 14:30:23 +09:00
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