mailkick 1.0.0 → 1.0.1

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: 2ff139814252a1c4ec153cc81f311dd5d8c1745a4970aaab8cb2164df4d4692d
4
- data.tar.gz: 1e4700dc2dbb96dcb09c4c79c00a837de387c8712db72c3bc13150ea94355da2
3
+ metadata.gz: e84a6786c23946b6e27a67a14d75c01da5cde231928d19c65edd2b591de9a153
4
+ data.tar.gz: 1a944d065c7bf4c164db038aabe0073b3759e96a232ec22b29e86cf746ffc02f
5
5
  SHA512:
6
- metadata.gz: f28ec4a1bb1fa022ad4bd9a250a45650562db467a7c6d14f0150e5f9c8137cd766376a605c0304092ff7036d2efca22ae95e3d61e5693d40f616205b54aedb72
7
- data.tar.gz: 5eb0a1544b00da879c77c2919501c2b21f6c4916e7bc1b710ad271c33ba6cd9cd6607d5d8c06f64380ce825f11187ff841deb21c58cd9ee4a8af3536ff3f594b
6
+ metadata.gz: 3ed9f0315dc5c60ed5b2cc524fd13763566b6126bafceb665dbddcdc2a182f4408a370e267fdcc8ab97cbe616684c7ff5ab91b0fe717d39a65deac854cd3b958
7
+ data.tar.gz: 82c2c1d7a1d0077eb60df59a9d672039b17750462a435afdef19125e26f3c122600a2a8f394c06a3119a64c773d4a6ef7a1f61dc5081dca587735eda80c4a9c3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
+ ## 1.0.1 (2021-06-20)
2
+
3
+ - Fixed error message when process out-opts not configured
4
+
1
5
  ## 1.0.0 (2021-06-03)
2
6
 
3
7
  - Switched from opt-outs to subscriptions
8
+ - Dropped support for Ruby < 2.6 and Rails < 5.2
4
9
 
5
10
  ## 0.4.3 (2020-11-01)
6
11
 
data/README.md CHANGED
@@ -97,7 +97,7 @@ Mailkick.process_opt_outs_method = lambda do |opt_outs|
97
97
  next unless subscriber
98
98
 
99
99
  subscriber.mailkick_subscriptions.each do |subscription|
100
- subscription.destroy if subscription.updated_at < opt_out[:time]
100
+ subscription.destroy if subscription.created_at < opt_out[:time]
101
101
  end
102
102
  end
103
103
  end
data/lib/mailkick.rb CHANGED
@@ -25,7 +25,7 @@ module Mailkick
25
25
  mattr_accessor :services, :secret_token, :mount, :process_opt_outs_method
26
26
  self.services = []
27
27
  self.mount = true
28
- self.process_opt_outs_method = -> { raise "process_opt_outs_method not defined" }
28
+ self.process_opt_outs_method = ->(_) { raise "process_opt_outs_method not defined" }
29
29
 
30
30
  def self.fetch_opt_outs
31
31
  services.each(&:fetch_opt_outs)
@@ -1,3 +1,3 @@
1
1
  module Mailkick
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-04 00:00:00.000000000 Z
11
+ date: 2021-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport