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 +4 -4
- data/Gemfile +1 -1
- data/lib/cryptum/log.rb +5 -1
- data/lib/cryptum/ui/exit.rb +5 -1
- data/lib/cryptum/ui.rb +5 -1
- data/lib/cryptum/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c05b91169e59df115a671e125bdb0c714af8f2fbc7ac6a9ba5717c9706c23df
|
4
|
+
data.tar.gz: 8337e24f8b608010adda85562aabca09ed06701203a0b2b8d3fd2b8b2ccbd0c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
data/lib/cryptum/ui/exit.rb
CHANGED
@@ -8,7 +8,11 @@ module Cryptum
|
|
8
8
|
event_history = opts[:event_history]
|
9
9
|
|
10
10
|
Curses.close_screen
|
11
|
-
msg =
|
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 =
|
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
|
|
data/lib/cryptum/version.rb
CHANGED
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.
|
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.
|
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.
|
96
|
+
version: 0.11.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: permessage_deflate
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|