@@ -30,6 +30,54 @@ def self.defined_event?(event)
3030 @events . key? ( event )
3131 end
3232
33+ # @!parse
34+ # A hook called before the Gemfile is evaluated
35+ # Includes the Gemfile path and the Lockfile path
36+ # GEM_BEFORE_EVAL = "before-eval"
37+ define :GEM_BEFORE_EVAL , "before-eval"
38+
39+ # @!parse
40+ # A hook called after the Gemfile is evaluated
41+ # Includes a Bundler::Definition
42+ # GEM_AFTER_EVAL = "after-eval"
43+ define :GEM_AFTER_EVAL , "after-eval"
44+
45+ # @!parse
46+ # A hook called before any gems install
47+ # Includes an Array of Bundler::Dependency objects
48+ # GEM_BEFORE_INSTALL_ALL = "before-install-all"
49+ define :GEM_BEFORE_INSTALL_ALL , "before-install-all"
50+
51+ # @!parse
52+ # A hook called before each individual gem is downloaded from a remote source.
53+ # Includes a spec-like object responding to the Gem::Specification API
54+ # (for example, a Bundler spec proxy such as Bundler::EndpointSpecification
55+ # or Bundler::RemoteSpecification). Does not fire when the gem is already
56+ # present at the initial download-cache check.
57+ # GEM_BEFORE_FETCH = "before-fetch"
58+ define :GEM_BEFORE_FETCH , "before-fetch"
59+
60+ # @!parse
61+ # A hook called after each individual gem is downloaded from a remote source.
62+ # Includes a spec-like object responding to the Gem::Specification API
63+ # (for example, a Bundler spec proxy such as Bundler::EndpointSpecification
64+ # or Bundler::RemoteSpecification). Does not fire when the gem is already
65+ # present at the initial download-cache check.
66+ # GEM_AFTER_FETCH = "after-fetch"
67+ define :GEM_AFTER_FETCH , "after-fetch"
68+
69+ # @!parse
70+ # A hook called before a git source is fetched or checked out.
71+ # Includes a Bundler::Source::Git reference.
72+ # GIT_BEFORE_FETCH = "before-git-fetch"
73+ define :GIT_BEFORE_FETCH , "before-git-fetch"
74+
75+ # @!parse
76+ # A hook called after a git source is fetched or checked out.
77+ # Includes a Bundler::Source::Git reference.
78+ # GIT_AFTER_FETCH = "after-git-fetch"
79+ define :GIT_AFTER_FETCH , "after-git-fetch"
80+
3381 # @!parse
3482 # A hook called before each individual gem is installed
3583 # Includes a Bundler::ParallelInstaller::SpecInstallation.
@@ -45,18 +93,18 @@ def self.defined_event?(event)
4593 # GEM_AFTER_INSTALL = "after-install"
4694 define :GEM_AFTER_INSTALL , "after-install"
4795
48- # @!parse
49- # A hook called before any gems install
50- # Includes an Array of Bundler::Dependency objects
51- # GEM_BEFORE_INSTALL_ALL = "before-install-all"
52- define :GEM_BEFORE_INSTALL_ALL , "before-install-all"
53-
5496 # @!parse
5597 # A hook called after any gems install
5698 # Includes an Array of Bundler::Dependency objects
5799 # GEM_AFTER_INSTALL_ALL = "after-install-all"
58100 define :GEM_AFTER_INSTALL_ALL , "after-install-all"
59101
102+ # @!parse
103+ # A hook called before any gems require
104+ # Includes an Array of Bundler::Dependency objects.
105+ # GEM_BEFORE_REQUIRE_ALL = "before-require-all"
106+ define :GEM_BEFORE_REQUIRE_ALL , "before-require-all"
107+
60108 # @!parse
61109 # A hook called before each individual gem is required
62110 # Includes a Bundler::Dependency.
@@ -69,17 +117,11 @@ def self.defined_event?(event)
69117 # GEM_AFTER_REQUIRE = "after-require"
70118 define :GEM_AFTER_REQUIRE , "after-require"
71119
72- # @!parse
73- # A hook called before any gems require
74- # Includes an Array of Bundler::Dependency objects.
75- # GEM_BEFORE_REQUIRE_ALL = "before-require-all"
76- define :GEM_BEFORE_REQUIRE_ALL , "before-require-all"
77-
78120 # @!parse
79121 # A hook called after all gems required
80122 # Includes an Array of Bundler::Dependency objects.
81123 # GEM_AFTER_REQUIRE_ALL = "after-require-all"
82- define :GEM_AFTER_REQUIRE_ALL , "after-require-all"
124+ define :GEM_AFTER_REQUIRE_ALL , "after-require-all"
83125 end
84126 end
85127end
0 commit comments