cryptum 0.0.449 → 0.0.451

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: 2ed04c5ea1bd30c1b84d5c3a806d1718eac8019f30dad82e249f42043fd1473d
4
- data.tar.gz: d818ae7eeb05d3c0933e48508b9bdc485b87515884de0d95fc5f3cc6c5594e0f
3
+ metadata.gz: e5751edf041ccf1b015706553b994f229a45f8c47f0238dca33b566102ff253b
4
+ data.tar.gz: 75a62906adbb8b3d1589c96b708319c3633a8f7efb68dcb995e84a717a36abe2
5
5
  SHA512:
6
- metadata.gz: 0d54c6e0e324b3f093c0cbe86b2a556a787ba79d9383fdfdf4818e0ab97ffc7b1603bfa8a2d6476fa76512ca8ad7517ba18f044d3f1d4696e1026e1c886135a6
7
- data.tar.gz: 638b5570f41e22daaca9f6044fc571ebb3ff4881ec31dce2ed4e22e4b25a5197d7f5ed9b188d2a09bf4c2eeca66a2c080d014a1c6817045aa756d898009b8769
6
+ metadata.gz: e54da51a666394f3ce4632f0bf14afe0ef28a0d71c25ad413403bc8938bf8278081b1c6d8637a07f5f4ab8dd877aad950defa6910ae15bea92a8da0c51d7e9f2
7
+ data.tar.gz: 9fd5c8f3778cc064e993ea52ef1357c5bcb61718f4397b9d1c8ba1f373c4863a0023d680dc96174461f8e167345929a93441014c92b7a9ede807fd0716278947
data/.rubocop.yml CHANGED
@@ -6,7 +6,7 @@ Layout/LineLength:
6
6
  Lint/UselessRescue:
7
7
  Enabled: false
8
8
  Metrics/AbcSize:
9
- Max: 447.2
9
+ Max: 458.7
10
10
  Metrics/BlockLength:
11
11
  Max: 138
12
12
  Metrics/BlockNesting:
@@ -14,13 +14,13 @@ Metrics/BlockNesting:
14
14
  Metrics/ClassLength:
15
15
  Max: 134
16
16
  Metrics/CyclomaticComplexity:
17
- Max: 89
17
+ Max: 91
18
18
  Metrics/MethodLength:
19
- Max: 418
19
+ Max: 421
20
20
  Metrics/ModuleLength:
21
- Max: 428
21
+ Max: 431
22
22
  Metrics/PerceivedComplexity:
23
- Max: 87
23
+ Max: 89
24
24
  Style/HashSyntax:
25
25
  EnforcedShorthandSyntax: never
26
26
 
@@ -272,7 +272,7 @@ module Cryptum
272
272
  # oh_sold = order_history.find { |oh| oh[:id] == sell_order_id }
273
273
  # meta[:done_at] = Time.parse(oh_sold[:done_at]).strftime('%Y-%m-%d %H:%M:%S%z') unless oh_sold.nil?
274
274
  meta[:done_at] = meta[:sell_details][:done_at] unless meta[:sell_details].nil?
275
- meta[:done_at] ||= '____-__-__ __:__:__-____'
275
+ meta[:done_at] ||= Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
276
276
  meta[:color] = :green
277
277
 
278
278
  # Obtain buy && sell order details from order history
@@ -295,6 +295,14 @@ module Cryptum
295
295
  end
296
296
  end
297
297
 
298
+ # Sync up sell order completion dates if possible
299
+ out_of_sync_green_orders = oh_meta_sold_arr.reject do |ohm|
300
+ ohm[:done_at] == ohm[:sell_details][:done_at]
301
+ end
302
+ out_of_sync_green_orders.each do |ohm|
303
+ ohm[:done_at] = ohm[:sell_details][:done_at]
304
+ end
305
+
298
306
  # OK, now let's tally up everything...
299
307
  twenty_four_hrs_ago = Time.now - 86_400
300
308
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.449'
4
+ VERSION = '0.0.451'
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.449
4
+ version: 0.0.451
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.