cryptum 0.0.258 → 0.0.259

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: 454825db36aecfdd354ab093bbc3f635fc48813e950bcc3a1b7792b8e1028646
4
- data.tar.gz: 12d79a0af6469640bf933d3766a24c92d0986f2eebf352d9d8f87d48c6f833ef
3
+ metadata.gz: ab14ca560e814d115f113801ad78732ba8d10acce087f6eaadc143233424ffa4
4
+ data.tar.gz: 47bc5482fba211e04bf7ef299fafd323cf5388908d5786779cda36885748d198
5
5
  SHA512:
6
- metadata.gz: e08fb37dd973e62f0b068b66028a18c4cf1e9ecc8f212313fced489e685be3eb90fec26f5a29193686ff8c035fc870bfd1fecc7899c2f6be568407c0d68a5497
7
- data.tar.gz: 3dd720c662229f86921f648e8adea5cf20ce10dfc2ce506413c6a1f26496133d333606a8cbc9364d868ad49d3f4d14a5a034bf6f63176b982779cfb763e89599
6
+ metadata.gz: cb7dd04b5337366f545a283d6b1dc184c1680279aa88f2d423ad4544374f018c2ec5cef61a15f1770bb39f69d0092898d8af198329b80c6b005321ae3c249df0
7
+ data.tar.gz: 949378bda3b6959556f3f888795780e46fe5e1e857814254273f4658ad5a4b81a81c0b86aa55b8e325e026a5ed51e67082cdc5740d2df12e23c25afeb63d0ff6
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-01 23:43:10 UTC using RuboCop version 1.39.0.
3
+ # on 2022-12-01 23:59:06 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
@@ -157,6 +157,14 @@ Metrics/ModuleLength:
157
157
  Metrics/PerceivedComplexity:
158
158
  Max: 75
159
159
 
160
+ # Offense count: 1
161
+ # This cop supports safe autocorrection (--autocorrect).
162
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
163
+ # SupportedStyles: assign_to_condition, assign_inside_condition
164
+ Style/ConditionalAssignment:
165
+ Exclude:
166
+ - 'lib/cryptum/option.rb'
167
+
160
168
  # Offense count: 1
161
169
  # Configuration parameters: AllowedConstants.
162
170
  Style/Documentation:
@@ -57,6 +57,7 @@ module Cryptum
57
57
  self.order_execute_max_rows_to_display = 6
58
58
  self.order_execute_row_to_select = order_execute_index_offset
59
59
 
60
+ # TODO: Implement market_trend_reset / 144
60
61
  # Default = 10 minutes
61
62
  self.time_between_orders = 600
62
63
  self.time_between_orders_reset = time_between_orders
@@ -95,10 +95,16 @@ module Cryptum
95
95
  reason = :market_trend_reset
96
96
  end
97
97
 
98
- option_choice.market_trend_reset_label = option_choice.market_trend_reset
99
- option_choice.market_trend_reset_label = 'D' if option_choice.market_trend_reset == 84_600
100
- option_choice.market_trend_reset_label = '1h' if option_choice.market_trend_reset == 3_600
101
- option_choice.market_trend_reset_label = '1m' if option_choice.market_trend_reset == 60
98
+ case option_choice.market_trend_reset
99
+ when 86_400
100
+ option_choice.market_trend_reset_label = 'D'
101
+ when 3_600
102
+ option_choice.market_trend_reset_label = '1h'
103
+ when 60
104
+ option_choice.market_trend_reset_label = '1m'
105
+ else
106
+ option_choice.market_trend_reset_label = option_choice.market_trend_reset
107
+ end
102
108
 
103
109
  if usage
104
110
  case reason
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.258'
4
+ VERSION = '0.0.259'
5
5
  end
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.258
4
+ version: 0.0.259
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-01 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable