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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d384463e4c37155226e6cedb4a2156b77d7a9df8660f420acb15fc04de7875f0
4
- data.tar.gz: 82e3e395beb272f6634ae1335093cee1ffa10504229720fe5a5821c5d811d6e9
3
+ metadata.gz: d40a387e6624886030d8bdaf44ffc1fe19d7d776810f6b369d4e0bc06f658b36
4
+ data.tar.gz: 26f2281e64fbfac162390bcc25be978e7e58498dd7fb4c6fa67e0e7c1d0f4e5e
5
5
  SHA512:
6
- metadata.gz: d60b522b67253efd740f0fb41943f3fcdc9c76ec0441c0880c0e409b9769d5d30544857573fe42411bf4e0ebac89808348e8ba34b9d274521dfb75e16c93edc6
7
- data.tar.gz: a4edd8b79853a7d59135b4e9d136a2f4556a8de663adf9c926f1bd7f1491aa1a655095216845543e5d0d9c0996155f525b3659b236c460de54dfc97e23e65695
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 18:21:06 UTC using RuboCop version 1.39.0.
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: 81
90
+ # Offense count: 84
91
91
  Lint/UselessAssignment:
92
92
  Enabled: false
93
93
 
94
- # Offense count: 49
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: 20
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: 17
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: 1
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.
@@ -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
- !event_history.order_plan_details_win_active &&
39
- !event_history.order_execute_win_active
40
-
41
- event_history.order_plan_win_active = false
42
- event_history.order_plan_details_win_active = true
43
- elsif !event_history.order_plan_win_active &&
44
- event_history.order_plan_details_win_active &&
45
- !event_history.order_execute_win_active
46
-
47
- event_history.order_plan_win_active = true
48
- event_history.order_plan_details_win_active = false
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]} ORDER SLICE DETAILS -"
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.268'
4
+ VERSION = '0.0.269'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.268
4
+ version: 0.0.269
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.