herdst_worker 0.2.1 → 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: f9e44d9ada2a49ef3b502234a2567cd9020d0918d1fcfc4fbbe8f1824a15503f
4
- data.tar.gz: 339f71235cfbae588ce2f3858a4ca2a9204ac47918d6411069b996022850aa08
3
+ metadata.gz: 2da174a99ab5adb9ead51ce658fe766168a67f192c2b29c4dece4bb053497182
4
+ data.tar.gz: 0623b5535cafcd7fa59b2de19ee8571d119e472940d692b9aa8dcfbb145aeaa8
5
5
  SHA512:
6
- metadata.gz: 968159200ad0fecd8c7f485bb883703741770495d72a59093a282b0b9eca96353ce13d73b2066278e8d12133272090c30741363cb91d8389c40e73cf8f947c42
7
- data.tar.gz: 2b40426599b5a9507b62f70b80cc474bbe81af722bd1a9a6ec385e4d18dcfdb1bae45380445e89461dfaef3d2200cee9b3f8455c50b8f427ec35f5c752fb8aef
6
+ metadata.gz: 873c462a26fc7dcec6c02b59e6a5bb3a4b08c52ccf7b06aa093d6db677fb858ef6ba0985cd4a3c07e3e3dc48a083d42732def672adde350db6e53f15638e637a
7
+ data.tar.gz: 6bf8ff1584c6d7a2936d249b54f22ae85fe791cd4f196e3693f6d02e4ecd8ab21f6c18e3e5bf60c4ecf4b04ca5fb902e1b10dd23761ae398f9618adb3276a889
@@ -107,7 +107,8 @@ module HerdstWorker
107
107
  data[:app_host] = company.get_url
108
108
  data[:type] = "email"
109
109
  data[:template] = template
110
- data[:data] = message_data
110
+ data[:data] = message_data || {}
111
+ data[:data][:company] = company unless data[:data][:company].present?
111
112
 
112
113
  # Add message structure
113
114
  message = Hash.new
@@ -217,7 +217,7 @@ module HerdstWorker
217
217
  private
218
218
  def reset_time
219
219
  self.start_time = Time.now.utc.to_i
220
- self.restart_time = self.start_time + (3600 * 6) # Six hours
220
+ self.restart_time = self.start_time + (3600 * 4) # Four hours
221
221
  end
222
222
 
223
223
  end
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-10 00:00:00.000000000 Z
11
+ date: 2023-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport