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: f326e94a0d8c08f4d34f527ae2f1547b502ec0f92bd13bf4865767c9f03b2afd
4
- data.tar.gz: 87bc25f43d8bb4379fb1c26b81ba509cd8cc848f79db3a13fc9929e3d6d3f52a
3
+ metadata.gz: dad19029f0b45940695d7e1ab81e33bcafdd78d26e92964c09260b4c62a791a6
4
+ data.tar.gz: 6cc0dcff567c367fd558403f9162764a10aeb5e5fdaf3cc2990535224531078b
5
5
  SHA512:
6
- metadata.gz: 0725f8e6619b563a2719fd19a4da66b1f4aecda5d599d93ab0131d816ec014595c0dff3e2f79b899789a46d4c0b99c1628920e967feb7683d1e412756516b396
7
- data.tar.gz: 8bce0950cdc60c9fc96f1487f9b7fccc201b776a03108227b780a219b2db40dffdd933ab5ea4fe9d3d9e89f9c607271f5f490b95b77af087e331264ff85953a8
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, user:)
34
- caffeinate_campaign.subscribe(subscriber, user: user)
33
+ def subscribe(subscriber, **args)
34
+ caffeinate_campaign.subscribe(subscriber, **args)
35
35
  end
36
36
 
37
37
  # :nodoc:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Caffeinate
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Brody