cryptum 0.0.396 → 0.0.397

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: a21ea8b0f9da95a25846e0e0a094a2b2c086913d326630302c921cb7d72c2bac
4
- data.tar.gz: 908dafab6273bc68045a98e351cfee9f2ce8972086e7d76f5d04a3e00f9dd967
3
+ metadata.gz: 9c05b91169e59df115a671e125bdb0c714af8f2fbc7ac6a9ba5717c9706c23df
4
+ data.tar.gz: 8337e24f8b608010adda85562aabca09ed06701203a0b2b8d3fd2b8b2ccbd0c7
5
5
  SHA512:
6
- metadata.gz: 79fd6205efdcd1b3ad7110ec0fc8f91ebb97d0d4d1ca141b64c1d43897bed17d09b4a72211e3d8fe0e4a3d894c24a2871c6a295423d79545a2b616f42e4e36a9
7
- data.tar.gz: 72976317bcc3a5f9f5a338aedc3490fb6d743cd74f873d4818a277cdd83cc16dbb5847ba427e199307eb052cd3b94199dc036896e6a86b2e159b47fb932af120
6
+ metadata.gz: 1728544e34746de6cbccd11ef5640556364c6333ef8c8bc0618abf21b95f23562e15a45096bd8591c6831a4a2ba085d60c3ef13daad3122054b762ac4b8337b1
7
+ data.tar.gz: c50b2669722d80f03c7f509ab08fdcabca6dbf10f9caa8cd213f3304be4c880f5e4c455c8770a2269b50723483d5cc06c03320080a01e3fa077239401c811600
data/Gemfile CHANGED
@@ -16,7 +16,7 @@ gem 'bundler', '>=2.4.10'
16
16
  gem 'bundler-audit', '0.9.1'
17
17
  gem 'curses', '1.4.4'
18
18
  gem 'eventmachine', '1.2.7'
19
- gem 'faye-websocket', '0.11.1'
19
+ gem 'faye-websocket', '0.11.2'
20
20
  gem 'permessage_deflate', '0.1.4'
21
21
  gem 'pry', '0.14.2'
22
22
  gem 'pry-doc', '1.4.0'
data/lib/cryptum/log.rb CHANGED
@@ -51,7 +51,11 @@ module Cryptum
51
51
 
52
52
  logger.datetime_format = '%Y-%m-%d %H:%M:%S.%N'
53
53
  log_event = ''
54
- log_event = event_history.order_book[:path] if event_history.respond_to?('order_book')
54
+ if event_history.respond_to?('order_book')
55
+ log_event = "session: #{event_history.order_book[:path].split('/').first}, "
56
+ log_event += "symbol: #{event_history.order_book[:symbol]}"
57
+ end
58
+
55
59
  if msg.instance_of?(Interrupt)
56
60
  log_event += ' => CTRL+C Detected...Exiting Session.'
57
61
  logger.level = Logger::WARN
@@ -8,7 +8,11 @@ module Cryptum
8
8
  event_history = opts[:event_history]
9
9
 
10
10
  Curses.close_screen
11
- msg = event_history.order_book[:path] if event_history.respond_to?('order_book')
11
+ msg = ''
12
+ if event_history.respond_to?('order_book')
13
+ msg = "session: #{event_history.order_book[:path].split('/').first}, "
14
+ msg += "symbol: #{event_history.order_book[:symbol]}"
15
+ end
12
16
  msg += ' => Session Gracefully Terminated.'
13
17
  Cryptum::Log.append(level: :info, msg: msg, which_self: self)
14
18
 
data/lib/cryptum/ui.rb CHANGED
@@ -18,7 +18,11 @@ module Cryptum
18
18
  # Initialize the UI
19
19
  public_class_method def self.init(opts = {})
20
20
  event_history = opts[:event_history]
21
- msg = event_history.order_book[:path] if event_history.respond_to?('order_book')
21
+ msg = ''
22
+ if event_history.respond_to?('order_book')
23
+ msg = "session: #{event_history.order_book[:path].split('/').first}, "
24
+ msg += "symbol: #{event_history.order_book[:symbol]}"
25
+ end
22
26
  msg += ' => Session Started.'
23
27
  Cryptum::Log.append(level: :info, msg: msg, which_self: self)
24
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.396'
4
+ VERSION = '0.0.397'
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.396
4
+ version: 0.0.397
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.11.1
89
+ version: 0.11.2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.11.1
96
+ version: 0.11.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: permessage_deflate
99
99
  requirement: !ruby/object:Gem::Requirement