iron_warbler 2.0.7.34 → 2.0.7.35
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 +4 -4
- data/app/controllers/iro/datapoints_controller.rb +3 -17
- data/app/views/iro/_main_header.haml +6 -0
- data/app/views/iro/datapoints/index.haml +14 -0
- data/config/routes.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd6aac35369c50f31620e5789277576c5583fe794a1426306cee25fc3fc05d88
|
4
|
+
data.tar.gz: c17dbf154ed517eb8f12a9381f4f95b3eda24790d5551028434ecaf8b9c9df80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11aeb5d8617e158e6a4e592dd401b59650f226e60100c31a8a2b48fe8cf3d7ba101ea7c404ad24ada2933bf8abbc38c8fac5bea075d3694e0e7bf15712c8dc32
|
7
|
+
data.tar.gz: d250b26d4f5be51875ec567c4a50da88eef68609bec3936a50fcec52a519ebc21131c3c427a4f42564f8d921009c868c5268bc564566891a55799c0263ce7b9c
|
@@ -17,23 +17,9 @@ class Iro::DatapointsController < Iro::ApplicationController
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def index
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
sql = "SELECT
|
25
|
-
dps.k, dps.v, d.date
|
26
|
-
FROM
|
27
|
-
iro_datapoints as dps
|
28
|
-
RIGHT JOIN dates d ON d.date = dps.d WHERE d.date BETWEEN '2023-12-01' AND '2023-12-31'
|
29
|
-
ORDER BY
|
30
|
-
d.date;"
|
31
|
-
|
32
|
-
# outs = ActiveRecord::Base.connection.execute(sql)
|
33
|
-
# puts! outs, 'outs'
|
34
|
-
|
35
|
-
render json: outs
|
36
|
-
|
20
|
+
authorize! :datapoints_index, Iro
|
21
|
+
@symbol = params[:symbol] || params[:q]
|
22
|
+
@datapoints = Iro::Datapoint.where( symbol: @symbol ).order_by( quote_at: :desc ).limit(100)
|
37
23
|
end
|
38
24
|
|
39
25
|
end
|
data/config/routes.rb
CHANGED
@@ -6,6 +6,8 @@ Iro::Engine.routes.draw do
|
|
6
6
|
|
7
7
|
post 'datapoints', to: '/iro/datapoints#create'
|
8
8
|
get 'datapoints', to: '/iro/datapoints#index'
|
9
|
+
get 'datapoints/by-symbol', to: '/iro/datapoints#index'
|
10
|
+
get 'datapoints/by-symbol/:symbol', to: '/iro/datapoints#index'
|
9
11
|
|
10
12
|
resources :option_watches
|
11
13
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_warbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.7.
|
4
|
+
version: 2.0.7.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
@@ -262,6 +262,7 @@ files:
|
|
262
262
|
- app/views/iro/api/stocks/show.json.jbuilder
|
263
263
|
- app/views/iro/api/stocks/show.json.jbuilder-bk
|
264
264
|
- app/views/iro/application/home.haml
|
265
|
+
- app/views/iro/datapoints/index.haml
|
265
266
|
- app/views/iro/options/_show_mini.haml
|
266
267
|
- app/views/iro/positions/_form.haml
|
267
268
|
- app/views/iro/positions/_formpart_4data.haml
|