summaryrefslogtreecommitdiff
path: root/lib/bundler/shared_helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Mild 1.8.7 $SAFE=1 compatibilityseg-gem-dep-api-compatibilitySamuel Giddins2016-07-191-4/+4
|
* Migrate 1-99 deprecations to new major_deprecation machinerySamuel Giddins2016-07-051-8/+4
|
* Fix deprecation warnings and lack_errors matcherStefan Lance2016-07-051-1/+1
|
* do not deprecate gems.rb, lolAndre Arko2016-07-051-3/+11
|
* Add Bundler.ui.deprecateStefan Lance2016-07-051-1/+3
|
* [SharedHelpers] Fix printing rubygems versionSamuel Giddins2016-06-231-1/+1
|
* Add spec machinery for testing major deprecationsSamuel Giddins2016-06-231-3/+2
|
* Print the first batch of major deprecation warningsSamuel Giddins2016-06-231-0/+9
|
* Add machinery for printing major deprecationsSamuel Giddins2016-06-231-0/+15
|
* Add total bundler version trampolining via vendored postitSamuel Giddins2016-06-101-0/+1
|
* [SharedHelpers] Support 1.8.7 not having ENOTSUP definedseg-enotsupSamuel Giddins2016-03-281-1/+1
|
* [SharedHelpers] Handle Errno::ENOTSUP in .filesystem_accessSamuel Giddins2016-03-281-0/+2
|
* Create `Bundler::VirtualProtocolError` that ↵James Wen2016-02-101-0/+2
| | | | | | | | `Bundler::SharedHelpers#filesystem_access` will raise in response to Errno::EPROTO - Provides better error message/handling for #4163
* [Exec] Avoid loading the definition before exec-ingSamuel Giddins2016-02-011-0/+12
|
* Fix setting RUBYOPTSamuel Giddins2016-01-311-1/+1
|
* Compatibility with frozen string literalsSamuel Giddins2016-01-311-0/+1
|
* [RuboCop] Address Style/GuardClauseSamuel Giddins2016-01-311-4/+3
|
* Separate concerns of `Bundler::SharedHelpers#set_bundle_environment`James Wen2016-01-091-16/+23
| | | | | | - Splits the implementation details/sections of `Bundler::SharedHelpers#set_bundle_environment` into three more modular, singularly responsible private methods: `set_path`, `set_rubyopt`, `set_rubylib` - Adds unit tests for `set_bundle_environment` that also contain coverage for the new methods - Add ENV['RUBYOPT'] and ENV['RUBYLIB'] to after-spec resets
* Auto merge of #4195 - RochesterinNYC:add-net-http-errors-safely, r=segiddinsHomu2016-01-031-0/+7
|\ | | | | | | | | | | Add `Net#HTTP--` errors safely (only if in version of ruby stdlib) Continuation of #4154. Some errors in the ruby `Net` module that we might not want to retry on were added in later Ruby versions of the stdlib. This PR allows us to preserve backwards compatibility while adding new errors.
| * Refactor `SharedHelpers#const_get_safely` to maintain support for ruby 1.8.7James Wen2016-01-031-3/+4
| | | | | | | | | | | | - `Module#constants` returns an array of strings instead of symbols in `ruby 1.8.7`, check for presence of both string and symbol forms of `constant_name` in constants
| * Extract safe const_get logic into `SharedHelpers#const_get_safely`James Wen2016-01-021-0/+6
| |
* | Update `SharedHelpers#filesystem_access` inline comment documentation with ↵James Wen2016-01-031-1/+3
|/ | | | `Errno::EAGAIN` rescuing [ci skip]
* Create `TemporaryResourceError` that `SharedHelpers#filesystem_access` ↵James Wen2015-12-281-0/+2
| | | | | | raises for `Errno::EAGAIN` - Pull out `action` as an instance method of `PermissionError`
* [RuboCop] Enable Style/ParallelAssignmentSamuel Giddins2015-11-261-1/+2
|
* [RuboCop] Enable Style/PercentLiteralDelimitersSamuel Giddins2015-11-261-2/+2
|
* [RuboCop] Enable Style/BlockDelimitersSamuel Giddins2015-11-261-2/+2
|
* Introduce SharedHelpers#filesystem_accessAgis Anastasopoulos2015-09-271-0/+24
|
* Fix Style/RegexpLiteralVictor Koronen2015-08-131-1/+1
|
* [RuboCop] Enable Style/StringLiteralsSamuel E. Giddins2015-07-151-12/+12
|
* Change if statement condition and syntaxFilip Bartuzi2015-06-301-1/+1
| | | More readable, faster and more fun
* Print lockfile name relative from the current working directorySamuel E. Giddins2015-05-281-1/+1
|
* Merge pull request #3582 from voxik/fix-rubygems-2.2-compatibilityAndré Arko2015-04-211-3/+6
|\ | | | | Fix rubygems 2.2+ compatibility
| * Use Bundler.rubygems instead of Gem methods directly.Vít Ondruch2014-12-051-15/+6
| |
| * Fix RubyGems 2.2+ compatibility.Vít Ondruch2014-12-051-4/+16
| | | | | | | | | | | | | | | | | | RubyGems since version 2.2 allows to reconfigure place, where binary extensions are stored. This might allow easier sharing of gems between various Ruby interpreters. It can be enabled by redefining Gem.default_ext_dir_for method. This patch is adding support for this feature into Bundler.
* | Merge tag 'v1.9.4'Andre Arko2015-04-131-12/+7
| | | | | | | | | | | | | | | | Version 1.9.4 Conflicts: lib/bundler/installer.rb lib/bundler/match_platform.rb lib/bundler/source/rubygems.rb
* | backport a monitor into Rubygems’ ext builderAndre Arko2015-02-131-3/+1
| |
* | do not return global .bundle as local .bundleAndre Arko2015-01-251-3/+9
| |
* | share bundle env setup between exec and RuntimeAndre Arko2015-01-191-0/+19
| | | | | | | | | | this means we only have to maintain setting up Bundler environment variables in one place
* | `bundle config --local gemfile /foo/bar/MyGemfile` now worksDean Holdren2014-12-221-5/+24
|/ | | | | | | | | | | | | - `bundle config` can be used to set a custom gemfile name for a project (specifying an absolute path) - using other bundle commands will now search up parent directories for a .bundle dir and use the gemfile specified in .bundle/config if it is set - does not require a file named 'Gemfile' to exist - Revert "Correct bundle-config manpage" This reverts commit 0a814573363d48f8cd860d672f1c935fe1d89fca. - An added bonus: you can now both set and *delete* a global bundler setting from *anywhere*: `bundle config --delete foo`
* ||= is not thread safeSmit Shah2014-11-181-1/+2
|
* apply chdir monitor to all chdirsAndre Arko2014-11-171-16/+9
| | | | | | Now that MRI and Rubinius also use the threaded installation plan, we need to make sure that all installation threads will stay synchronized and not cross-access files.
* Everything (not just Gemfile) needs to be appended .lock, as per old behaviour.Andre Medeiros2014-09-131-1/+1
|
* Fix the gemfile locating logic.Andre Medeiros2014-09-131-3/+2
|
* Try to find `gems.rb` and `gems.locked` if `Gemfile` is not foundAndre Medeiros2014-09-131-3/+12
|
* Ignore git path configuration in env when shelling out to git.Xavier Shay2013-08-181-0/+13
|
* Use newly introduced current_ruby method for platformHemant Kumar2013-07-291-1/+1
|
* Push a fix for SharedHelpers.chdir not being threadsafeHemant Kumar2013-07-291-1/+1
| | | | The platform detection is a bit messy and I will refactor it later
* Load current_ruby from shared_helpers.rbHemant Kumar2013-07-251-0/+1
| | | | | | In case of commands run via bundle exec, we do not require all of bundler in that environment and we only require bundler/setup there. Which creates problems because Bundler is unable to find current_ruby therej
* Move constants to use it from SharedHelpersKohei Suzuki2013-05-231-0/+1
|
* Run installation in multiple processes unless host_os is WindowsKohei Suzuki2013-05-231-7/+17
|