renote_dac 0.0.152 → 0.0.153

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48a415ad159ecef7d64db2a64968222274d62d82d968fcd5355f65045d93e699
4
- data.tar.gz: d4faf851b22395ce17e3a81d01d6dc41bb3c954743ddf73c6ed772cc1a936467
3
+ metadata.gz: cd8b970641882d5ccf64369ebba9c982e1f2b7bfdcd38989d259a931fbf52ca6
4
+ data.tar.gz: a79dcec04c63377897e62397e2c48bd68cb8c5573f6fe49db87d71a09057f56e
5
5
  SHA512:
6
- metadata.gz: 21be1771abefa1133c574344ffff8029b21a24aa47dc1832126e87938f25dff8a68336ccf33df3b7e12e04ac4e3678a54bee5e056f67facc5f983b0383094084
7
- data.tar.gz: 3636c02f4b293fc0e4ae5ad731b2c209e54ed5c7eb1a5d9762e94080993ac3128e8b654dc08c884b23e148350f0bb789f1c981bb9a3e441aa118adc16a3aa4ea
6
+ metadata.gz: de55e5826e48f713dab58f04c2ac747a58764b7d96d11a5749a1cf9fe96cdaeb09c7568f2bc51c1b4335eaca6e212167c240fd76ee9677efc6b6fd2e800adf94
7
+ data.tar.gz: 63d6d6fddca186697a8e452c5745219eb00df8705d0aa7b6d546938819d76dc7d7495d01067a3361127e859d1c962ec0385f8948ee0706908c336c0fd7e67a73
@@ -6,8 +6,8 @@ class CreateRenoteDacEmails < ActiveRecord::Migration[5.2]
6
6
  t.integer :campaign_id
7
7
  t.integer :priority
8
8
  t.string :template
9
- t.string :email
10
- t.text :params
9
+ t.string :address
10
+ t.json :params
11
11
  t.string :error
12
12
  t.datetime :sent_at
13
13
 
@@ -13,13 +13,13 @@ module RenoteDac
13
13
  BATCH_EMAIL = 2
14
14
  BATCH_PARAMS = 3
15
15
 
16
- def self.enqueue(template, email, params = {})
16
+ def self.enqueue(template, email_address, params = {})
17
17
  meta = Mailer.get_template_meta(template)
18
18
 
19
19
  Email.create!(
20
20
  priority: meta[:priority],
21
21
  template: template,
22
- email: email,
22
+ address: email_address,
23
23
  params: params
24
24
  )
25
25
  end
@@ -31,7 +31,7 @@ module RenoteDac
31
31
  .where(error: nil)
32
32
  .order(priority: :asc, id: :asc)
33
33
  .limit(size)
34
- .pluck(:id, :template, :email, :params)
34
+ .pluck(:id, :template, :address, :params)
35
35
  end
36
36
 
37
37
  def self.get_template_meta(template)
@@ -1,3 +1,3 @@
1
1
  module RenoteDac
2
- VERSION = '0.0.152'
2
+ VERSION = '0.0.153'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renote_dac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.152
4
+ version: 0.0.153
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney Leatherwood