| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This will eventually support other tests, so the dylib test needs to be
able to to meaningfully return an empty result
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This new command, doctor, checks for common problems.
Currently, it looks for broken dynamic library links in C
extensions.
It scans all of the specifications in the bundle for .bundle files in C
extensions. If any of the dynamic libraries linked against no longer
exist, bundler will report a message to the console.
|
|/ |
|
| |
|
| |
|
|
|
|
| |
Fixes #4586
|
|
|
|
| |
It allows commands to be executed via `.kernel_load` on JRuby
|
|\
| |
| |
| |
| |
| | |
Re-integrate 1-99-dev into master
@indirect please make sure I didn't miss anything here?
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Getting caught up on missing update_specs, realized `--strict` flagged
wasn't being passed through. Fixed.
|
| |
| |
| |
| |
| | |
This shouldn't ever surface to the user, would be the result of a coding
mistake.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
UpdateOptions which was then renamed to DependencySearch is now called
GemVersionPromoter, cuz I can't name this damn class. It's in its own
file now, so there's that.
I took a shot at moving Resolver#search_for into it, but had naively
overlooked a few instance variables and such and it just didn't make as
much sense as I'd first envisioned. Probably some other smaller classes
in between perhaps.
GemVersionPromoter class now caching its results, too, and I moved out
the return from it back into Resolver as it made more sense there. As a
standalone class, it may make sense to have this actually implement
:major sorting, but maybe later.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Prior commit added in the code but it only worked in the default :major
case by staying out of the way, so it at least didn't break existing
functionality. But the GemsToPatch class hadn't been brought over from
bundler-patch yet, so none of the patch/minor code could work as it was
referencing an ivar that didn't exist yet.
Bundler-patch not only will handle an update to whatever is the latest
patch/minor version, but will also handle an update to a version
specified in an advisory from ruby-advisory-db. At this point I don't
believe we'll be adding the advisory behavior to Bundler proper, so this
commit can bring over simply the array of gem names being updated
without the GemsToPatch class or the extra sorting code that takes a
specific version number into account.
With these simplifications, the starter update_spec can run without
exception, though for some reason it's behaving as if the :minor level
were specified, instead of :patch.
Rather than keep debugging from an integration level, it's time to start
bringing over resolver tests.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
First shot adding new update CLI options and passing those through
Definition into Resolver where they're needed.
I opted for three separate options to reduce typing, vs. a --level
[patch|minor|major].
It's a little painful merely extending parameter lists in places, but
bigger refactorings prolly be more painful.
|
|/ |
|
|\
| |
| |
| |
| |
| | |
[Plugin] Source plugins
Adds source plugin. This is in continuation of #4608.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add `bundle add` command to add gems into the Gemfile
Continuing the work done to implement `bundle add GEM` from bundler/bundler#4546
To do:
- [x] Cherry-pick commit from @ognevsky
- [x] Run specs
- [x] Use Bundler.definition to resolve `last_version_number`
- [x] Pattern `bundle add` implementation after `bundle inject`
- [x] Add option to specify added gem's `group`
- [x] Add option to specify added gem's `source`
- [x] Modify existing specs & add additional specs
@RochesterinNYC
---
Closes #4546
|
| | |
| | |
| | |
| | | |
Add additional specs for `--pre` flag
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add aliases for method options
Rename flag for timestamp
|
| | |
| | |
| | |
| | |
| | | |
Remove pry
Fix rubocop offenses
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Change option name to `append-timestamp`, and made option checking more
readable
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fix useless assignment
Remove useless spec
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Print an outdated warning when a project is locked to an old version of Bundler
@indirect @RochesterinNYC
I'm a bit stumped.
The original issue on bundler/bundler#4707 mentions that this warning should only be printed once unless the user updates their version of Bundler, and that the warned version should be stored in `Bundler.settings[:warned_version]`.
The issue is that, AFAIK, this file, `postit_trampoline.rb` is the last place where I can access both the `installed_version` (system version) and the `running_version` (project's version) of Bundler before it completely switches over to the `running_version`.
Since `Bundler.settings` still hasn't been initialized at this point, I can't store the `running_version` in `Bundler.settings[:warned_version]`.
Right now, this warning is shown every time a `bundle` command is issued in a project directory where `installed_version != running_version`.
Is there any other way I can store the warned version from this file?
---
Closes #4707
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add TODO to change to warn in 2.0
`dup` string for old rgv
`dup` string for old rgv
|
| | |
| | |
| | |
| | | |
Remove space
|
| | | |
|
| | | |
|
|/ / |
|
|/
|
|
|
|
|
|
|
|
|
| |
Given current working directory `/foo/app`, when you install with
`--path /foo/app_cache`, ensure that the messaging says:
Bundled gems are installed into /foo/app_cache
instead of the incorrect:
Bundled gems are installed into ._cache
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
[bundle] Automatically trampoline to postit
- [x] Specs
~~Except on bundle exec, since that would be too slow~~
~~If you want, I guess we could vendor postit and manually setup the `LOAD_PATH` and `-r` the full path to the vendored postit exe. Your call.~~ Done this
\c @indirect
|
| | |
|
| | |
|
| | |
|
|\| |
|