ish_manager 0.1.8.54 → 0.1.8.55

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
  SHA1:
3
- metadata.gz: 57350f9fa6579dc906316bc7939fc961c98103d0
4
- data.tar.gz: 92a1842c9e2e659de2eb9aac6aa75f673b91c83e
3
+ metadata.gz: 5d984674374c9328bae55a34db007f42300b2274
4
+ data.tar.gz: 715c0b3de90c2aca1ad2781f1b2d1a93e1fabd84
5
5
  SHA512:
6
- metadata.gz: c0b22706f05e3f6509769e9058158d088a9193bbd7c956e17d627183b48ee26c095bc8233bfec39a5c07de2eb7848d0dc3c001b7a769ef3a52cc3c4126ab6add
7
- data.tar.gz: 3cc3e1458b1869b33e3ec8631f73a0e94d0839e2de7c4ab99c39c1a8107518e8237aebb5bf3df31ca24be00bb2d40ee1df35e1058e2cf51b05e534003a7a6fa8
6
+ metadata.gz: 01105f45cf67a08b6846df520db7f9dda96d42c4b8b432264445d93f01f055feb20a0e904da7399c4de50bdeb57861c1039432666c8f26d1ff32f0637ed577e9
7
+ data.tar.gz: a27de2e25e370168c0fa66a6c3c474a3346c286e924d6a9f3a6c417d7de9fe18cccfe90771dc0df0aeab4c11774136d3e21097faf7e129b606bfa07aa4dd9f1c
@@ -0,0 +1,13 @@
1
+ [Unit]
2
+ Description=watch stocks
3
+
4
+ [Service]
5
+ Type=forking
6
+ WorkingDirectory=/home/ubuntu/projects/microsites3/current
7
+ ExecStart=/usr/bin/bundle exec rake ish_manager:watch_stocks
8
+ ExecStop=/bin/echo nothing
9
+ Restart=on-failure
10
+ Environment=RAILS_ENV=production
11
+
12
+ [Install]
13
+ WantedBy=multi-user.target
@@ -20,9 +20,9 @@ namespace :ish_manager do
20
20
 
21
21
  desc 'watch the stocks'
22
22
  task :watch_stocks => :environment do
23
- stocks = IshModels::StockWatch.where( :notification_type => :EMAIL )
24
23
  while true
25
- print '.'
24
+ stocks = IshModels::StockWatch.where( :notification_type => :EMAIL )
25
+ puts! stocks.map(&:ticker), "Watching these stocks on #{Time.now}"
26
26
  stocks.each do |stock|
27
27
  begin
28
28
  Timeout::timeout( 10 ) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.54
4
+ version: 0.1.8.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -307,6 +307,7 @@ files:
307
307
  - lib/ish_manager.rb
308
308
  - lib/ish_manager/engine.rb
309
309
  - lib/ish_manager/version.rb
310
+ - lib/systemd/system/watch_stocks.service
310
311
  - lib/tasks/ish_manager_tasks.rake
311
312
  homepage: http://wasya.co
312
313
  licenses: