Skip to content

Commit

Permalink
Fix issue in extended bundler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jules2689 committed Sep 20, 2018
1 parent 7f6dc0a commit f8b4195
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
extended_bundler-errors (0.2.5)
extended_bundler-errors (0.3.0)

GEM
remote: https://rubygems.org/
Expand Down
5 changes: 5 additions & 0 deletions lib/extended_bundler/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/extended_bundler/errors/version.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8b4195

Please sign in to comment.