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 +4 -4
- data/lib/systemd/system/watch_stocks.service +13 -0
- data/lib/tasks/ish_manager_tasks.rake +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d984674374c9328bae55a34db007f42300b2274
|
4
|
+
data.tar.gz: 715c0b3de90c2aca1ad2781f1b2d1a93e1fabd84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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:
|