From f8b41959f76d2e16384a8a06881c59942a94034a Mon Sep 17 00:00:00 2001 From: jules2689 Date: Thu, 20 Sep 2018 15:27:34 -0400 Subject: [PATCH] Fix issue in extended bundler errors --- Gemfile.lock | 2 +- lib/extended_bundler/errors.rb | 5 +++++ lib/extended_bundler/errors/version.rb | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index b000043..5ebfcd2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - extended_bundler-errors (0.2.5) + extended_bundler-errors (0.3.0) GEM remote: https://rubygems.org/ diff --git a/lib/extended_bundler/errors.rb b/lib/extended_bundler/errors.rb index 2adb8de..d989905 100644 --- a/lib/extended_bundler/errors.rb +++ b/lib/extended_bundler/errors.rb @@ -29,6 +29,11 @@ def register Bundler::Plugin.add_hook('after-install') do |spec_install| troubleshoot(spec_install) if spec_install.state != :installed end + + Bundler::Plugin.add_hook('before-install-all') do |_d| + # This hook makes bundler load the plugin + # Because the plugin is loaded before everything, our after-install hook is registered + end end # Troubleshoots a failed installation diff --git a/lib/extended_bundler/errors/version.rb b/lib/extended_bundler/errors/version.rb index 3a15907..fa68c5f 100644 --- a/lib/extended_bundler/errors/version.rb +++ b/lib/extended_bundler/errors/version.rb @@ -1,6 +1,6 @@ module ExtendedBundler module Errors - VERSION = "0.2.6" + VERSION = "0.3.0" HOMEPAGE = "http://github.com/jules2689/extended_bundler-errors" end end