cryptum 0.0.306 → 0.0.308

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: 219457ec2de37938a864b65a951e81f8b52a095f0361991a0621355379f41801
4
- data.tar.gz: f585c516dba1b148b9f7781942c62ce217d7b88b603cc5f005a165bc5a3fec4c
3
+ metadata.gz: f8aa7618c541ca39cbc15ca5ba1cec34b5c8b93428cf107b3799fd4bf3fa8013
4
+ data.tar.gz: 5aa0428513584f228f59346a706b7b38f56a3d46c0b02aa01f616de72b471a09
5
5
  SHA512:
6
- metadata.gz: 706814ae44b2cd0c3abaf47067657cf98986121f1d417877909e2ccf852571e6a3f21606bd998a396e55db6b5e367ea76ad3a01f884d0f0c4022372675cf72d8
7
- data.tar.gz: d207d9a246a8fb57e2dd0fe993217382b5e9c1157cfcc7bb275ac36aa8adb1811f8a37e84a8c62cfefbc9060e73a06b928b80a88ddd74926d0661702157e993b
6
+ metadata.gz: d529c47732e456446ce6c072c42614f4db05115c3192f51d89f24f01f9fbe4e0967a41447d9cc54d7452bc84745dce58208dc2af2a90807acc18c35e8f2c0ccc
7
+ data.tar.gz: 2042b992d7ac3a8dbd53ae464b0f0d61eaff7f4ddb845f5e6d8afae94d6e7a976f0875868523cf765f52c536ec2e45bdc7a88ce488f79cd1b5db0c223b8db25e
@@ -91,16 +91,34 @@ module Cryptum
91
91
 
92
92
  option_choice.market_trend_reset = 60 if option_choice.market_trend_reset.to_i.zero?
93
93
  unless option_choice.market_trend_reset.to_i >= 60 &&
94
- option_choice.market_trend_reset <= 86_400
94
+ option_choice.market_trend_reset <= 604_800
95
95
  usage = true
96
96
  reason = :market_trend_reset
97
97
  end
98
98
 
99
99
  case option_choice.market_trend_reset
100
+ when 604_800
101
+ option_choice.market_trend_reset_label = '1W'
100
102
  when 86_400
101
- option_choice.market_trend_reset_label = 'D'
103
+ option_choice.market_trend_reset_label = '1D'
104
+ when 14_400
105
+ option_choice.market_trend_reset_label = '4h'
106
+ when 10_800
107
+ option_choice.market_trend_reset_label = '3h'
108
+ when 7_200
109
+ option_choice.market_trend_reset_label = '2h'
102
110
  when 3_600
103
111
  option_choice.market_trend_reset_label = '1h'
112
+ when 2_700
113
+ option_choice.market_trend_reset_label = '45m'
114
+ when 1_800
115
+ option_choice.market_trend_reset_label = '30m'
116
+ when 900
117
+ option_choice.market_trend_reset_label = '15m'
118
+ when 300
119
+ option_choice.market_trend_reset_label = '5m'
120
+ when 180
121
+ option_choice.market_trend_reset_label = '3m'
104
122
  when 60
105
123
  option_choice.market_trend_reset_label = '1m'
106
124
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.306'
4
+ VERSION = '0.0.308'
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.306
4
+ version: 0.0.308
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.