cryptum 0.0.461 → 0.0.463
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -2
- data/Gemfile +1 -1
- data/lib/cryptum/ui/order/execute.rb +9 -4
- data/lib/cryptum/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 488f2f415bc7943502fbe6db7b9368c50eb53ea328229420396e6ec89d8564b2
|
4
|
+
data.tar.gz: 02b3f00d381f5a17fc26e447aeea8c9c005ecf0e182d40c7fda5329cb97704b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1d029b78d5bbaf1b7a5d18324e1ecb49f514017f6688e5e4183d8449363713fa62c36f275120c2e27c838b1ba1dfac20e0e4e8b3d9e1d80b8a535e76f4d890e
|
7
|
+
data.tar.gz: 85816f69e41b41f3d1ec93d13d81b854d1ce4f2ea63043c7332e6f1653d1bbbf6b49bb701fe60c0cc586e2c923efa4501d39ba8a8158c4feee1e0a55d6df6a00
|
data/.rubocop.yml
CHANGED
@@ -14,13 +14,13 @@ Metrics/BlockNesting:
|
|
14
14
|
Metrics/ClassLength:
|
15
15
|
Max: 134
|
16
16
|
Metrics/CyclomaticComplexity:
|
17
|
-
Max:
|
17
|
+
Max: 103
|
18
18
|
Metrics/MethodLength:
|
19
19
|
Max: 485
|
20
20
|
Metrics/ModuleLength:
|
21
21
|
Max: 495
|
22
22
|
Metrics/PerceivedComplexity:
|
23
|
-
Max:
|
23
|
+
Max: 101
|
24
24
|
Style/HashSyntax:
|
25
25
|
EnforcedShorthandSyntax: never
|
26
26
|
|
data/Gemfile
CHANGED
@@ -179,12 +179,17 @@ module Cryptum
|
|
179
179
|
event_side == :buy &&
|
180
180
|
event_reason == :canceled
|
181
181
|
|
182
|
+
# Remove all white hashes from order_history_meta
|
183
|
+
order_history_meta = order_history_meta.reject! do |ohm|
|
184
|
+
ohm[:color].to_sym == :white
|
185
|
+
end
|
186
|
+
|
182
187
|
buy_order_id = event_history.event[:order_id]
|
183
|
-
order_history_meta.each do |
|
184
|
-
next unless
|
188
|
+
order_history_meta.each do |ohm|
|
189
|
+
next unless ohm[:buy_order_id] == buy_order_id
|
185
190
|
|
186
|
-
|
187
|
-
|
191
|
+
ohm[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
|
192
|
+
ohm[:color] = :white
|
188
193
|
end
|
189
194
|
end
|
190
195
|
|
data/lib/cryptum/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.463
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -268,14 +268,14 @@ dependencies:
|
|
268
268
|
requirements:
|
269
269
|
- - '='
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: 2.
|
271
|
+
version: 2.23.0
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - '='
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: 2.
|
278
|
+
version: 2.23.0
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: ruby-prof
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|