mailkick 1.1.1 → 1.1.2

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: cb59432bb88208ad9818187d12da9be032d021e8c8e9e47635e15b4fe2aa7e6e
4
+ data.tar.gz: 10c2e216d3d9622bd770e4fdc1dcf5f4f0b84913edbb715698e56f6f2ac2d8d5
5
5
  SHA512:
6
- metadata.gz: 39fc8af0c0b60f613834f05e9b02b8bbe795cb483ce62e4a99016d257ae0345ff7a97d024d5e4c9791b04f5074e51679b92175470e987e613152034aa8ee5128
7
- data.tar.gz: b1f1ed3b224be6bfb74d87851e029a797783b7bf25d4d19c09a2b1867b3ce6a1803e19cabf7942ec9eedd1575c3aff6f6279386373fe8a6af807f659bb395817
6
+ metadata.gz: 5d8280c3fbaa4dace1475bd68e5b938d2d7f6593a2b38d0afb77073fd3e49cc807792187470f59df812da5bc9dbe43685058540b9029a33dd93c2f8012a4a816
7
+ data.tar.gz: 1c49cec20083acacf9ef9441c7d5595de6311d82c95c2debb02461ae7b167d23a40d6845e9008fcb1c731cb77bd2c9489db22c7507471b9ee4b6d33b301875c1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.1.2 (2023-02-07)
2
+
3
+ - Improved serialization
4
+
1
5
  ## 1.1.1 (2023-01-30)
2
6
 
3
7
  - 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
 
@@ -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.1.2"
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.1.2
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-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.1
78
+ rubygems_version: 3.4.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Email subscriptions for Rails