cryptum 0.0.443 → 0.0.444

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: d8ca71a0ff95cdca55d57dfe60aa0b6f32e31afe6b5f719d40f2b125555c1e58
4
- data.tar.gz: f3c23f42997506e9dd30a588318d00cb16b9ea2dc074600051785a82530ef7ec
3
+ metadata.gz: 537b7ef6bd68e8cf4d8d45d2f313478b251eedac37c2cee5604ed5a00c1af54e
4
+ data.tar.gz: 5651b234e49855aafb436ffdb0fec701b1d57b48d626dc5d0d0e6b357e48df2f
5
5
  SHA512:
6
- metadata.gz: 7d7aa231eb05c0eae584823f37a5b107e0e69a010612e973d948407948a8edfd19117f5fd934f2f21470b4110209535aea87b358dd6e89e822b2f808a5f5f69f
7
- data.tar.gz: 0e8949fa7b3a9a38986bb12d22642296d86ef167efe717916c38448178ca5bb6d0338a3937b40f508f6c0030b5e0fd524d5d20ea4ca1e5515eb63bf60eb498d6
6
+ metadata.gz: 941bd956696ee1f61b0c3225a71a36839719ae996dca6cf50e484d47f1890dc59d26ba4be1c21c009ab2047c0c42259075e5de0af3923f9b7c5d473b58865f1e
7
+ data.tar.gz: 0554fe71c6b8c91c56854567136585a0561eb84fe8e8640e029b188da85666b49d766104ed4327e4eaddf4ecc93fd21a16c08e0641ffab3392c280eb68ce5f70
data/.rubocop.yml CHANGED
@@ -6,7 +6,7 @@ Layout/LineLength:
6
6
  Lint/UselessRescue:
7
7
  Enabled: false
8
8
  Metrics/AbcSize:
9
- Max: 436.3
9
+ Max: 442.8
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: 86
17
+ Max: 88
18
18
  Metrics/MethodLength:
19
19
  Max: 418
20
20
  Metrics/ModuleLength:
21
21
  Max: 428
22
22
  Metrics/PerceivedComplexity:
23
- Max: 84
23
+ Max: 86
24
24
  Style/HashSyntax:
25
25
  EnforcedShorthandSyntax: never
26
26
 
@@ -165,7 +165,7 @@ module Cryptum
165
165
  end
166
166
  end
167
167
 
168
- # Update Completed Sell Orders w/ Green
168
+ # Update Orders w/ Colors
169
169
  if event_type == :open &&
170
170
  event_side == :buy
171
171
 
@@ -267,7 +267,9 @@ module Cryptum
267
267
  learning_arr.push(learning)
268
268
  end
269
269
 
270
- meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
270
+ oh_sold = order_history.find { |oh| oh[:id] == sell_order_id }
271
+ meta[:done_at] = oh_sold[:done_at] unless oh_sold.nil?
272
+ meta[:done_at] ||= Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
271
273
  meta[:color] = :green
272
274
 
273
275
  # Obtain buy && sell order details from order history
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.443'
4
+ VERSION = '0.0.444'
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.443
4
+ version: 0.0.444
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.