ish_manager 0.1.8.268 → 0.1.8.271
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/bg/weather-development.png +0 -0
- data/app/assets/images/bg/weather-development.png~ +0 -0
- data/app/assets/javascripts/ish_manager/application.js +4 -6
- data/app/assets/stylesheets/ish_manager/application.scss +38 -33
- data/app/controllers/ish_manager/stock_watches_controller.rb +2 -1
- data/app/views/ish_manager/application/_debug.haml +1 -1
- data/app/views/ish_manager/application/_main_header_admin.haml +1 -1
- data/app/views/layouts/ish_manager/application.haml +1 -1
- data/app/views/layouts/ish_manager/{application_no_materialize.haml → application2.haml} +15 -5
- data/lib/tasks/ish_manager_tasks.rake +11 -4
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbe380e8428822aa7772e8ab4a79b247dec85cbf1796722d1dc0cfc7207a2c98
|
4
|
+
data.tar.gz: ef0a6cdf516c45eac31a13aecf6959136bd9383ab42e128af1df69f01cbe6640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21185a5474503b65d9dc1a32d5f3cd2e84a98868802cb6ac47638ea1ff2167f01e723d3b1b62f99d38d95ba2f7f0cd0f6a142143f01321ff96c6e57cba2f68f4
|
7
|
+
data.tar.gz: a63cbfbf736782918d64994f054565ac7e9b4e15b5281dc4c0ba2f5e730faa9c313d6f5648b7b2372332e87c99c13ad18e4feb4b6efc788f62b48899422df33b
|
Binary file
|
Binary file
|
@@ -11,7 +11,7 @@
|
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
13
|
// require ish_manager/jquery-3.2.1.min
|
14
|
-
|
14
|
+
// require ish_manager/bootstrap.min
|
15
15
|
//= require ish_manager/jquery.iframe-transport
|
16
16
|
//= require ish_manager/jquery.ui.widget
|
17
17
|
//= require ish_manager/jquery.fileupload
|
@@ -20,6 +20,7 @@
|
|
20
20
|
//= require ish_manager/maps
|
21
21
|
|
22
22
|
$(function () {
|
23
|
+
|
23
24
|
$('#fileupload').fileupload({
|
24
25
|
dataType: 'json',
|
25
26
|
done: function (e, data) {
|
@@ -28,9 +29,6 @@ $(function () {
|
|
28
29
|
$('<img/>').attr('src', tempUrl).appendTo(photos);
|
29
30
|
}
|
30
31
|
});
|
31
|
-
});
|
32
|
-
|
33
|
-
$(function () {
|
34
32
|
|
35
33
|
$('*[data-confirm]').click(function(){
|
36
34
|
return confirm($(this).attr('data-confirm'));
|
@@ -44,9 +42,9 @@ $(function () {
|
|
44
42
|
});
|
45
43
|
}
|
46
44
|
|
47
|
-
if ($('body').length > 0) {
|
45
|
+
/* if ($('body').length > 0) {
|
48
46
|
$('select').material_select()
|
49
|
-
}
|
47
|
+
} */
|
50
48
|
|
51
49
|
$(".caret").each(function(idx) {
|
52
50
|
$($(".caret")[idx]).html('')
|
@@ -172,7 +172,6 @@ textarea.large {
|
|
172
172
|
|
173
173
|
/* M */
|
174
174
|
|
175
|
-
.menu-secondary {}
|
176
175
|
.menu-secondary li {
|
177
176
|
display: inline;
|
178
177
|
}
|
@@ -181,6 +180,44 @@ textarea.large {
|
|
181
180
|
background: white;
|
182
181
|
}
|
183
182
|
|
183
|
+
|
184
|
+
.manager--main-header {
|
185
|
+
background: url('/assets/bg/weather.png');
|
186
|
+
|
187
|
+
a {
|
188
|
+
background: white;
|
189
|
+
padding: .2em;
|
190
|
+
}
|
191
|
+
|
192
|
+
hr {
|
193
|
+
margin-top: 0;
|
194
|
+
}
|
195
|
+
|
196
|
+
ul {
|
197
|
+
li {
|
198
|
+
display: inline;
|
199
|
+
padding: 1em;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
|
206
|
+
.manager--main-header.development {
|
207
|
+
background: url('/assets/bg/weather-development.png');
|
208
|
+
}
|
209
|
+
|
210
|
+
.manager-galleries--index .mini {
|
211
|
+
float: left;
|
212
|
+
}
|
213
|
+
|
214
|
+
.manager-sites--title {
|
215
|
+
padding: 1em;
|
216
|
+
background: url('/assets/bg/weather.png');
|
217
|
+
border-bottom: 1px solid red;
|
218
|
+
}
|
219
|
+
|
220
|
+
|
184
221
|
/* P */
|
185
222
|
.panel-content {
|
186
223
|
padding: .5em;
|
@@ -213,38 +250,6 @@ ul.inline li {
|
|
213
250
|
|
214
251
|
|
215
252
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
/**
|
221
|
-
* manager...
|
222
|
-
*/
|
223
|
-
|
224
|
-
.manager--main-header {
|
225
|
-
background: url('/assets/bg/weather.png');
|
226
|
-
ul {
|
227
|
-
li {
|
228
|
-
display: inline;
|
229
|
-
padding: 1em;
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|
233
|
-
.manager--main-header hr {
|
234
|
-
margin-top: 0;
|
235
|
-
}
|
236
|
-
|
237
|
-
.manager-galleries--index .mini {
|
238
|
-
float: left;
|
239
|
-
}
|
240
|
-
|
241
|
-
.manager-sites--title {
|
242
|
-
padding: 1em;
|
243
|
-
background: url('/assets/bg/weather.png');
|
244
|
-
border-bottom: 1px solid red;
|
245
|
-
}
|
246
|
-
|
247
|
-
|
248
253
|
/**
|
249
254
|
* reports
|
250
255
|
*/
|
@@ -1,6 +1,8 @@
|
|
1
1
|
|
2
2
|
class IshManager::StockWatchesController < IshManager::ApplicationController
|
3
3
|
|
4
|
+
layout 'ish_manager/application2'
|
5
|
+
|
4
6
|
def create
|
5
7
|
@stock_watch = Warbler::StockWatch.new permitted_params
|
6
8
|
authorize! :create, @stock_watch
|
@@ -31,7 +33,6 @@ class IshManager::StockWatchesController < IshManager::ApplicationController
|
|
31
33
|
@stock_watches = Warbler::StockWatch.order_by( ticker: :asc, direction: :asc, price: :desc
|
32
34
|
).includes( :profile )
|
33
35
|
@stock_watch = Warbler::StockWatch.new
|
34
|
-
# render 'index', :layout => 'ish_manager/application_no_materialize'
|
35
36
|
end
|
36
37
|
|
37
38
|
def update
|
@@ -12,10 +12,10 @@
|
|
12
12
|
%script{ :src => "//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" }
|
13
13
|
= stylesheet_link_tag "//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"
|
14
14
|
= stylesheet_link_tag "//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css", :media => 'all'
|
15
|
+
= stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
|
15
16
|
|
16
17
|
= stylesheet_link_tag "ish_manager/materialize", media: "all"
|
17
18
|
= stylesheet_link_tag "ish_manager/application", media: "all"
|
18
|
-
= stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
|
19
19
|
|
20
20
|
= javascript_include_tag "ish_manager/application"
|
21
21
|
= javascript_include_tag "ish_manager/materialize"
|
@@ -5,16 +5,23 @@
|
|
5
5
|
%link{ :rel => 'icon', :href => '/favicon.ico?v=1' }
|
6
6
|
%meta{ :name => :viewport, :content => 'width=device-width, initial-scale=1.0' }
|
7
7
|
%meta{ :charset => 'UTF-8' }
|
8
|
-
%meta{ :description => '
|
9
|
-
|
10
|
-
%script{ :src => "
|
11
|
-
%script{ :src => "
|
8
|
+
%meta{ :description => 'Ish CMS - Ish Manager' }
|
9
|
+
|
10
|
+
%script{ :src => "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" }
|
11
|
+
%script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
|
12
|
+
%script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
|
12
13
|
%script{ :src => "//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" }
|
14
|
+
|
15
|
+
|
16
|
+
= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"
|
13
17
|
= stylesheet_link_tag "//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"
|
14
|
-
= stylesheet_link_tag "ish_manager/application", media: "all"
|
15
18
|
= stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
|
16
19
|
= stylesheet_link_tag "//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css", :media => 'all'
|
20
|
+
|
21
|
+
= stylesheet_link_tag "ish_manager/application", media: "all"
|
22
|
+
|
17
23
|
= javascript_include_tag "ish_manager/application"
|
24
|
+
|
18
25
|
= csrf_meta_tags
|
19
26
|
%body#application_no_materialize
|
20
27
|
.bg-white
|
@@ -31,3 +38,6 @@
|
|
31
38
|
= yield
|
32
39
|
= render :partial => 'ish_manager/application/main_footer'
|
33
40
|
= render 'debug' if Rails.env.development?
|
41
|
+
%script{ src: "//cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js" }
|
42
|
+
:javascript
|
43
|
+
M.AutoInit();
|
@@ -4,6 +4,10 @@ def puts! a, b=''
|
|
4
4
|
puts a.inspect
|
5
5
|
end
|
6
6
|
|
7
|
+
class Warbler::StockWatch
|
8
|
+
SLEEP_TIME_SECONDS = 60
|
9
|
+
end
|
10
|
+
|
7
11
|
namespace :ish_manager do
|
8
12
|
|
9
13
|
desc "every user needs a user_profile"
|
@@ -21,13 +25,16 @@ namespace :ish_manager do
|
|
21
25
|
desc 'watch the stocks, and trigger actions - not alphavantage, tda now. 2021-08-08'
|
22
26
|
task watch_stocks: :environment do
|
23
27
|
while true
|
24
|
-
stocks = Warbler::StockWatch.where( :
|
28
|
+
stocks = Warbler::StockWatch.where( notification_type: :EMAIL )
|
25
29
|
stocks.each do |stock|
|
30
|
+
|
31
|
+
puts! stock, 'stock'
|
32
|
+
|
26
33
|
begin
|
27
34
|
Timeout::timeout( 10 ) do
|
28
|
-
out =
|
35
|
+
out = Warbler::Ameritrade::Api.get_quote({ symbol: stock.ticker })
|
29
36
|
r = out[:lastPrice]
|
30
|
-
if stock.direction == :ABOVE &&
|
37
|
+
if stock.direction == :ABOVE && r >= stock.price ||
|
31
38
|
stock.direction == :BELOW && r <= stock.price
|
32
39
|
IshManager::ApplicationMailer.stock_alert( stock ).deliver
|
33
40
|
end
|
@@ -36,7 +43,7 @@ namespace :ish_manager do
|
|
36
43
|
puts! e, 'e in :watch_stocks'
|
37
44
|
end
|
38
45
|
end
|
39
|
-
sleep
|
46
|
+
sleep Warbler::StockWatch::SLEEP_TIME_SECONDS
|
40
47
|
end
|
41
48
|
end
|
42
49
|
|
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.271
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -134,6 +134,8 @@ files:
|
|
134
134
|
- app/assets/images/bg/confectionary.png
|
135
135
|
- app/assets/images/bg/gplaypattern.png
|
136
136
|
- app/assets/images/bg/triangular.png
|
137
|
+
- app/assets/images/bg/weather-development.png
|
138
|
+
- app/assets/images/bg/weather-development.png~
|
137
139
|
- app/assets/images/bg/weather.png
|
138
140
|
- app/assets/images/favicon.gif
|
139
141
|
- app/assets/images/icons/10x10_red-cross.png
|
@@ -372,7 +374,7 @@ files:
|
|
372
374
|
- app/views/ish_manager/videos/new.haml
|
373
375
|
- app/views/ish_manager/videos/show.haml
|
374
376
|
- app/views/layouts/ish_manager/application.haml
|
375
|
-
- app/views/layouts/ish_manager/
|
377
|
+
- app/views/layouts/ish_manager/application2.haml
|
376
378
|
- config/routes.rb
|
377
379
|
- lib/ish_manager.rb
|
378
380
|
- lib/ish_manager/engine.rb
|