segmentor 0.0.2.2 → 0.0.2.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: ffbe6bf25b3e84afd1fb674a2e6d7baf3e4a85f5f4908218393e6a31e72fdd99
4
- data.tar.gz: 62f1cee9dd23c5dd40bfe3bf01c3e2eaa5c0870a5163db3efe240f6e5beec5b8
3
+ metadata.gz: eb00a436b227d9982cdf4dbda22f03a18b4063e8c975884eccd6238dd63d16f1
4
+ data.tar.gz: e71bac90153a8b643a1d6d5915a947d31eb3c8e53ce88f7956882c6dfc74683a
5
5
  SHA512:
6
- metadata.gz: ddf19aad7739e31d46784620a923d0d9494ca043ea0f03c9e848f1941a7946bd7bdb973e6d844821d3cf998b1bb2b68876aa96189dd270e4a37b3fddd7f7d7e3
7
- data.tar.gz: 9143d1ce8c302971823c2e598a9a245968e6ce4f76c5218581ff37b908fca19692dcf04f73218be5aec4cf0a32aebaeb031c9706be33328ff190f7680f77c2e2
6
+ metadata.gz: 72cf2a78b598ca59ed1350777dab56e99b0efe48c75596cfdf7a993263d286cf04b20d98563eaf4c13f0f73830e0157e7d5858aac1bca9176a8e43c99d06ed8d
7
+ data.tar.gz: cce12b099bdd00dc39eabf814bb8952d61beb9b1a2c3aa7228bb1dbbe5d1037a51b3527a765e8c23ad708a3db91d42785ff01db22c65c3898b0264fe200a43b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- segmentor (0.0.2.2)
4
+ segmentor (0.0.2.3)
5
5
  actionpack (~> 6.1)
6
6
  activerecord (~> 6.1)
7
7
  activesupport (~> 6.1)
@@ -26,6 +26,7 @@ class CreateSegmentorTables < ActiveRecord::Migration[6.1]
26
26
  t.references :segment, foreign_key: { to_table: :segmentor_segments }
27
27
  t.text :email_template, null: true # ::Segmentor::EmailNotifierContext
28
28
  t.text :template_name, null: true # ::Segmentor::PostmarkNotifierContext
29
+ t.text :template_payload, null: true # ::Segmentor::PostmarkNotifierContext
29
30
 
30
31
  t.timestamps
31
32
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'notifier_context'
4
+ module Segmentor
5
+ class PostmarkNotifierContext < ::Segmentor::NotifierContext
6
+ validates :template_name, presence: true
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Segmentor
4
- VERSION ||= "0.0.2.2"
4
+ VERSION ||= "0.0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: segmentor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.2
4
+ version: 0.0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khash Sajadi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -276,6 +276,7 @@ files:
276
276
  - lib/segmentor/errors/notification_error.rb
277
277
  - lib/segmentor/errors/session_error.rb
278
278
  - lib/segmentor/notifier_context.rb
279
+ - lib/segmentor/postmark_notifier_context.rb
279
280
  - lib/segmentor/receipt.rb
280
281
  - lib/segmentor/segment.rb
281
282
  - lib/segmentor/session.rb