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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f61541db2ac726664bf592a47019da569ad85403b9b26a924366657509c2565a
4
- data.tar.gz: 2ef562b270cef3b85e2b2c3af9808e08d4cf75badd88ceb1745305d31f174538
3
+ metadata.gz: 2dfaf6516f26abca6a4dc1c6eee5013a09db12bfe41f75a36d24a0cab2b1a153
4
+ data.tar.gz: e9b4f31a8a94bface62fe23ef17d7a499c253072e909503b21eb9e003dbf1e74
5
5
  SHA512:
6
- metadata.gz: 50d5a78b34068ec39ca82051ff6c141c2d9092b2e5438aef7c505b1359d84717a402235528ebb4a3293b283ea4bc43ecf9f7af8499625ac327eee55d10dcd900
7
- data.tar.gz: c7a9d135d3bf85100e994e8ad00e21b64cc2120b206c4e87decd94f3f7794f75052ed947e594557bf221bd0e9087a75b52d8db1385332492e16fd71c94000c40
6
+ metadata.gz: c2166c1d3e5faf265240786ddceb5696587488c57ae37ea8181749f5efaebae191bce4326fb4bd7c1f7f05b7daefac0ed596eb03d75e897f6e4761892f0b06b4
7
+ data.tar.gz: dcc0bdf5d21e186841018d970b33948b702788affdf0f7ec9b9bb9cd5106739a22c3e93052e5a9b55deea2c6043944ba90232ad41c0c87b39c083b3da1c64a6c
@@ -0,0 +1,2 @@
1
+
2
+ //= link_directory ../stylesheets/iron_warbler .css
@@ -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
- # Only allow a list of trusted parameters through.
58
- def alert_params
59
- params.require(:alert).permit(:class_name, :kind, :symbol, :direction, :strike, :profile_id)
60
- end
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
@@ -1,6 +1,10 @@
1
1
  IronWarbler::Engine.routes.draw do
2
- resources :alerts
3
- root to: 'application#home'
4
2
 
3
+ root to: '/iro/application#home'
4
+
5
+ resources :alerts
6
+ resources :option_watches
5
7
  resources :profiles
8
+ resources :stock_watches
9
+
6
10
  end
@@ -0,0 +1,8 @@
1
+ module IronWarbler; end
2
+ module Iro; end
3
+
4
+ class IronWarbler::Engine < ::Rails::Engine
5
+ isolate_namespace Iro
6
+ isolate_namespace IronWarbler
7
+ end
8
+
data/lib/iron_warbler.rb CHANGED
@@ -1,8 +1,7 @@
1
- require "iro/version"
2
- require "iro/engine"
3
1
 
4
- module Iro
5
- end
2
+ require 'haml'
6
3
 
7
- module IronWarbler
8
- end
4
+ require "iron_warbler/engine"
5
+
6
+ module Iro; end
7
+ module IronWarbler; end
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
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-10 00:00:00.000000000 Z
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: Stocks and Options Trading Bot
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/iro_manifest.js
119
- - app/assets/stylesheets/iro/alerts.css
120
- - app/assets/stylesheets/iro/application.css
121
- - app/assets/stylesheets/iro/profiles.css
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.html.erb
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-trash
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
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Iro</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag "iro/application", media: "all" %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- </body>
15
- </html>
data/lib/iro/engine.rb DELETED
@@ -1,5 +0,0 @@
1
- module IronWarbler
2
- class Engine < ::Rails::Engine
3
- isolate_namespace Iro
4
- end
5
- end
data/lib/iro/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module Iro
2
- VERSION = '0.1.0'
3
- end
@@ -1,8 +0,0 @@
1
-
2
- require 'iro/engine'
3
-
4
- module IronWarbler
5
- class Engine < ::Rails::Engine
6
- isolate_namespace Iro
7
- end
8
- end