caffeinate 2.0.0 → 2.0.5

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: 267d93d746f23525a65cf5607ef0b4c67195cd9c14260d3f8b9b346cfdeb8ffe
4
- data.tar.gz: c3851e78e0ddd35f5735aaa70ce9360cf242ab9ede3e6c6a74700b07c59ad16e
3
+ metadata.gz: 8d84c243657ac1177c4f95941325ae508cd67e9a4dd1d27a7f8eb070d641ee49
4
+ data.tar.gz: c3541dc68d6611e673e235d9dcba55c584a1d854f1c0e38f3e379e391e88b5e1
5
5
  SHA512:
6
- metadata.gz: f81b1310248f890a74c37b290d5860f6562763d567ec9fe07ca3aeff27f8aa7a48ff0bb071797f8cef022cdb76ea403a12bdce8f76afae5d1a929c805209cbdf
7
- data.tar.gz: efe9b9a8306b3c832d04218b11c10c5772319b38206de5e1c141e1f15a494ab73ec069ea19cddfe2d570edb155d14520f4bdf1525b3eb8a849718bc7e895ab05
6
+ metadata.gz: 1bdda981dbdec2d7b655def0cba92d475e176f22577878e4dec8f50cc48b0668bdee23d53eba0eabe800e3bb92b43b5f93493a81be744b5336e5217ff9046e4c
7
+ data.tar.gz: bbf2c4f17b7cee49956e7bf287497bffd653fde9920d343d75daae7c3b3a37c4ad2f2693c413b74ce9684628e0490b277b4b3b6d94feceac00c4afee9a7c6127
@@ -9,11 +9,11 @@ module Caffeinate
9
9
  before_action :find_campaign_subscription!
10
10
 
11
11
  def unsubscribe
12
- @campaign_subscription.unsubscribe!
12
+ @campaign_subscription.unsubscribe!(true)
13
13
  end
14
14
 
15
15
  def subscribe
16
- @campaign_subscription.resubscribe!
16
+ @campaign_subscription.resubscribe!(true)
17
17
  end
18
18
 
19
19
  private
@@ -1,3 +1,3 @@
1
1
  <%= t("caffeinate.campaign_subscriptions.subscribe") %>
2
2
  <p><%= t("caffeinate.campaign_subscriptions.changed_your_mind")%></p>
3
- <p><%= link_to "Unsubscribe", caffeinate_subscribe_url %></p>
3
+ <p><%= link_to "Unsubscribe", caffeinate_unsubscribe_url %></p>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Caffeinate
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.5'
5
5
  end
data/lib/caffeinate.rb CHANGED
@@ -22,7 +22,7 @@ require 'caffeinate/dripper_collection'
22
22
 
23
23
  module Caffeinate
24
24
  def self.dripper_collection
25
- @drippers ||= DripperCollection.new
25
+ @dripper_collection ||= DripperCollection.new
26
26
  end
27
27
 
28
28
  # Global configuration
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: 2.0.0
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Brody