wco_models 3.1.0.320 → 3.1.0.322

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tasks/office_tasks.rake +8 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 443a87c368a2129a7aab5d43f2838866af52ffb46f7363d262fbd0b0759cbb45
4
- data.tar.gz: b807e5a65f5566bad7c9722c36733ae675d4e6905621a57641408bc35f2e812d
3
+ metadata.gz: b407810e31f70895b0f8301063d20298383b0a306312cfc5ccef1b03eeaa413c
4
+ data.tar.gz: 84defb0562999475618dde26041ec0d93df5e1c8231d11a205d50d96f45b7910
5
5
  SHA512:
6
- metadata.gz: 8547ddb2272dd81037c0e8c34b07d4327406ffcf05833f1eaa9bc1147604d881358f48b9796e2c7e3f5a3fd1826f24d4c5949d5c37807edd07d926c315440b18
7
- data.tar.gz: 7eab25e6a504fb39aef9747bcc3ccb91fe7ab574af4fce1be8c506d1a46e1a409348531cc4837f184a416fca6e0036064d2d34d843112e5f64da11506bab139f
6
+ metadata.gz: e5fc3376aeda29db1f2216ea1b349fb8b8c403ada4c93a2789c4ba2c0f8b1869aa5440fb5cb51cf3a16fd65fd7ca98219df18865ad75d7927079b218f707818e
7
+ data.tar.gz: 838c1ffe4d6b0dcf043832d5f6366bd58234d518952d6f2dc4ea6aadb2d4cdbd5dfb8e4e05692c56bd410c612641ab94c53397af6a155e52794d51c06bda0410
@@ -7,27 +7,30 @@ namespace :wco do
7
7
 
8
8
  desc 'run office actions'
9
9
  task run_office_actions: :environment do
10
+ STDOUT.sync = true
11
+ STDERR.sync = true
12
+
10
13
  puts! "Starting wco_email:run_office_actions in #{Rails.env}..."
11
14
  while true do
12
15
 
13
16
  schs = Wco::OfficeAction.active.where({ :perform_at.lte => Time.now })
14
- print "[#{schs.length} oats]" if schs.length != 0
17
+ puts! "[#{schs.length} oats]" if schs.length != 0
15
18
  schs.each do |sch|
16
19
  sch.do_run
17
- print "[#{sch.id}]^"
20
+ puts! "[#{sch.id}]^"
18
21
  sleep 15
19
22
  end
20
23
 
21
24
  ## copy-pasted from wco_email tasks run_email_actions
22
25
  schs = WcoEmail::EmailAction.active.where({ :perform_at.lte => Time.now })
23
- print "[#{schs.length} eats]" if schs.length != 0
26
+ puts! "[#{schs.length} eats]" if schs.length != 0
24
27
  schs.each do |sch|
25
28
  sch.do_run
26
- print "[#{sch.id}]^"
29
+ puts! "[#{sch.id}]^"
27
30
  sleep 15
28
31
  end
29
32
 
30
- print '.'
33
+ puts! '.'
31
34
  sleep 15
32
35
  end
33
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.320
4
+ version: 3.1.0.322
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev