cryptum 0.0.268 → 0.0.269
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +7 -12
- data/lib/cryptum/event/pane.rb +12 -26
- data/lib/cryptum/ui/order_plan_details.rb +1 -1
- data/lib/cryptum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d40a387e6624886030d8bdaf44ffc1fe19d7d776810f6b369d4e0bc06f658b36
|
4
|
+
data.tar.gz: 26f2281e64fbfac162390bcc25be978e7e58498dd7fb4c6fa67e0e7c1d0f4e5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62511617e610526d54b285f2fb8ae2b450ed9042c382edfcb7eaea4e88b60ea346c7401ba5ecba563b12e48cfba63ac51c6cbdede6097c67d78abf0c672369d9
|
7
|
+
data.tar.gz: f31542bfaa39f3a6d8c16b0362285bfc9cd79f6f36deec22957c1774348660f4a8a4cc8d6981b6490970403e4032bec28e82bf470c5d28129934f4fb4dcc6164
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2022-12-05
|
3
|
+
# on 2022-12-05 19:21:30 UTC using RuboCop version 1.39.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -87,11 +87,11 @@ Layout/TrailingWhitespace:
|
|
87
87
|
- 'lib/cryptum/ui/order_plan.rb'
|
88
88
|
- 'lib/cryptum/ui/order_timer.rb'
|
89
89
|
|
90
|
-
# Offense count:
|
90
|
+
# Offense count: 84
|
91
91
|
Lint/UselessAssignment:
|
92
92
|
Enabled: false
|
93
93
|
|
94
|
-
# Offense count:
|
94
|
+
# Offense count: 48
|
95
95
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
96
96
|
Metrics/AbcSize:
|
97
97
|
Max: 405
|
@@ -107,7 +107,7 @@ Metrics/BlockLength:
|
|
107
107
|
Metrics/BlockNesting:
|
108
108
|
Max: 4
|
109
109
|
|
110
|
-
# Offense count:
|
110
|
+
# Offense count: 19
|
111
111
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
112
112
|
Metrics/CyclomaticComplexity:
|
113
113
|
Max: 73
|
@@ -117,7 +117,7 @@ Metrics/CyclomaticComplexity:
|
|
117
117
|
Metrics/MethodLength:
|
118
118
|
Max: 389
|
119
119
|
|
120
|
-
# Offense count:
|
120
|
+
# Offense count: 18
|
121
121
|
# Configuration parameters: CountComments, CountAsOne.
|
122
122
|
Metrics/ModuleLength:
|
123
123
|
Max: 538
|
@@ -127,12 +127,13 @@ Metrics/ModuleLength:
|
|
127
127
|
Metrics/PerceivedComplexity:
|
128
128
|
Max: 76
|
129
129
|
|
130
|
-
# Offense count:
|
130
|
+
# Offense count: 3
|
131
131
|
# This cop supports safe autocorrection (--autocorrect).
|
132
132
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
133
133
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
134
134
|
Style/ConditionalAssignment:
|
135
135
|
Exclude:
|
136
|
+
- 'lib/cryptum/event/pane.rb'
|
136
137
|
- 'lib/cryptum/option.rb'
|
137
138
|
|
138
139
|
# Offense count: 1
|
@@ -179,12 +180,6 @@ Style/RedundantAssignment:
|
|
179
180
|
Exclude:
|
180
181
|
- 'lib/cryptum/api.rb'
|
181
182
|
|
182
|
-
# Offense count: 1
|
183
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
184
|
-
Style/RedundantInterpolation:
|
185
|
-
Exclude:
|
186
|
-
- 'lib/cryptum/ui/order_execute_details.rb'
|
187
|
-
|
188
183
|
# Offense count: 1
|
189
184
|
# This cop supports safe autocorrection (--autocorrect).
|
190
185
|
# Configuration parameters: AllowMultipleReturnValues.
|
data/lib/cryptum/event/pane.rb
CHANGED
@@ -34,32 +34,18 @@ module Cryptum
|
|
34
34
|
|
35
35
|
terminal_win.key_press_event.key_enter = false
|
36
36
|
|
37
|
-
if event_history.order_plan_win_active
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
elsif
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
end
|
50
|
-
|
51
|
-
if event_history.order_execute_win_active &&
|
52
|
-
!event_history.order_execute_details_win_active &&
|
53
|
-
!event_history.order_plan_win_active
|
54
|
-
|
55
|
-
event_history.order_execute_win_active = false
|
56
|
-
event_history.order_execute_details_win_active = true
|
57
|
-
elsif !event_history.order_execute_win_active &&
|
58
|
-
event_history.order_execute_details_win_active &&
|
59
|
-
!event_history.order_plan_win_active
|
60
|
-
|
61
|
-
event_history.order_execute_win_active = true
|
62
|
-
event_history.order_execute_details_win_active = false
|
37
|
+
if event_history.order_plan_win_active
|
38
|
+
if event_history.order_plan_details_win_active
|
39
|
+
event_history.order_plan_details_win_active = false
|
40
|
+
else
|
41
|
+
event_history.order_plan_details_win_active = true
|
42
|
+
end
|
43
|
+
elsif event_history.order_execute_win_active
|
44
|
+
if event_history.order_execute_details_win_active
|
45
|
+
event_history.order_execute_details_win_active = false
|
46
|
+
else
|
47
|
+
event_history.order_execute_details_win_active = true
|
48
|
+
end
|
63
49
|
end
|
64
50
|
rescue StandardError => e
|
65
51
|
raise e
|
@@ -53,7 +53,7 @@ module Cryptum
|
|
53
53
|
string: ''.ljust(col_just1, ' ')
|
54
54
|
)
|
55
55
|
|
56
|
-
header_str = "- ##{order[:plan_no]}
|
56
|
+
header_str = "- ORDER SLICE ##{order[:plan_no]} DETAILS -"
|
57
57
|
order_plan_details_win.setpos(
|
58
58
|
out_line_no,
|
59
59
|
Cryptum::UI.col_center(str: header_str)
|
data/lib/cryptum/version.rb
CHANGED