| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This way, it can be reset in #missing_specs?
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Handle missing socket when warning about OpenSSL version
### What was the end-user problem that led to this PR?
Stubbing Rubygems requests with WebMock was causing `undefined method 'io' for nil:NilClass` errors when using Bundler 1.16.0.pre.1
### What was your diagnosis of the problem?
My diagnosis was that the new warning text about old OpenSSL versions didn't consider the case that a connection might not have an `@socket` variable set.
### What is your fix for the problem, implemented in this PR?
Guard against this by returning early in that case.
### Why did you choose this fix out of the possible options?
I chose this fix because it works, and because `Net::HTTP` itself has some guards in it around `nil` values for `@socket` ([example](https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L858-L860)). This isn't my area, though, so it could be that a fix is needed in WebMock, not here...
|
|/ |
|
|\ |
|
|/ |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add documentation for packaging with --no-install
### What was the end-user problem that led to this PR?
I need to package gems for deployment but don't want to install them on the local system.
### What was your diagnosis of the problem?
The behaviour is a part of bundler but it is not documented anywhere in man pages or the bundler site. To find the answer, one has to look at issues that were closed a few years ago.
### What is your fix for the problem, implemented in this PR?
I've updated the man page for the `bundle package` command. Hopefully, this will trickle down to bundler site pages for package command whenever CI publishes it.
Followed the doc [here](https://github.com/bundler/bundler/blob/master/doc/documentation/WRITING.md) to run tests.
### Why did you choose this fix out of the possible options?
It felt appropriate to document a flag available on a CLI in its help pages.
|
| | |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Support bundle_path used by war files generated with jruby's warbler
### What was the end-user problem that led to this PR?
Issue #5975. The problem was that recent code to detect a bad bundle_path by looking for the PATH_SEPARATOR character broke when running from a war file generated by jruby's warbler.
### What was your diagnosis of the problem?
My diagnosis was that the path separator used was not appropriate in this circumstance.
### What is your fix for the problem, implemented in this PR?
My fix implements the suggestion from @segiddins to use the same path splitting logic used by RubyGems under jruby to determine if the bad path is present.
### Why did you choose this fix out of the possible options?
I chose this fix because it provides a way to detect the original problem that is consistent with the handling within RubyGems.
|
| |
| |
| |
| | |
method in the bundle path regex specs
|
| | |
|
| |
| |
| |
| | |
constructor
|
| |
| |
| |
| | |
style guide while retaining the explanatory comments
|
| | |
|
| |
| |
| |
| | |
the file under ruby 1.8
|
| |
| |
| |
| | |
that rely on a ruby >= 1.9 style regex
|
| | |
|
| | |
|
| |
| |
| |
| | |
displaying the bundle_path error for a RubyGems version earlier than 2.0
|
| | |
|
| | |
|
| |
| |
| |
| | |
bundle_path in order to work with jruby-generated war files. Fixes issue 5975
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
[CLI] Prettify the output in cli_help
### What was the end-user problem that led to this PR?
The problem was the new help output for `bundle` was very verbose and unorganized, making it look a bit like work vomit.
### What was your diagnosis of the problem?
My diagnosis was we should
Closes https://github.com/bundler/bundler/issues/5963.
### What is your fix for the problem, implemented in this PR?
My fix prints the full version info, as well as grouping the commands into `primary` and `utility` as done in the man pages.
### Why did you choose this fix out of the possible options?
I chose this fix because it makes the output pleasing to visually parse.
```
$ bundle
Bundler version 1.15.4 (2017-08-25 commit 3203fdd2a)
Bundler commands:
Primary commands:
bundle install [OPTIONS] # Install the current environment to the system
bundle update [OPTIONS] # Update the current environment
bundle package [OPTIONS] # Locks and then caches all of the gems into vendor/cache
bundle exec [OPTIONS] # Run the command in context of the bundle
bundle config NAME [VALUE] # Retrieve or set a configuration value
bundle help [COMMAND] # Describe available commands or one specific command
Utilities:
bundle add GEM VERSION # Add gem to Gemfile and run bundle install
bundle binstubs GEM [OPTIONS] # Install the binstubs of the listed gem
bundle check [OPTIONS] # Checks if the dependencies listed in Gemfile are satisfied by currently installed gems
bundle console [GROUP] # Opens an IRB session with the bundle pre-loaded
bundle doctor [OPTIONS] # Checks the bundle for common problems
bundle env # Print information about the environment Bundler is running under
bundle gem NAME [OPTIONS] # Creates a skeleton for creating a rubygem
bundle info GEM [OPTIONS] # Show information for the given gem
bundle init [OPTIONS] # Generates a Gemfile into the current working directory
bundle issue # Learn how to report an issue in Bundler
bundle licenses # Prints the license of all gems in the bundle
bundle lock # Creates a lockfile without installing
bundle open GEM # Opens the source directory of the given bundled gem
bundle outdated GEM [OPTIONS] # List installed gems with newer versions available
bundle platform [OPTIONS] # Displays platform compatibility information
bundle plugin # Manage the bundler plugins
bundle pristine [GEMS...] # Restores installed gems to pristine condition from files located in the gem cache. Gem installed from a git reposit...
bundle show GEM [OPTIONS] # Shows all gems that are part of the bundle, or the path to a given gem
bundle version # Prints the bundler's version information
Options:
[--no-color] # Disable colorization in output
-r, [--retry=NUM] # Specify the number of times you wish to attempt network commands
-V, [--verbose], [--no-verbose] # Enable verbose output mode
```
|
| | | |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
[2.0] Automatically bundle clean without a path set
### What was the end-user problem that led to this PR?
The problem was with the switch to defaulting to a local install in 2.0, we're concerned about taking up too much disk space.
### What was your diagnosis of the problem?
My diagnosis was we'd like to run `bundle clean` when possible.
Closes https://github.com/bundler/bundler/issues/5875.
### What is your fix for the problem, implemented in this PR?
My fix runs `clean` automatically on 2.0 when a `path` has _not_ been set.
### Why did you choose this fix out of the possible options?
I chose this fix because it avoids the possibility of accidentally cleaning a shared location.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
[Rakefile] Add a task to generate GitHub releases
### What was the end-user problem that led to this PR?
The problem was we spend all this time writing up an awesome changelog, yet don't have proper GitHub releases.
Closes https://github.com/bundler/bundler/issues/4904.
### What was your diagnosis of the problem?
My diagnosis was we needed to automate creating new GH releases, and tie that into the existing `rake release` process.
I've already taken the liberty of backfilling existing releases, see https://github.com/bundler/bundler/releases/tag/v1.14.5 for an example
|
| | |/
| |/| |
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
r=segiddins
Convert pristine command desc to long_desc
What was the end-user problem that led to this PR?
--------------------------------------------------
When taking a look at the output that was shown when doing `bundle cli_help`, half of the output for describing the `bundle pristine` command is truncated.
What was your diagnosis of the problem?
---------------------------------------
My diagnosis was that we had to long of a "basic description" (`desc`) for the `bundle pristine` command.
What is your fix for the problem, implemented in this PR?
---------------------------------------------------------
Convert the existing `desc` to a `long_desc`, and provide a shorter one for `desc`.
Why did you choose this fix out of the possible options?
--------------------------------------------------------
I chose this fix because it retained the same info that was there previously, but provided a much more terse description in summary like situations like `bundle cli_help`.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The default command description for `bundle pristine` was way too long
for simple description, and can trail off far beyond when called from
`bundle cli_help`.
That said, this is perfect info for a `long_desc`, so the current
content has been moved there, and the regular desc was a trimmed version
of that.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Warn when making an outdated TLS connection to rubygems.org
Right now, output looks like
```
Your Ruby version does not support TLSv1.1 or newer, which will be required to connect to https://index.rubygems.org by June 2018.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 11.3.0
Using automatiek 0.1.2 from source at `.`
Using rspec-support 3.5.0
Using diff-lcs 1.3
Using bundler 1.15.0.pre.3
Using rspec-core 3.5.4
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Using rspec 3.5.0
Bundle updated!
```
Obviously this requires tests, and also backing out forcing the TLS version (which I did to make testing easier). The message could also use improvement, but I figured I'd ask for input from @indirect and @dwradcliffe
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Default to packaging all on 2.0
This is going to be the last set of changes to defaults in Bundler 2.
@colby-swandale @indirect are there other changes I should be making here?
|
| | | | |
|
| | |/
| |/| |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Update Molinillo to 0.6.2
### What was the end-user problem that led to this PR?
The problem was Molinillo 0.6.2 fixes a potential problem.
### What is your fix for the problem, implemented in this PR?
My fix is to update to Molinillo 0.6.2.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix bundle binstubs stanadlone flag
### What was the end-user problem that led to this PR?
Currently, specifying the `--standalone` flag breaks `bundler binstubs` unless you have the `path` setting set in your bundle config. This is breaking in different ways but mostly for the same reason.
Bundler Master:
```
RuntimeError: Can't standalone without an explicit path set
/Users/c/Desktop/Projects/bundler/lib/bundler/installer.rb:158:in `generate_standalone_bundler_executable_stubs'
/Users/c/Desktop/Projects/bundler/lib/bundler/cli/binstubs.rb:36:in `block in run'
/Users/c/Desktop/Projects/bundler/lib/bundler/cli/binstubs.rb:26:in `each'
```
Bundler 1.15.4:
```
TypeError: no implicit conversion of nil into String
/Users/c/.rubies/ruby-2.4.1/lib/ruby/2.4.0/pathname.rb:409:in `initialize'
/Users/c/.rubies/ruby-2.4.1/lib/ruby/2.4.0/pathname.rb:409:in `new'
/Users/c/.rubies/ruby-2.4.1/lib/ruby/2.4.0/pathname.rb:409:in `join'
/Users/c/.gem/ruby/2.4.1/gems/bundler-1.15.4/lib/bundler/installer.rb:142:in `generate_standalone_bundler_executable_stubs'
```
This was not caught in our tests because the `--standalone` flag was infact not being tested.
Another issue is that we have command options for the `bundle binstubs` command which are missing documentation in the man pages.
### What was your diagnosis of the problem?
This error occurs when the `path` setting is not set which `generate_standalone_bundler_executable_stubs` expects to be set
### What is your fix for the problem, implemented in this PR?
Set a temporary path setting in the binstubs command of either any currently set `path` setting or use `Bundler.root` instead.
### Why did you choose this fix out of the possible options?
This was the most simplest solution that i can think of without having to change the standalone binstub generator.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Also move the bundler-install standalone flag tests into the the bundle
install tests
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When the locked bundler is under 2.0, allow any version < 2
### What was the end-user problem that led to this PR?
The problem was the bin stub would lock to a specific version even for a 1.x version, which was an incompatible change.
See @indirect's comment in https://github.com/rubygems/rubygems/pull/1977#issuecomment-322852799
### What was your diagnosis of the problem?
My diagnosis was we needed to only pin to a specific version for 2.0+.
### What is your fix for the problem, implemented in this PR?
My fix transforms any 1.x bundler version to a "< 2" constraint.
|