cryptum 0.0.443 → 0.0.445
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -3
- data/lib/cryptum/ui/order/execute.rb +4 -2
- data/lib/cryptum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38cd05ab4899af43e5f4be647e9cd6535a575c9ab1c0a20cf62754c376f81cba
|
4
|
+
data.tar.gz: 8edd4eaa627691cbf23dfe0e88c3ff50d1ede225ffd3059be4ca30d8528ec278
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fcc8c0fd2913aa3edcf23cb2c6a57c249d97980665b8a0d326506c675b92cbd80d2c8bc77db38939c421bc0f4bdaf87de4773033a3ef5a4ff07f71e10cc5a21
|
7
|
+
data.tar.gz: 0ed5b1f54bc84258141d5da5173f149d86ea1bd3de61007da2e9bed09db8e5aeb6b12a4a2cd2e8169097ea116ed4ec46822936a6ea3f03a0f8fe62ea5857acd6
|
data/.rubocop.yml
CHANGED
@@ -6,7 +6,7 @@ Layout/LineLength:
|
|
6
6
|
Lint/UselessRescue:
|
7
7
|
Enabled: false
|
8
8
|
Metrics/AbcSize:
|
9
|
-
Max:
|
9
|
+
Max: 444.5
|
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:
|
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:
|
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
|
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
|
-
|
270
|
+
oh_sold = order_history.find { |oh| oh[:id] == sell_order_id }
|
271
|
+
meta[:done_at] = Time.parse(oh_sold[:done_at]).strftime('%Y-%m-%d %H:%M:%S%z') 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
|
data/lib/cryptum/version.rb
CHANGED