caffeinate 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dad19029f0b45940695d7e1ab81e33bcafdd78d26e92964c09260b4c62a791a6
4
- data.tar.gz: 6cc0dcff567c367fd558403f9162764a10aeb5e5fdaf3cc2990535224531078b
3
+ metadata.gz: a76e8b67d3a3ab36c7805028f96cc78a7ee734afd966b27711ccbbfc18b0f8f3
4
+ data.tar.gz: 5aa9c1bcf06842f1def891e6ca2bd911d5e47aa0f447ace61a3a217ace84eb8a
5
5
  SHA512:
6
- metadata.gz: 07435dc688fa292978b2b470eb49e12e82b397f83a0fbf2e6f5be85c0d99f4c3d6fb6a56718b81b6fdc52f1ba4205457d055567fba34b0ead435a4c1da2b7898
7
- data.tar.gz: 11bd0f6f7487442a0933c7285f7400ef72b22f4037ebc9e3db4c7ef4d3bdbd90094b2fc21486e60c7ee562a515a922e9fd336d821a6c2c4ae9de786b8f313f67
6
+ metadata.gz: 162f21354008999da301307dd3ef11d1a5bb3ed8232f54e6abbacf4906fcdf7aa2ad8c6a78683a5ef7816b68a99cdd98cbce1c2da20fa6b52a43543964a672f0
7
+ data.tar.gz: 3bd71c2357d9e0a205ad66fe524b450df54832436c2ab08f54be288ea637a9cc878e336a533d4bff7e960f3be0e6e47405a1341f2b656981791e1fd0d36dba5e
@@ -14,6 +14,14 @@ module Caffeinate
14
14
  ::ActionMailer::Base.register_observer(::Caffeinate::ActionMailer::Observer)
15
15
  end
16
16
 
17
+ unless config.eager_load
18
+ config.to_prepare do
19
+ Dir.glob("#{Rails.root}/app/drippers/**/*.rb").each do |f|
20
+ require f
21
+ end
22
+ end
23
+ end
24
+
17
25
  ActiveSupport.on_load(:active_record) do
18
26
  extend ::Caffeinate::ActiveRecord::Extension
19
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Caffeinate
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caffeinate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Brody