cryptum 0.0.290 → 0.0.293

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8dc77704b6565774a8d5d49d92eed58716132b4f77b7ffbeef53668e2fcaac7d
4
- data.tar.gz: 5a8554b657c67c07c261ccdc7b4296bad93799d0b5d1cc4d9ebc6c1d0f249fc4
3
+ metadata.gz: 529fcd623116fbe8003e36deba8754a0e5e50843795680fb6a0b179e61662324
4
+ data.tar.gz: 55b4072da8ccc199568b33d10f283dfa04dc7eb7ec30aff09a9998a94b989d2c
5
5
  SHA512:
6
- metadata.gz: 43ac54811695555720fca29353b3596a4a5424adb0302fb9eaa6e664da0a1abb802d338b2c832bc984a6b6b23f12c6a926a7bec1c97e85e7b4212950154dbf25
7
- data.tar.gz: 52d49af394ae37013a3afe9f6fdb2de9d9419b6a3e2389a7857346c8e3088769312221dce4bd3a99779e609b7dbeb3b7fba8b5c5fa60cebcb7b7a471a0e22c2d
6
+ metadata.gz: 235d5c7052cb8b9c5deabed73fc497e198e7e8261adff584b8bc7cf6c055fcd5dd8711a32c82ea0826be2ea26e26f117d3bfc7815dd78b273209b478b70fc94c
7
+ data.tar.gz: 3d0f6e2db4966dc6508f14e6e988520c859565d2b056e0c50a5fa4fc0f61da76feb469ecc98d86c5e6d0d72b971335a4865f219e3b6bd5f60dfb1b3d35e7bbac
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-06 22:57:28 UTC using RuboCop version 1.39.0.
3
+ # on 2022-12-08 03:39:16 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
@@ -28,11 +28,10 @@ Layout/CommentIndentation:
28
28
  - 'lib/cryptum/api.rb'
29
29
  - 'lib/cryptum/ui/order_execution.rb'
30
30
 
31
- # Offense count: 4
31
+ # Offense count: 3
32
32
  # This cop supports safe autocorrection (--autocorrect).
33
33
  Layout/EmptyLineAfterGuardClause:
34
34
  Exclude:
35
- - 'lib/cryptum/order_book/market_trend.rb'
36
35
  - 'lib/cryptum/ui/order_execution.rb'
37
36
 
38
37
  # Offense count: 1
@@ -65,13 +64,12 @@ Layout/IndentationStyle:
65
64
  Exclude:
66
65
  - 'lib/cryptum/ui/order_execution.rb'
67
66
 
68
- # Offense count: 6
67
+ # Offense count: 2
69
68
  # This cop supports safe autocorrection (--autocorrect).
70
69
  # Configuration parameters: EnforcedStyle, IndentationWidth.
71
70
  # SupportedStyles: aligned, indented
72
71
  Layout/MultilineOperationIndentation:
73
72
  Exclude:
74
- - 'lib/cryptum/order_book/market_trend.rb'
75
73
  - 'lib/cryptum/ui/order_execution.rb'
76
74
  - 'lib/cryptum/ui/ticker.rb'
77
75
 
@@ -87,47 +85,47 @@ Layout/TrailingWhitespace:
87
85
  - 'lib/cryptum/ui/order_plan.rb'
88
86
  - 'lib/cryptum/ui/order_timer.rb'
89
87
 
90
- # Offense count: 87
88
+ # Offense count: 85
91
89
  Lint/UselessAssignment:
92
90
  Enabled: false
93
91
 
94
92
  # Offense count: 47
95
93
  # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
96
94
  Metrics/AbcSize:
97
- Max: 405
95
+ Max: 407
98
96
 
99
97
  # Offense count: 7
100
98
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
101
99
  # AllowedMethods: refine
102
100
  Metrics/BlockLength:
103
- Max: 146
101
+ Max: 144
104
102
 
105
103
  # Offense count: 4
106
104
  # Configuration parameters: CountBlocks.
107
105
  Metrics/BlockNesting:
108
106
  Max: 4
109
107
 
110
- # Offense count: 20
108
+ # Offense count: 19
111
109
  # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
112
110
  Metrics/CyclomaticComplexity:
113
- Max: 73
111
+ Max: 76
114
112
 
115
113
  # Offense count: 68
116
114
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
117
115
  Metrics/MethodLength:
118
- Max: 389
116
+ Max: 390
119
117
 
120
- # Offense count: 18
118
+ # Offense count: 17
121
119
  # Configuration parameters: CountComments, CountAsOne.
122
120
  Metrics/ModuleLength:
123
121
  Max: 538
124
122
 
125
- # Offense count: 20
123
+ # Offense count: 19
126
124
  # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
127
125
  Metrics/PerceivedComplexity:
128
- Max: 76
126
+ Max: 79
129
127
 
130
- # Offense count: 4
128
+ # Offense count: 5
131
129
  # This cop supports safe autocorrection (--autocorrect).
132
130
  # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
133
131
  # SupportedStyles: assign_to_condition, assign_inside_condition
@@ -162,7 +160,7 @@ Style/Next:
162
160
  Exclude:
163
161
  - 'lib/cryptum/api.rb'
164
162
 
165
- # Offense count: 4
163
+ # Offense count: 3
166
164
  # This cop supports safe autocorrection (--autocorrect).
167
165
  # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
168
166
  Style/NumericLiterals:
data/lib/cryptum/event.rb CHANGED
@@ -139,7 +139,7 @@ module Cryptum
139
139
  end
140
140
 
141
141
  unless event_history.order_execute_details_win_active
142
- Cryptum::UI::OrderExecution.refresh(
142
+ event_history = Cryptum::UI::OrderExecution.refresh(
143
143
  option_choice: option_choice,
144
144
  order_execute_win: terminal_win.order_execute_section,
145
145
  env: env,
@@ -98,16 +98,16 @@ module Cryptum
98
98
  # Only keep order history meta for those
99
99
  # hashes that exist in the last order history
100
100
  # response
101
- order_history_meta.keep_if do |ohm|
102
- order_history.find do |oh|
103
- (oh[:id] == ohm[:buy_order_id] || oh[:id] == ohm[:sell_order_id]) && (
104
- ohm[:color].to_sym == :white ||
105
- ohm[:color].to_sym == :green ||
106
- ohm[:color].to_sym == :yellow
107
- )
108
- end
109
- end
110
- event_history.order_book[:order_history_meta] = order_history_meta
101
+ # order_history_meta.keep_if do |ohm|
102
+ # order_history.find do |oh|
103
+ # (oh[:id] == ohm[:buy_order_id] || oh[:id] == ohm[:sell_order_id]) && (
104
+ # ohm[:color].to_sym == :white ||
105
+ # ohm[:color].to_sym == :green ||
106
+ # ohm[:color].to_sym == :yellow
107
+ # )
108
+ # end
109
+ # end
110
+ # event_history.order_book[:order_history_meta] = order_history_meta
111
111
 
112
112
  # Refactor TPM to be 0.01 > than fee tier,
113
113
  # particularly as fee tier goes up or down
@@ -523,6 +523,8 @@ module Cryptum
523
523
 
524
524
  # Reset Order Ready Boolean
525
525
  event_history.order_ready = false
526
+
527
+ event_history
526
528
  rescue Interrupt
527
529
  # Exit Gracefully if CTRL+C is Pressed During Session
528
530
  Cryptum.exit_gracefully(which_self: self)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.290'
4
+ VERSION = '0.0.293'
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.290
4
+ version: 0.0.293
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.