aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/support/path.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge bundler-2.2.0.rc.2Hiroshi SHIBATA2020-10-151-18/+2
|
* s/sys_exec!/sys_execDavid Rodríguez2020-06-181-1/+1
|
* [rubygems/rubygems] Support running specs against a tarballDavid Rodríguez2020-06-051-6/+16
| | | | | | | | | | | | | When bundler specs are run from a ruby tarball (ruby-core does this), there's no git folder, so `git ls-files` fails. Support this case by making specs rely on the list of files from the bundler gemspec instead, and invert the spec that makes sure we ship the right set of files. As per the other quality specs, skip them in this case. https://github.com/rubygems/rubygems/commit/b28d5ec931
* [rubygems/rubygems] Remove unintended extra spaceDavid Rodríguez2020-06-051-1/+1
| | | | https://github.com/rubygems/rubygems/commit/1cc02930f3
* Revert "Fix a error in a `before(:suite)` hook"Hiroshi SHIBATA2020-06-051-18/+0
| | | | This reverts commit 67d2a715ca35090fbb3ab13df5b7348b1807dd47.
* Fix a error in a `before(:suite)` hookKazuhiro NISHIYAMA2020-05-251-0/+18
| | | | | | | | | | | https://github.com/ruby/actions/runs/703745101?check_suite_focus=true#step:16:27 ``` An error occurred in a `before(:suite)` hook. Failure/Error: contents = File.read(version_file) Errno::ENOENT: No such file or directory @ rb_sysopen - /home/runner/work/actions/actions/snapshot-master/tmp/1/bundler-2.2.0.dev/lib/bundler/version.rb ```
* Revert 1f011cccb16ca9e8ee378cb5a9d4c14459afd68cHiroshi SHIBATA2020-05-221-1/+0
|
* Sync Bundler PR #3624Hiroshi SHIBATA2020-05-221-15/+84
|
* Skip some tests if extracted from tarball (again)Kazuhiro NISHIYAMA2020-05-181-0/+4
| | | | ref 9aa75795f9f438d5c874d8e418c3c7cdd63024fa
* Use the gemspec in build_dir directlyHiroshi SHIBATA2020-05-141-4/+0
|
* Resolved the file path of gemspec for ruby core repositoryHiroshi SHIBATA2020-05-131-0/+4
|
* Update the bundler version with master branchHiroshi SHIBATA2020-05-131-31/+26
|
* Fixed test failures with gem command path on ruby core repo.Hiroshi SHIBATA2019-12-151-1/+5
|
* Prepare to release bundler-2.1.0Hiroshi SHIBATA2019-12-151-12/+13
|
* Fix glob base in bundler.gemspecKazuhiro NISHIYAMA2019-11-191-1/+2
|
* Skip some tests if extracted from tarballKazuhiro NISHIYAMA2019-11-191-0/+9
|
* Merge Bundler 2.1.0.pre3 released versionHiroshi SHIBATA2019-11-131-1/+1
|
* Merge Bundler 2.1.0.pre.3Hiroshi SHIBATA2019-11-111-2/+2
| | | | | | | | | | | | | | | 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)
* [bundler/bundler] Share test fixtures with parallel_testsHiroshi SHIBATA2019-08-211-1/+1
| | | | https://github.com/bundler/bundler/commit/a38161c5be
* [bundler/bundler] Parallelize test suiteDavid Rodríguez2019-08-211-1/+8
| | | | https://github.com/bundler/bundler/commit/23007cb107
* [bundler/bundler] Fix a couple of typosDavid Rodríguez2019-08-211-1/+1
| | | | https://github.com/bundler/bundler/commit/52b6b94068
* Fix some bundler specs (#2380)David Rodríguez2019-08-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [bundler/bundler] Extract a `gemspec_dir` helperDavid Rodríguez2019-08-171-0/+4
| | | | https://github.com/bundler/bundler/commit/71a29e286a
* [bundler/bundler] Extract a `root_gemspec` local variableDavid Rodríguez2019-08-171-3/+4
| | | | https://github.com/bundler/bundler/commit/a4beba4cbf
* [bundler/bundler] Extract a `with_root_gemspec` helperDavid Rodríguez2019-08-171-0/+12
| | | | https://github.com/bundler/bundler/commit/f20c2bdf6a
* [bundler/bundler] Extract a `lib_tracked_files` path helperDavid Rodríguez2019-08-171-0/+4
| | | | https://github.com/bundler/bundler/commit/028dc46f5a
* [bundler/bundler] Extract a `tracked_files` path helperDavid Rodríguez2019-08-171-0/+4
| | | | https://github.com/bundler/bundler/commit/d35e31d2e0
* [bundler/bundler] Always use `--backtrace` when invoking `gem` CLIDavid Rodríguez2019-08-171-1/+1
| | | | | | For debuggability. https://github.com/bundler/bundler/commit/ac3e8db658
* [bundler/bundler] Extract a `gem_bin` path helperDavid Rodríguez2019-08-171-0/+4
| | | | https://github.com/bundler/bundler/commit/8eedbecac0
* [bundler/bundler] Move `lib` helper together with path helpersDavid Rodríguez2019-08-171-0/+4
| | | | https://github.com/bundler/bundler/commit/f2df73bdb4
* [bundler/bundler] Remove duplicated methodDavid Rodríguez2019-08-171-4/+0
| | | | https://github.com/bundler/bundler/commit/afdacd62ac
* [bundler/bundler] Revert "make system_bundle_bin_path helper and resolve ↵David Rodríguez2019-08-161-4/+0
| | | | | | | | | | | | | | 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
* [bundler/bundler] The keys for RbConfig::CONFIG was String.Hiroshi SHIBATA2019-08-031-2/+3
| | | | https://github.com/bundler/bundler/commit/ffc5e76335
* [bundler/bundler] Fix file:// handling under WindowsDavid Rodríguez2019-08-031-2/+3
| | | | | | | | | | | | | 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
* [bundler/bundler] Normalize file:// handling in specsDavid Rodríguez2019-08-031-0/+8
| | | | https://github.com/bundler/bundler/commit/5946d62ad0
* Merge Bundler 2.1.0.pre.1 as developed version from upstream.hsbt2019-04-141-1/+1
| | | | | | https://github.com/bundler/bundler/commit/a53709556b95a914e874b22ed2116a46b0528852 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixup r66984. Update the location of bundler gemspec.hsbt2019-02-021-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge Bundler 2.0.1 from upstream.hsbt2019-01-041-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Downgrade Bundler 1.17.x from 2.0.0.hsbt2018-12-111-1/+1
| | | | | | | | We have the platform issue on heroku: * https://gist.github.com/schneems/26452540f6e2bbbcf2ea144f45f6b305 * https://github.com/heroku/heroku-buildpack-ruby/issues/833 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use stub executables generated by RubyGems istead of original executables.hsbt2018-11-251-1/+1
| | | | | | | | | | | | It resolved the conflict issues when invoking `gem i rdoc` and the binstub issues with Bundler and Rails. [Bug #5060][ruby-core:38257][Fix GH-2023] * https://github.com/rubygems/rubygems/pull/2338 * https://github.com/heroku/heroku-buildpack-ruby/issues/829 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge Bundler-2.0.0.pre1 from upstream.hsbt2018-11-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added bundler as default gems. Revisit [Feature #12733]hsbt2018-11-021-0/+126
| | | | | | | | | | | * bin/*, lib/bundler/*, lib/bundler.rb, spec/bundler, man/*: Merge from latest stable branch of bundler/bundler repository and added workaround patches. I will backport them into upstream. * common.mk, defs/gmake.mk: Added `test-bundler` task for test suite of bundler. * tool/sync_default_gems.rb: Added sync task for bundler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Postponing the Bundler merge.hsbt2017-12-221-128/+0
| | | | | | | I faced a big issue about Bundler with ruby core. I have no time to resolve it issue before 2.5 final release. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update bundled bundler to 1.16.0.hsbt2017-11-011-1/+9
| | | | | | | * lib/bundler, spec/bundler: Merge bundler-1.16.0. * common.mk: rspec examples of bundler-1.16.0 needs require option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* spec/bundler/support: paths for ruby corenobu2017-09-091-28/+14
| | | | | | | | | | | | | * spec/bundler/support/path.rb (Spec::Path#for_ruby_core?): helper method to tell whether running in Ruby Core or not. * spec/bundler/support/helpers.rb (Spec::Helpers#bundle): use Path.bindir for ruby core case. * spec/bundler/support/rubygems_ext.rb (Spec::Rubygems.setup): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge bundler to standard libraries.hsbt2017-09-081-0/+134
rubygems 2.7.x depends bundler-1.15.x. This is preparation for rubygems and bundler migration. * lib/bundler.rb, lib/bundler/*: files of bundler-1.15.4 * spec/bundler/*: rspec examples of bundler-1.15.4. I applied patches. * https://github.com/bundler/bundler/pull/6007 * Exclude not working examples on ruby repository. * Fake ruby interpriter instead of installed ruby. * Makefile.in: Added test task named `test-bundler`. This task is only working macOS/linux yet. I'm going to support Windows environment later. * tool/sync_default_gems.rb: Added sync task for bundler. [Feature #12733][ruby-core:77172] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e