cryptum 0.0.425 → 0.0.427

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: 93ce9c71816f16413dd9aac6b343d4b24b958ac2956aad177bd2409b22f2b96f
4
- data.tar.gz: 72b4e5410ff43db2f0b1bc17a9c3c46ec8decfea5c4a0118096a6bc9a1f31f23
3
+ metadata.gz: e6727655e4af558dbafa2b01ee20190a20f7833f8a6a3ee62382b209710e4697
4
+ data.tar.gz: a5fdae6874f69f4dd5bbb1d5901d6e5f0666ff60f56afdfda78a842b09b71d90
5
5
  SHA512:
6
- metadata.gz: b5838263d18649850b67a020a39e80bfea10acfb1bfec589c38d15728fc5876b489bec31d9f6d78e16ad2608b38e839a45eaf837f715d3e67cc40aff3ac49d6c
7
- data.tar.gz: 9355aa5e0950cb73e6ce1519f5df29c40836ae1ec51311a7ef78861b35f934866fda5b0c3a0e0b2135d3c893841c070a664233660275b27711de7ec79f8aa142
6
+ metadata.gz: 3eec879f5b3ae0351a274b58c70e931ed987a2e62c94706928e450d9a0308fffdeb283ac53c0ea05c6fcf7102d806969a51d3e829b6aeb0c344c9ec767dd74b4
7
+ data.tar.gz: 05eb5192d9d556c621db29ffdf71cabbf4189595bccaed77b42ed2877f027a74a5649bee19ac4a4a8b49d036bd8fb9d9d44c7fa2ffbbe8793376f0bc5e020874
data/.rubocop.yml CHANGED
@@ -10,7 +10,7 @@ Metrics/AbcSize:
10
10
  Metrics/BlockLength:
11
11
  Max: 138
12
12
  Metrics/BlockNesting:
13
- Max: 3
13
+ Max: 4
14
14
  Metrics/ClassLength:
15
15
  Max: 128
16
16
  Metrics/CyclomaticComplexity:
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ gemspec
12
12
  # to build appropriately. Defer to ./reinstall_coinbot_gemset.sh
13
13
  # to review these custom flags
14
14
  gem 'addressable', '2.8.4'
15
- gem 'bundler', '>=2.4.11'
15
+ gem 'bundler', '>=2.4.12'
16
16
  gem 'bundler-audit', '0.9.1'
17
17
  gem 'curses', '1.4.4'
18
18
  gem 'eventmachine', '1.2.7'
@@ -26,7 +26,7 @@ gem 'rdoc', '6.5.0'
26
26
  gem 'require_all', '3.0.0'
27
27
  gem 'rest-client', '2.1.0'
28
28
  gem 'rspec', '3.12.0'
29
- gem 'rubocop', '1.50.0'
29
+ gem 'rubocop', '1.50.2'
30
30
  gem 'rubocop-rake', '0.6.0'
31
31
  gem 'rubocop-rspec', '2.19.0'
32
32
  gem 'ruby-prof', '1.6.1'
data/lib/cryptum/log.rb CHANGED
@@ -74,9 +74,9 @@ module Cryptum
74
74
 
75
75
  if level == :learning
76
76
  log_event = msg
77
- logger.formatter = proc do |_severity, _datetime, _progname, json_msg|
77
+ logger.formatter = proc do |_severity, _datetime, _progname, learning_arr|
78
78
  JSON.pretty_generate(
79
- learning_data: json_msg
79
+ learning_data: learning_arr
80
80
  )
81
81
  end
82
82
  else
@@ -88,8 +88,12 @@ module Cryptum
88
88
 
89
89
  if msg.instance_of?(Interrupt)
90
90
  logger.level = Logger::WARN
91
- log_event += ' => CTRL+C Detected...Exiting Session.'
92
- exit_gracefully = true unless driver_name == 'cryptum-repl'
91
+ if driver_name == 'cryptum-repl'
92
+ log_event += ' => CTRL+C Detected.'
93
+ else
94
+ log_event += ' => CTRL+C Detected...Exiting Session.'
95
+ exit_gracefully = true unless driver_name == 'cryptum-repl'
96
+ end
93
97
  else
94
98
  log_event += " => #{msg}"
95
99
  if msg.respond_to?('backtrace') && !msg.instance_of?(Errno::ECONNRESET)
@@ -455,11 +455,11 @@ module Cryptum
455
455
  oh[:id] == meta[:buy_order_id]
456
456
  end
457
457
 
458
- buy_created_at = '____-__-__ __:__:__'
458
+ buy_created_at = '____-__-__ __:__:__-____'
459
459
  unless buy_created_at_hash_arr.empty?
460
460
  buy_created_at = Time.parse(
461
461
  buy_created_at_hash_arr.first[:created_at]
462
- ).strftime('%Y-%m-%d %H:%M:%S.%N%z')
462
+ ).strftime('%Y-%m-%d %H:%M:%S%z')
463
463
  end
464
464
 
465
465
  invest = "$#{invest_out} @ "
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.425'
4
+ VERSION = '0.0.427'
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.425
4
+ version: 0.0.427
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-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.11
33
+ version: 2.4.12
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.11
40
+ version: 2.4.12
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler-audit
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: 1.50.0
229
+ version: 1.50.2
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: 1.50.0
236
+ version: 1.50.2
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: rubocop-rake
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -537,7 +537,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
537
537
  - !ruby/object:Gem::Version
538
538
  version: '0'
539
539
  requirements: []
540
- rubygems_version: 3.4.11
540
+ rubygems_version: 3.4.12
541
541
  signing_key:
542
542
  specification_version: 4
543
543
  summary: Coinbase Pro High-Frequency Trading Bot