ish_manager 0.1.8.282 → 0.1.8.284
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43669b702b07d6fe56625d8627184844ca961c14363abf878edb580f7ea7074f
|
|
4
|
+
data.tar.gz: a775cf8632f0275360b0cb7632bbca30414dcb9b7318f659e8d49b000baf2d24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7090d09fc32da154da49bba462130634fc607cc376806c77c110f12e0f25d2ce0f5a50d2fe8189e60b922b056667133350bbff3998be953b2764a51d6bd4a54b
|
|
7
|
+
data.tar.gz: ef0a3e0572f706f8d7b53e73c35114d43ef8c0c5220ee5d6dad48a08e7d9b79d62a464e4cb23818f2b0a5029259e7c93f2556ac50133c5c98ba9dd3041c15da0
|
|
@@ -15,12 +15,15 @@ module IshManager
|
|
|
15
15
|
:subject => 'You got new shared galleries on pi manager' ).deliver
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
def option_alert option
|
|
19
|
+
@option = option
|
|
20
|
+
mail( :to => option.profile.email, :subject => "IshManager Option Alert :: #{option.ticker}" ).deliver
|
|
21
|
+
end
|
|
18
22
|
|
|
19
23
|
def stock_alert stock
|
|
20
24
|
@stock = stock
|
|
21
25
|
mail( :to => stock.profile.email, :subject => "IshManager Stock Alert :: #{stock.ticker}" ).deliver
|
|
22
26
|
end
|
|
23
27
|
|
|
24
|
-
|
|
25
28
|
end
|
|
26
29
|
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
</head>
|
|
4
|
+
<body>
|
|
5
|
+
<h5>Notice</h5>
|
|
6
|
+
<p>The option <b><%= @option.ticker %> <%= @option.contractType %> <%= @option.date %> <%= @option.strike %></b>
|
|
7
|
+
is trading <%= @option.direction %> <%= @option.price %> at <%= Time.now %>.</p>
|
|
8
|
+
</body>
|
|
9
|
+
</html>
|
|
@@ -25,6 +25,7 @@ namespace :warbler do
|
|
|
25
25
|
puts! e, 'Error in ish_manager:watch_stocks :'
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
+
print '.'
|
|
28
29
|
sleep Warbler::StockWatch::SLEEP_TIME_SECONDS
|
|
29
30
|
end
|
|
30
31
|
end
|
|
@@ -41,13 +42,14 @@ namespace :warbler do
|
|
|
41
42
|
r = out[:last]
|
|
42
43
|
if option.direction == :ABOVE && r >= option.price ||
|
|
43
44
|
option.direction == :BELOW && r <= option.price
|
|
44
|
-
|
|
45
|
+
IshManager::ApplicationMailer.option_alert( option ).deliver
|
|
45
46
|
end
|
|
46
47
|
end
|
|
47
48
|
rescue Exception => e
|
|
48
49
|
puts! e, 'Error in ish_manager:watch_options :'
|
|
49
50
|
end
|
|
50
51
|
end
|
|
52
|
+
print '.'
|
|
51
53
|
sleep Warbler::OptionWatch::SLEEP_TIME_SECONDS
|
|
52
54
|
end
|
|
53
55
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.284
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- piousbox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-01-
|
|
11
|
+
date: 2022-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -235,6 +235,7 @@ files:
|
|
|
235
235
|
- app/views/ish_manager/application/_search.haml
|
|
236
236
|
- app/views/ish_manager/application/home.haml
|
|
237
237
|
- app/views/ish_manager/application_mailer/condor_followup_alerb.html.erb
|
|
238
|
+
- app/views/ish_manager/application_mailer/option_alert.html.erb
|
|
238
239
|
- app/views/ish_manager/application_mailer/shared_galleries.html.erb
|
|
239
240
|
- app/views/ish_manager/application_mailer/stock_alert.html.erb
|
|
240
241
|
- app/views/ish_manager/application_mailer/welcome.html.erb
|