caffeinate 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad19029f0b45940695d7e1ab81e33bcafdd78d26e92964c09260b4c62a791a6
|
4
|
+
data.tar.gz: 6cc0dcff567c367fd558403f9162764a10aeb5e5fdaf3cc2990535224531078b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07435dc688fa292978b2b470eb49e12e82b397f83a0fbf2e6f5be85c0d99f4c3d6fb6a56718b81b6fdc52f1ba4205457d055567fba34b0ead435a4c1da2b7898
|
7
|
+
data.tar.gz: 11bd0f6f7487442a0933c7285f7400ef72b22f4037ebc9e3db4c7ef4d3bdbd90094b2fc21486e60c7ee562a515a922e9fd336d821a6c2c4ae9de786b8f313f67
|
@@ -23,7 +23,7 @@ module Caffeinate
|
|
23
23
|
# @param [Hash] options The options to set defaults with
|
24
24
|
# @option options [String] :mailer_class The mailer class
|
25
25
|
def default(options = {})
|
26
|
-
options.assert_valid_keys(:mailer_class, :mailer)
|
26
|
+
options.assert_valid_keys(:mailer_class, :mailer, :using)
|
27
27
|
@defaults = options
|
28
28
|
end
|
29
29
|
end
|
@@ -50,6 +50,7 @@ module Caffeinate
|
|
50
50
|
def drip(action_name, options = {}, &block)
|
51
51
|
options.assert_valid_keys(:mailer_class, :step, :delay, :using, :mailer)
|
52
52
|
options[:mailer_class] ||= options[:mailer] || defaults[:mailer_class]
|
53
|
+
options[:using] ||= defaults[:using]
|
53
54
|
options[:step] ||= drips.size + 1
|
54
55
|
|
55
56
|
if options[:mailer_class].nil?
|
@@ -30,8 +30,8 @@ module Caffeinate
|
|
30
30
|
# @option [ActiveRecord::Base] :user The associated user (optional)
|
31
31
|
#
|
32
32
|
# @return [Caffeinate::CampaignSubscriber] the created CampaignSubscriber
|
33
|
-
def subscribe(subscriber,
|
34
|
-
caffeinate_campaign.subscribe(subscriber,
|
33
|
+
def subscribe(subscriber, **args)
|
34
|
+
caffeinate_campaign.subscribe(subscriber, **args)
|
35
35
|
end
|
36
36
|
|
37
37
|
# :nodoc:
|
data/lib/caffeinate/version.rb
CHANGED