iron_warbler 2.0.7.8 → 2.0.7.10

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/iron_warbler/positions.scss +47 -0
  3. data/app/assets/stylesheets/iron_warbler/strategies.scss +0 -0
  4. data/app/assets/stylesheets/iron_warbler/utils.css +44 -0
  5. data/app/controllers/iro/alerts_controller.rb +6 -6
  6. data/app/controllers/iro/datapoints_controller.rb +0 -2
  7. data/app/controllers/iro/positions_controller.rb +62 -0
  8. data/app/controllers/iro/profiles_controller.rb +0 -2
  9. data/app/controllers/iro/purses_controller.rb +65 -0
  10. data/app/controllers/iro/stocks_controller.rb +10 -4
  11. data/app/controllers/iro/strategies_controller.rb +66 -0
  12. data/app/models/iro/option.rb +0 -7
  13. data/app/models/iro/position.rb +222 -0
  14. data/app/models/iro/purse.rb +17 -0
  15. data/app/models/iro/stock.rb +12 -2
  16. data/app/models/iro/strategy.rb +38 -0
  17. data/app/models/tda/option.rb +137 -0
  18. data/app/models/tda/{api.rb → stock.rb} +1 -1
  19. data/app/views/iro/_main_header.haml +16 -6
  20. data/app/views/iro/alerts/index.haml +1 -1
  21. data/app/views/iro/positions/_form.haml +59 -0
  22. data/app/views/iro/positions/_reasons.haml +4 -0
  23. data/app/views/iro/positions/_table.haml +137 -0
  24. data/app/views/iro/positions/edit.haml +4 -0
  25. data/app/views/iro/positions/new.haml +4 -0
  26. data/app/views/iro/purses/_form.haml +9 -0
  27. data/app/views/iro/purses/edit.haml +3 -0
  28. data/app/views/iro/purses/index.haml +11 -0
  29. data/app/views/iro/purses/show.haml +10 -0
  30. data/app/views/iro/stocks/_form.haml +4 -0
  31. data/app/views/iro/strategies/_form.haml +37 -0
  32. data/app/views/iro/strategies/_header.haml +8 -0
  33. data/app/views/iro/strategies/_show.haml +18 -0
  34. data/app/views/iro/strategies/_table.haml +18 -0
  35. data/app/views/iro/strategies/edit.haml +3 -0
  36. data/app/views/iro/strategies/new.haml +3 -0
  37. data/config/routes.rb +6 -0
  38. data/lib/iron_warbler.rb +4 -0
  39. data/lib/tasks/iro_tasks.rake +35 -0
  40. metadata +42 -13
  41. data/app/assets/stylesheets/iron_warbler/main.css +0 -13
  42. data/app/assets/stylesheets/scaffold.css +0 -80
  43. data/app/views/iro/alerts/edit.html.erb +0 -6
  44. data/app/views/iro/alerts/new.html.erb +0 -5
  45. data/app/views/iro/alerts/show.html.erb +0 -34
  46. data/app/views/iro/profiles/_form.html.erb +0 -32
  47. data/app/views/iro/profiles/edit.html.erb +0 -6
  48. data/app/views/iro/profiles/index.html.erb +0 -31
  49. data/app/views/iro/profiles/new.html.erb +0 -5
  50. data/app/views/iro/profiles/show.html.erb +0 -19
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_warbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7.8
4
+ version: 2.0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-06 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: business_time
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: cancancan
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -190,14 +204,18 @@ files:
190
204
  - app/assets/stylesheets/iron_warbler/alerts.css
191
205
  - app/assets/stylesheets/iron_warbler/application.css
192
206
  - app/assets/stylesheets/iron_warbler/datapoints.css
193
- - app/assets/stylesheets/iron_warbler/main.css
207
+ - app/assets/stylesheets/iron_warbler/positions.scss
194
208
  - app/assets/stylesheets/iron_warbler/profiles.css
195
- - app/assets/stylesheets/scaffold.css
209
+ - app/assets/stylesheets/iron_warbler/strategies.scss
210
+ - app/assets/stylesheets/iron_warbler/utils.css
196
211
  - app/controllers/iro/alerts_controller.rb
197
212
  - app/controllers/iro/application_controller.rb
198
213
  - app/controllers/iro/datapoints_controller.rb
214
+ - app/controllers/iro/positions_controller.rb
199
215
  - app/controllers/iro/profiles_controller.rb
216
+ - app/controllers/iro/purses_controller.rb
200
217
  - app/controllers/iro/stocks_controller.rb
218
+ - app/controllers/iro/strategies_controller.rb
201
219
  - app/helpers/iro/application_helper.rb
202
220
  - app/jobs/iro/application_job.rb
203
221
  - app/mailers/iro/alert_mailer.rb
@@ -206,25 +224,36 @@ files:
206
224
  - app/models/iro/datapoint.rb
207
225
  - app/models/iro/date.rb
208
226
  - app/models/iro/option.rb
227
+ - app/models/iro/position.rb
209
228
  - app/models/iro/price_item.rb
229
+ - app/models/iro/purse.rb
210
230
  - app/models/iro/stock.rb
211
- - app/models/tda/api.rb
231
+ - app/models/iro/strategy.rb
232
+ - app/models/tda/option.rb
233
+ - app/models/tda/stock.rb
212
234
  - app/views/iro/_analytics.erb
213
235
  - app/views/iro/_main_header.haml
214
236
  - app/views/iro/alert_mailer/stock_alert.haml
215
237
  - app/views/iro/alerts/_form.haml
216
- - app/views/iro/alerts/edit.html.erb
217
238
  - app/views/iro/alerts/index.haml
218
- - app/views/iro/alerts/new.html.erb
219
- - app/views/iro/alerts/show.html.erb
220
239
  - app/views/iro/application/home.haml
221
- - app/views/iro/profiles/_form.html.erb
222
- - app/views/iro/profiles/edit.html.erb
223
- - app/views/iro/profiles/index.html.erb
224
- - app/views/iro/profiles/new.html.erb
225
- - app/views/iro/profiles/show.html.erb
240
+ - app/views/iro/positions/_form.haml
241
+ - app/views/iro/positions/_reasons.haml
242
+ - app/views/iro/positions/_table.haml
243
+ - app/views/iro/positions/edit.haml
244
+ - app/views/iro/positions/new.haml
245
+ - app/views/iro/purses/_form.haml
246
+ - app/views/iro/purses/edit.haml
247
+ - app/views/iro/purses/index.haml
248
+ - app/views/iro/purses/show.haml
226
249
  - app/views/iro/stocks/_form.haml
227
250
  - app/views/iro/stocks/index.haml
251
+ - app/views/iro/strategies/_form.haml
252
+ - app/views/iro/strategies/_header.haml
253
+ - app/views/iro/strategies/_show.haml
254
+ - app/views/iro/strategies/_table.haml
255
+ - app/views/iro/strategies/edit.haml
256
+ - app/views/iro/strategies/new.haml
228
257
  - app/views/layouts/iro/application.haml
229
258
  - config/initializers/assets.rb
230
259
  - config/routes.rb
@@ -1,13 +0,0 @@
1
-
2
- .flex-row {
3
- display: flex;
4
- margin-bottom: 0.4em;
5
- }
6
- .field {
7
- min-width: 100px;
8
- margin-right: 1em;
9
- }
10
- .w-min-50px {
11
- min-width: 50px;
12
- }
13
-
@@ -1,80 +0,0 @@
1
- body {
2
- background-color: #fff;
3
- color: #333;
4
- margin: 33px;
5
- }
6
-
7
- body, p, ol, ul, td {
8
- font-family: verdana, arial, helvetica, sans-serif;
9
- font-size: 13px;
10
- line-height: 18px;
11
- }
12
-
13
- pre {
14
- background-color: #eee;
15
- padding: 10px;
16
- font-size: 11px;
17
- }
18
-
19
- a {
20
- color: #000;
21
- }
22
-
23
- a:visited {
24
- color: #666;
25
- }
26
-
27
- a:hover {
28
- color: #fff;
29
- background-color: #000;
30
- }
31
-
32
- th {
33
- padding-bottom: 5px;
34
- }
35
-
36
- td {
37
- padding: 0 5px 7px;
38
- }
39
-
40
- div.field,
41
- div.actions {
42
- margin-bottom: 10px;
43
- }
44
-
45
- #notice {
46
- color: green;
47
- }
48
-
49
- .field_with_errors {
50
- padding: 2px;
51
- background-color: red;
52
- display: table;
53
- }
54
-
55
- #error_explanation {
56
- width: 450px;
57
- border: 2px solid red;
58
- padding: 7px 7px 0;
59
- margin-bottom: 20px;
60
- background-color: #f0f0f0;
61
- }
62
-
63
- #error_explanation h2 {
64
- text-align: left;
65
- font-weight: bold;
66
- padding: 5px 5px 5px 15px;
67
- font-size: 12px;
68
- margin: -7px -7px 0;
69
- background-color: #c00;
70
- color: #fff;
71
- }
72
-
73
- #error_explanation ul li {
74
- font-size: 12px;
75
- list-style: square;
76
- }
77
-
78
- label {
79
- display: block;
80
- }
@@ -1,6 +0,0 @@
1
- <h1>Editing Alert</h1>
2
-
3
- <%= render 'form', alert: @alert %>
4
-
5
- <%= link_to 'Show', @alert %> |
6
- <%= link_to 'Back', alerts_path %>
@@ -1,5 +0,0 @@
1
- <h1>New Alert</h1>
2
-
3
- <%= render 'form', alert: @alert %>
4
-
5
- <%= link_to 'Back', alerts_path %>
@@ -1,34 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Class name:</strong>
5
- <%= @alert.class_name %>
6
- </p>
7
-
8
- <p>
9
- <strong>Kind:</strong>
10
- <%= @alert.kind %>
11
- </p>
12
-
13
- <p>
14
- <strong>Symbol:</strong>
15
- <%= @alert.symbol %>
16
- </p>
17
-
18
- <p>
19
- <strong>Direction:</strong>
20
- <%= @alert.direction %>
21
- </p>
22
-
23
- <p>
24
- <strong>Strike:</strong>
25
- <%= @alert.strike %>
26
- </p>
27
-
28
- <p>
29
- <strong>Profile:</strong>
30
- <%= @alert.profile_id %>
31
- </p>
32
-
33
- <%= link_to 'Edit', edit_alert_path(@alert) %> |
34
- <%= link_to 'Back', alerts_path %>
@@ -1,32 +0,0 @@
1
- <%= form_with(model: profile) do |form| %>
2
- <% if profile.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(profile.errors.count, "error") %> prohibited this profile from being saved:</h2>
5
-
6
- <ul>
7
- <% profile.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div class="field">
15
- <%= form.label :email %>
16
- <%= form.text_field :email %>
17
- </div>
18
-
19
- <div class="field">
20
- <%= form.label :role_name %>
21
- <%= form.text_field :role_name %>
22
- </div>
23
-
24
- <div class="field">
25
- <%= form.label :user_id %>
26
- <%= form.number_field :user_id %>
27
- </div>
28
-
29
- <div class="actions">
30
- <%= form.submit %>
31
- </div>
32
- <% end %>
@@ -1,6 +0,0 @@
1
- <h1>Editing Profile</h1>
2
-
3
- <%= render 'form', profile: @profile %>
4
-
5
- <%= link_to 'Show', @profile %> |
6
- <%= link_to 'Back', profiles_path %>
@@ -1,31 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <h1>Profiles</h1>
4
-
5
- <table>
6
- <thead>
7
- <tr>
8
- <th>Email</th>
9
- <th>Role name</th>
10
- <th>User</th>
11
- <th colspan="3"></th>
12
- </tr>
13
- </thead>
14
-
15
- <tbody>
16
- <% @profiles.each do |profile| %>
17
- <tr>
18
- <td><%= profile.email %></td>
19
- <td><%= profile.role_name %></td>
20
- <td><%= profile.user_id %></td>
21
- <td><%= link_to 'Show', profile %></td>
22
- <td><%= link_to 'Edit', edit_profile_path(profile) %></td>
23
- <td><%= link_to 'Destroy', profile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
24
- </tr>
25
- <% end %>
26
- </tbody>
27
- </table>
28
-
29
- <br>
30
-
31
- <%= link_to 'New Profile', new_profile_path %>
@@ -1,5 +0,0 @@
1
- <h1>New Profile</h1>
2
-
3
- <%= render 'form', profile: @profile %>
4
-
5
- <%= link_to 'Back', profiles_path %>
@@ -1,19 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Email:</strong>
5
- <%= @profile.email %>
6
- </p>
7
-
8
- <p>
9
- <strong>Role name:</strong>
10
- <%= @profile.role_name %>
11
- </p>
12
-
13
- <p>
14
- <strong>User:</strong>
15
- <%= @profile.user_id %>
16
- </p>
17
-
18
- <%= link_to 'Edit', edit_profile_path(@profile) %> |
19
- <%= link_to 'Back', profiles_path %>