cryptum 0.0.461 → 0.0.462

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: 10abd4e7f80f002de751e2a1661690e56b97156966d0b1d5a30836f0ddd5aaf2
4
- data.tar.gz: d793e208254d9fb2bdfdbab7240a8c3aaeff1e782d94bdf282830ac57bea787d
3
+ metadata.gz: b01792e111d040337fc5179dc59cc5b49dd4cdc693d2b7a4149e6e85d056316d
4
+ data.tar.gz: c0d7ce82def2ead71b876bdd9a328b884519122b07c1ebe4ce80b7496070ae43
5
5
  SHA512:
6
- metadata.gz: 25921b3757374d3580b181788de254141b8b9c8a847b5eff799ff7244fe36d1dc01f39f406aa433793107e22b48069aef5e5a431f23ab632771c5001397cbc02
7
- data.tar.gz: 88cb03ecf88aa02b33b1a937ec32ffb60d49fdad92a081eb486dcb4983f1e3f2a4c03b88787a03bc9cd43bccaf67ff96b9570476df98f5c3931ab3854481cd57
6
+ metadata.gz: d26e0469d6f9057456abf77c5dbdfce467ed08de0636ec4bc5fb16efb0f5c0405450c956f583cfc4e15ad2a34e5e963d7130cd0c165a2485e0b28ee02323ce37
7
+ data.tar.gz: 75990e3327dd4710925d0e5146f51a1491fa0a2d4783e0d41b00c724d47c9d7f45db65896da079dc9b9223c8255a05fa77c0f5da56a648f6ff5654fa278e8a37
data/.rubocop.yml CHANGED
@@ -14,13 +14,13 @@ Metrics/BlockNesting:
14
14
  Metrics/ClassLength:
15
15
  Max: 134
16
16
  Metrics/CyclomaticComplexity:
17
- Max: 102
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: 100
23
+ Max: 101
24
24
  Style/HashSyntax:
25
25
  EnforcedShorthandSyntax: never
26
26
 
@@ -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] == :white
185
+ end
186
+
182
187
  buy_order_id = event_history.event[:order_id]
183
- order_history_meta.each do |meta|
184
- next unless meta[:buy_order_id] == buy_order_id
188
+ order_history_meta.each do |ohm|
189
+ next unless ohm[:buy_order_id] == buy_order_id
185
190
 
186
- meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
187
- meta[:color] = :white
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.461'
4
+ VERSION = '0.0.462'
5
5
  end
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.461
4
+ version: 0.0.462
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-27 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable