mailkick 1.1.1 → 1.2.0

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: 2d27cea2a7290b64e0b7d59322124923e5c84069040d43df800269bd17069aec
4
- data.tar.gz: 4a40900192322ef6e5f04940277713ce43d0c64c3a672ec29ec3a5dbd2269e80
3
+ metadata.gz: ddf2a19ba215a06cc6ff11572182350113a96cfafb9ca9f57eafa6dd324cbc41
4
+ data.tar.gz: 96da19903fe864f2bb3435a8af437381a83ecba7f627b547006269f7f3f4a127
5
5
  SHA512:
6
- metadata.gz: 39fc8af0c0b60f613834f05e9b02b8bbe795cb483ce62e4a99016d257ae0345ff7a97d024d5e4c9791b04f5074e51679b92175470e987e613152034aa8ee5128
7
- data.tar.gz: b1f1ed3b224be6bfb74d87851e029a797783b7bf25d4d19c09a2b1867b3ce6a1803e19cabf7942ec9eedd1575c3aff6f6279386373fe8a6af807f659bb395817
6
+ metadata.gz: 144fbc26ade9ed2f13349ce5007326d2f0e8f91d900e78b9b08603b16ac728e26a9b151b467b4ab90099a135e95eb497c8da97bc0fadef49d651fa7a4df27941
7
+ data.tar.gz: 985db1bc6dbadd736706e0d4b2856b3b6e86feac2700d05950404fe92c591d611a8613798866aaba503ead0aeafa567580542b44e34b4dea35f2ed72f992cc73
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.2.0 (2023-07-02)
2
+
3
+ - Dropped support for Ruby < 3 and Rails < 6.1
4
+
5
+ ## 1.1.2 (2023-02-07)
6
+
7
+ - Improved serialization
8
+
1
9
  ## 1.1.1 (2023-01-30)
2
10
 
3
11
  - Switched to JSON for serialization with non-default `secret_token`
data/README.md CHANGED
@@ -218,6 +218,7 @@ rails db:migrate
218
218
  - `User.not_opted_out` to `User.subscribed(list)`
219
219
  - `opt_in` to `subscribe(list)`
220
220
  - `opt_out` to `unsubscribe(list)`
221
+ - `opted_out?` to `!subscribed?(list)`
221
222
 
222
223
  3. Add a user and list to `mailkick_unsubscribe_url`
223
224
 
@@ -1,3 +1,4 @@
1
+ require "rails/generators"
1
2
  require "rails/generators/active_record"
2
3
 
3
4
  module Mailkick
@@ -3,11 +3,11 @@
3
3
  module Mailkick
4
4
  class Serializer
5
5
  def self.dump(value)
6
- JSON.dump(value)
6
+ ActiveSupport::JSON.encode(value)
7
7
  end
8
8
 
9
9
  def self.load(value)
10
- JSON.load(value)
10
+ ActiveSupport::JSON.decode(value)
11
11
  rescue JSON::ParserError
12
12
  Marshal.load(value)
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Mailkick
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
data/lib/mailkick.rb CHANGED
@@ -6,22 +6,22 @@ require "json"
6
6
  require "set"
7
7
 
8
8
  # modules
9
- require "mailkick/legacy"
10
- require "mailkick/model"
11
- require "mailkick/serializer"
12
- require "mailkick/service"
13
- require "mailkick/service/aws_ses"
14
- require "mailkick/service/mailchimp"
15
- require "mailkick/service/mailgun"
16
- require "mailkick/service/mandrill"
17
- require "mailkick/service/sendgrid"
18
- require "mailkick/service/sendgrid_v2"
19
- require "mailkick/service/postmark"
20
- require "mailkick/url_helper"
21
- require "mailkick/version"
9
+ require_relative "mailkick/legacy"
10
+ require_relative "mailkick/model"
11
+ require_relative "mailkick/serializer"
12
+ require_relative "mailkick/service"
13
+ require_relative "mailkick/service/aws_ses"
14
+ require_relative "mailkick/service/mailchimp"
15
+ require_relative "mailkick/service/mailgun"
16
+ require_relative "mailkick/service/mandrill"
17
+ require_relative "mailkick/service/sendgrid"
18
+ require_relative "mailkick/service/sendgrid_v2"
19
+ require_relative "mailkick/service/postmark"
20
+ require_relative "mailkick/url_helper"
21
+ require_relative "mailkick/version"
22
22
 
23
23
  # integrations
24
- require "mailkick/engine" if defined?(Rails)
24
+ require_relative "mailkick/engine" if defined?(Rails)
25
25
 
26
26
  module Mailkick
27
27
  mattr_accessor :services, :mount, :process_opt_outs_method
@@ -58,7 +58,7 @@ module Mailkick
58
58
  end
59
59
  end
60
60
 
61
- ActiveSupport.on_load :action_mailer do
61
+ ActiveSupport.on_load(:action_mailer) do
62
62
  helper Mailkick::UrlHelper
63
63
  end
64
64
 
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.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-30 00:00:00.000000000 Z
11
+ date: 2023-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '6.1'
27
27
  description:
28
28
  email: andrew@ankane.org
29
29
  executables: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.6'
71
+ version: '3'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.1
78
+ rubygems_version: 3.4.10
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Email subscriptions for Rails