iron_warbler 2.0.4 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/iron_warbler_manifest.js +2 -0
- data/app/controllers/iro/alerts_controller.rb +14 -18
- data/app/views/layouts/iro/application.haml +18 -0
- data/config/routes.rb +6 -2
- data/lib/iron_warbler/engine.rb +8 -0
- data/lib/iron_warbler.rb +5 -6
- metadata +9 -25
- data/app/assets/config/iro_manifest.js +0 -1
- data/app/views/layouts/iro/application.html.erb +0 -15
- data/lib/iro/engine.rb +0 -5
- data/lib/iro/version.rb +0 -3
- data/lib/iron_warbler/engine.rb-trash +0 -8
- /data/app/assets/stylesheets/{iro → iron_warbler}/alerts.css +0 -0
- /data/app/assets/stylesheets/{iro → iron_warbler}/application.css +0 -0
- /data/app/assets/stylesheets/{iro → iron_warbler}/profiles.css +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dfaf6516f26abca6a4dc1c6eee5013a09db12bfe41f75a36d24a0cab2b1a153
|
4
|
+
data.tar.gz: e9b4f31a8a94bface62fe23ef17d7a499c253072e909503b21eb9e003dbf1e74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2166c1d3e5faf265240786ddceb5696587488c57ae37ea8181749f5efaebae191bce4326fb4bd7c1f7f05b7daefac0ed596eb03d75e897f6e4761892f0b06b4
|
7
|
+
data.tar.gz: dcc0bdf5d21e186841018d970b33948b702788affdf0f7ec9b9bb9cd5106739a22c3e93052e5a9b55deea2c6043944ba90232ad41c0c87b39c083b3da1c64a6c
|
@@ -4,27 +4,22 @@ require_dependency "iro/application_controller"
|
|
4
4
|
class Iro::AlertsController < ApplicationController
|
5
5
|
before_action :set_alert, only: [:show, :edit, :update, :destroy]
|
6
6
|
|
7
|
-
# GET /alerts
|
8
7
|
def index
|
9
|
-
@alerts = Alert.all
|
8
|
+
@alerts = Iro::Alert.all
|
10
9
|
end
|
11
10
|
|
12
|
-
# GET /alerts/1
|
13
11
|
def show
|
14
12
|
end
|
15
13
|
|
16
|
-
# GET /alerts/new
|
17
14
|
def new
|
18
|
-
@alert = Alert.new
|
15
|
+
@alert = Iro::Alert.new
|
19
16
|
end
|
20
17
|
|
21
|
-
# GET /alerts/1/edit
|
22
18
|
def edit
|
23
19
|
end
|
24
20
|
|
25
|
-
# POST /alerts
|
26
21
|
def create
|
27
|
-
@alert = Alert.new(alert_params)
|
22
|
+
@alert = Iro::Alert.new(alert_params)
|
28
23
|
|
29
24
|
if @alert.save
|
30
25
|
redirect_to @alert, notice: 'Alert was successfully created.'
|
@@ -33,7 +28,6 @@ class Iro::AlertsController < ApplicationController
|
|
33
28
|
end
|
34
29
|
end
|
35
30
|
|
36
|
-
# PATCH/PUT /alerts/1
|
37
31
|
def update
|
38
32
|
if @alert.update(alert_params)
|
39
33
|
redirect_to @alert, notice: 'Alert was successfully updated.'
|
@@ -42,21 +36,23 @@ class Iro::AlertsController < ApplicationController
|
|
42
36
|
end
|
43
37
|
end
|
44
38
|
|
45
|
-
# DELETE /alerts/1
|
46
39
|
def destroy
|
47
40
|
@alert.destroy
|
48
41
|
redirect_to alerts_url, notice: 'Alert was successfully destroyed.'
|
49
42
|
end
|
50
43
|
|
44
|
+
##
|
45
|
+
## private
|
46
|
+
##
|
51
47
|
private
|
52
|
-
# Use callbacks to share common setup or constraints between actions.
|
53
|
-
def set_alert
|
54
|
-
@alert = Alert.find(params[:id])
|
55
|
-
end
|
56
48
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
49
|
+
def set_alert
|
50
|
+
@alert = Iro::Alert.find(params[:id])
|
51
|
+
end
|
52
|
+
|
53
|
+
def alert_params
|
54
|
+
params.require(:alert).permit(:class_name, :kind, :symbol, :direction, :strike, :profile_id)
|
55
|
+
end
|
56
|
+
|
61
57
|
end
|
62
58
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
5
|
+
%title Iron Warbler
|
6
|
+
= csrf_meta_tags
|
7
|
+
= csp_meta_tag
|
8
|
+
= stylesheet_link_tag "iron_warbler/application", media: "all"
|
9
|
+
%body
|
10
|
+
.main-menu
|
11
|
+
%h5 Main Menu
|
12
|
+
%ul
|
13
|
+
%li= link_to 'Home - Dashboard', root_path
|
14
|
+
%li= link_to 'Stock Watches', stock_watches_path
|
15
|
+
%li= link_to 'Option Watches', option_watches_path
|
16
|
+
%li Max Pain
|
17
|
+
%li= link_to 'Alerts', alerts_path
|
18
|
+
= yield
|
data/config/routes.rb
CHANGED
data/lib/iron_warbler.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_warbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.21.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: jwt
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 2.3.0
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 2.3.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: jbuilder
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,17 +94,17 @@ dependencies:
|
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: 5.2.0
|
111
|
-
description:
|
97
|
+
description: A stocks and Options Trading Bot.
|
112
98
|
email: victor@wasya.co
|
113
99
|
executables: []
|
114
100
|
extensions: []
|
115
101
|
extra_rdoc_files: []
|
116
102
|
files:
|
117
103
|
- Rakefile
|
118
|
-
- app/assets/config/
|
119
|
-
- app/assets/stylesheets/
|
120
|
-
- app/assets/stylesheets/
|
121
|
-
- app/assets/stylesheets/
|
104
|
+
- app/assets/config/iron_warbler_manifest.js
|
105
|
+
- app/assets/stylesheets/iron_warbler/alerts.css
|
106
|
+
- app/assets/stylesheets/iron_warbler/application.css
|
107
|
+
- app/assets/stylesheets/iron_warbler/profiles.css
|
122
108
|
- app/assets/stylesheets/scaffold.css
|
123
109
|
- app/controllers/iro/alerts_controller.rb
|
124
110
|
- app/controllers/iro/application_controller.rb
|
@@ -142,14 +128,12 @@ files:
|
|
142
128
|
- app/views/iro/profiles/index.html.erb
|
143
129
|
- app/views/iro/profiles/new.html.erb
|
144
130
|
- app/views/iro/profiles/show.html.erb
|
145
|
-
- app/views/layouts/iro/application.
|
131
|
+
- app/views/layouts/iro/application.haml
|
146
132
|
- config/routes.rb
|
147
133
|
- db/migrate/20231210204830_create_iro_profiles.rb
|
148
134
|
- db/migrate/20231210205837_create_iro_alerts.rb
|
149
|
-
- lib/iro/engine.rb
|
150
|
-
- lib/iro/version.rb
|
151
135
|
- lib/iron_warbler.rb
|
152
|
-
- lib/iron_warbler/engine.rb
|
136
|
+
- lib/iron_warbler/engine.rb
|
153
137
|
- lib/tasks/iro_tasks.rake
|
154
138
|
homepage: https://wasya.co
|
155
139
|
licenses:
|
@@ -1 +0,0 @@
|
|
1
|
-
//= link_directory ../stylesheets/iro .css
|
data/lib/iro/engine.rb
DELETED
data/lib/iro/version.rb
DELETED
File without changes
|
File without changes
|
File without changes
|