summaryrefslogtreecommitdiff
path: root/lib/bundler/installer
Commit message (Collapse)AuthorAgeFilesLines
* [GemInstaller] Allow installing extensions in parallelseg-parallel-extensionsSamuel Giddins2016-12-251-2/+2
|
* [ParallelInstaller] Pre-require gem_remote_fetcher on 1.8.7seg-require-speedSamuel Giddins2016-12-211-0/+4
|
* Auto merge of #4840 - bundler:seg-unlock-locals, r=indirectHomu2016-08-091-1/+1
|\ | | | | | | | | | | | | Unlock sources when a local override leads to changes Closes #4838. Requires tests
| * Unlock sources when a local override leads to changesSamuel Giddins2016-08-051-1/+1
| |
* | [ParallelInstaller] Account for lines returning an Enumerator in old rubiesseg-installation-errorsSamuel Giddins2016-08-051-1/+1
| |
* | [ParallelInstaller] Check for proper exception classSamuel Giddins2016-08-041-1/+1
| |
* | [Installer] Move post-install messages to be an instance attributeSamuel Giddins2016-08-041-8/+2
| |
* | [ParallelInstaller] Only raise when there is an errorSamuel Giddins2016-08-041-1/+9
| |
* | [Install] Print errors at the end of installation instead of inlineSamuel Giddins2016-08-042-23/+39
|/
* [ParallelInstaller] Wrap in the Bundler namespaceseg-parallel-installer-namespaceSamuel Giddins2016-06-281-99/+101
|
* Create standalone bundler/setup.rb at a consistent path.Glenn Pratt2016-03-221-1/+1
| | | | Fixes #4274
* Add test for checking langauge of sentences used in source codeAditya Prakash2016-03-091-1/+1
|
* Merge pull request #4283 from ↵André Arko2016-02-081-0/+3
|\ | | | | | | | | RochesterinNYC/improve-error-message-invalid-gemspec-for-dependency Add helpful invalid gemspec error message for `bundle install --standalone`
| * Add helpful invalid gemspec error message for `bundle installJames Wen2016-02-071-0/+3
| | | | | | | | --standalone` when a gem/dependency has an invalid gemspec
* | [RuboCop] Update to 0.37.0seg-rubocop-0.37Samuel Giddins2016-02-051-1/+1
|/
* Compatibility with frozen string literalsSamuel Giddins2016-01-313-0/+3
|
* [Worker] Add a worker name to ease debuggingseg-thread-namesSamuel Giddins2016-01-301-1/+1
|
* Move `Bundler#ruby_version` functionality to `Bundler::RubyVersion#system`James Wen2016-01-141-1/+1
| | | | | - Part of design direction to move more functionality out of the `Bundler` top-level module.
* [RuboCop] Enable Style/PercentLiteralDelimitersSamuel Giddins2015-11-261-1/+1
|
* My goal was to reveal the main part of install_gem_from_spec. From myAndreas Hellwig2015-10-272-1/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | perspective the main part is: 1. Install 2. Generate stubs 3. Print message to the user (4. handle exceptions) While working on it I found that Bundler::Installer's run method and instance variables weren't used when installing gems with install_gem_from_spec. The installer was (and still is) only used to generate executable stubs. So I inserted the new GemInstaller in ParallelInstaller; passing the instantiated Bundler::Installer to the GemInstaller only to generate the executable stubs. Based on this I would continue by extracting two BinstubGenerator classes and removing GemInstaller's dependency on Bundler::Installer, possibly allowing for a more concise way to generate binstubs in other parts of bundler. I was a bit intimidated by the amount of installers and weary to add another one to this contested namespace. So I checked in with @indirect who approved of the general direction of the refactoring and suggested to rename the old GemInstaller to RubyGemsGemInstaller.
* There's no flat_map in 1.8.7Andreas Hellwig2015-10-031-2/+2
|
* Rubocop adjustmentAndreas Hellwig2015-09-301-1/+1
| | | | Outdent access modifiers like private
* Extract class StandaloneAndreas Hellwig2015-09-301-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I wanted to fix some minor Rubocop issues and got confused by '#{ruby_engine}/#{ruby_version}'. I managed to confuse two other people working on bundler as well, so I decided to refactor the part around it. I wanted to encapsulate the file creation, so it's (even) more obvious from the context that another ruby file is created. So having an uninterpolated string with interpolation syntax in it isn't so unusual. To be extra sure I added a comment here as Rubocop might lead others to the same spot. I found that Standalone works quite well as its own object. While extracting the class I shortened some expressions and extracted methods that made sense as a unit to me. I ended up with a generate method that only deals with file output. What I think might be controversial: * The tendency to use methods instead of variables for small things like version_dir and bundler_path: I think it's easier to understand because methdos are "read_only", while values of variables might change during code execution. * Array(spec.require_paths) instead of "next if spec.require_paths.nil? # builtin gems". We lose the comment here, but I thought Array was more concise and that the information about the type of gems isn't crucial here. * flat_map { map { ... } } instead of "collecting" in paths My perspective is that paths is the result of a transformation of @specs and that's best expressed by using map. It's also shorter.
* Change error type to LockfileErrorLukas Oberhuber2015-09-291-1/+1
|
* remove newline from error message.Lukas Oberhuber2015-09-291-1/+1
|
* Raises an error if there are missing dependenciesLukas Oberhuber2015-09-291-5/+13
| | | | Also forces all installs through the parallel_installer to ensure consistency.
* Fix Style/ParallelAssignmentErick Sasse2015-08-021-1/+2
|
* Fix Style/SpaceAroundOperatorsAndre Arko2015-07-181-1/+1
| | | | closes #3854
* Fix Style/SpaceInsideBlockBracesAndre Arko2015-07-181-1/+1
| | | | closes #3850
* [RuboCop] Enable Style/StringLiteralsSamuel E. Giddins2015-07-151-1/+1
|
* [RuboCop] Enable Style/EmptyLinesSamuel E. Giddins2015-07-151-3/+0
|
* match by namePatrick Metcalfe2015-07-011-2/+2
| | | | | Because its faster and okay since all specs with the same name were already filtered out.
* switch reject to selectPatrick Metcalfe2015-07-011-4/+3
| | | | | | Reject is clearly not the right method to use here, now I’m trying to figure out what state of mind I was in when I wrote something that is so obviously wrong.
* fix empty post install message bugPatrick Metcalfe2015-04-281-1/+1
|
* [Documentation] Fix spelling for ParallelInstaller#process_specsSamuel E. Giddins2015-04-191-1/+1
|
* refactor parallel installerPatrick Metcalfe2015-04-191-0/+117
|
* Revert 'Clean up parallel installer'Andre Arko2015-04-071-94/+0
| | | | | | | | | It seems like some really bad build instability started with these changes. This isn't a straight revert, because I accidentally mixed changes to outdated into the original commit, but this reverts all the parallel installer changes. Reverts some of 'a467f7d1f4ded46a519c1f211a75de70c21bc647'.
* Clean up parallel installerAndre Arko2015-04-011-0/+94