cryptum 0.0.460 → 0.0.462
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/.rubocop.yml +2 -2
- data/lib/cryptum/ui/order/execute.rb +11 -10
- data/lib/cryptum/ui/order/plan.rb +2 -6
- data/lib/cryptum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b01792e111d040337fc5179dc59cc5b49dd4cdc693d2b7a4149e6e85d056316d
|
4
|
+
data.tar.gz: c0d7ce82def2ead71b876bdd9a328b884519122b07c1ebe4ce80b7496070ae43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d26e0469d6f9057456abf77c5dbdfce467ed08de0636ec4bc5fb16efb0f5c0405450c956f583cfc4e15ad2a34e5e963d7130cd0c165a2485e0b28ee02323ce37
|
7
|
+
data.tar.gz: 75990e3327dd4710925d0e5146f51a1491fa0a2d4783e0d41b00c724d47c9d7f45db65896da079dc9b9223c8255a05fa77c0f5da56a648f6ff5654fa278e8a37
|
data/.rubocop.yml
CHANGED
@@ -14,13 +14,13 @@ Metrics/BlockNesting:
|
|
14
14
|
Metrics/ClassLength:
|
15
15
|
Max: 134
|
16
16
|
Metrics/CyclomaticComplexity:
|
17
|
-
Max:
|
17
|
+
Max: 103
|
18
18
|
Metrics/MethodLength:
|
19
19
|
Max: 485
|
20
20
|
Metrics/ModuleLength:
|
21
21
|
Max: 495
|
22
22
|
Metrics/PerceivedComplexity:
|
23
|
-
Max:
|
23
|
+
Max: 101
|
24
24
|
Style/HashSyntax:
|
25
25
|
EnforcedShorthandSyntax: never
|
26
26
|
|
@@ -179,12 +179,17 @@ module Cryptum
|
|
179
179
|
event_side == :buy &&
|
180
180
|
event_reason == :canceled
|
181
181
|
|
182
|
+
# Remove all white hashes from order_history_meta
|
183
|
+
order_history_meta = order_history_meta.reject! do |ohm|
|
184
|
+
ohm[:color] == :white
|
185
|
+
end
|
186
|
+
|
182
187
|
buy_order_id = event_history.event[:order_id]
|
183
|
-
order_history_meta.each do |
|
184
|
-
next unless
|
188
|
+
order_history_meta.each do |ohm|
|
189
|
+
next unless ohm[:buy_order_id] == buy_order_id
|
185
190
|
|
186
|
-
|
187
|
-
|
191
|
+
ohm[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
|
192
|
+
ohm[:color] = :white
|
188
193
|
end
|
189
194
|
end
|
190
195
|
|
@@ -454,20 +459,17 @@ module Cryptum
|
|
454
459
|
|
455
460
|
# ROW 1
|
456
461
|
out_line_no = 0
|
457
|
-
line_color = :white
|
458
462
|
header_color = :white
|
459
463
|
header_style = :bold
|
460
464
|
style = :bold
|
461
465
|
if event_history.order_execute_win_active
|
462
|
-
line_color = :blue
|
463
466
|
header_color = :blue
|
464
467
|
header_style = :reverse
|
465
468
|
end
|
466
469
|
|
467
470
|
Cryptum::UI.line(
|
468
471
|
ui_win: order_execute_win,
|
469
|
-
out_line_no: out_line_no
|
470
|
-
color: line_color
|
472
|
+
out_line_no: out_line_no
|
471
473
|
)
|
472
474
|
|
473
475
|
# ROW 2
|
@@ -662,8 +664,7 @@ module Cryptum
|
|
662
664
|
out_line_no += 1
|
663
665
|
Cryptum::UI.line(
|
664
666
|
ui_win: order_execute_win,
|
665
|
-
out_line_no: out_line_no
|
666
|
-
color: line_color
|
667
|
+
out_line_no: out_line_no
|
667
668
|
)
|
668
669
|
|
669
670
|
order_execute_win.refresh
|
@@ -227,20 +227,17 @@ module Cryptum
|
|
227
227
|
|
228
228
|
# ROW 1
|
229
229
|
out_line_no = 0
|
230
|
-
line_color = :white
|
231
230
|
header_color = :white
|
232
231
|
header_style = :bold
|
233
232
|
style = :bold
|
234
233
|
if event_history.order_plan_win_active
|
235
|
-
line_color = :blue
|
236
234
|
header_color = :blue
|
237
235
|
header_style = :reverse
|
238
236
|
end
|
239
237
|
|
240
238
|
Cryptum::UI.line(
|
241
239
|
ui_win: order_plan_win,
|
242
|
-
out_line_no: out_line_no
|
243
|
-
color: line_color
|
240
|
+
out_line_no: out_line_no
|
244
241
|
)
|
245
242
|
|
246
243
|
# ROW 2
|
@@ -453,8 +450,7 @@ module Cryptum
|
|
453
450
|
out_line_no += 1
|
454
451
|
Cryptum::UI.line(
|
455
452
|
ui_win: order_plan_win,
|
456
|
-
out_line_no: out_line_no
|
457
|
-
color: line_color
|
453
|
+
out_line_no: out_line_no
|
458
454
|
)
|
459
455
|
|
460
456
|
order_plan_win.refresh
|
data/lib/cryptum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.462
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|