cryptum 0.0.326 → 0.0.327

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: 8d8c54730d0149d694842e5297e5507aa11fd7c2da04db91a21a1ec0e8c05330
4
- data.tar.gz: 481624b37f1ac33a111bd0feb7f4767f981ed0af5eea741d52a4ca6cb812a803
3
+ metadata.gz: a71bdfaffa2d0d506321a5eb061b6e813b1191b8dd27b9a9e4acf874b9d296e9
4
+ data.tar.gz: cb2165ea3267e05058a242187b049ea3b68ed3bfb013688b2f044ea4683b93fa
5
5
  SHA512:
6
- metadata.gz: 331909ca683994e595a9021d3ffcdb5c16b602a3a442bd4f9a922ebc9f6bf2998945795d9ec1e4f45ddc1e8ea8eb12a8084e471a4e803a0d3f8a6656a81557b6
7
- data.tar.gz: f1c7da8bcde3d6d379fcb7192041c36f11881d787cd4232c14195b23cb7f2c66970b8c5a093961c979b0d44bd22b5b1041f0b6f1c2f9a6b74c020e18ee35b8d3
6
+ metadata.gz: 5a67eec57d1eb1725424b01b34d4f2d6edee802a8d101e99c0cddece8f9c485472294b8c0b0464d492218db7c22d34f00b59f60ca4a451833d38c7b09f7a1b24
7
+ data.tar.gz: c606e40f2643f2fe06d2a887c0b3a0471d791b12841ec2815ed2a7ade3b4a0d8ddb46b44fa6f79e4673e0bc4c5649f7690e17b787fd4b0c499f8ac00821addfe
@@ -7,13 +7,12 @@ module Cryptum
7
7
  module UI
8
8
  module Ticker
9
9
  public_class_method def self.refresh(opts = {})
10
- # option_choice = opts[:option_choice]
11
10
  start_time = opts[:start_time]
12
11
  ticker_win = opts[:ticker_win]
13
- # key_press_event = opts[:key_press_event]
14
- order_book = opts[:order_book]
12
+ event_history = opts[:event_history]
15
13
  event = opts[:event]
16
14
 
15
+ order_book = event_history.order_book
17
16
  this_product = order_book[:this_product]
18
17
  quote_increment = this_product[:quote_increment]
19
18
  fiat_smallest_decimal = quote_increment.to_s.split('.')[-1].length
@@ -139,6 +138,8 @@ module Cryptum
139
138
  highest_selling_price
140
139
  )
141
140
  )
141
+
142
+ event_history.order_book = order_book
142
143
  # TODO: Everything Above this Line Needs to be Indicators ^
143
144
 
144
145
  # UI
@@ -283,6 +284,8 @@ module Cryptum
283
284
  )
284
285
 
285
286
  ticker_win.refresh
287
+
288
+ event_history
286
289
  rescue Interrupt
287
290
  # Exit Gracefully if CTRL+C is Pressed During Session
288
291
  Cryptum.exit_gracefully(which_self: self)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.326'
4
+ VERSION = '0.0.327'
5
5
  end
@@ -97,12 +97,12 @@ module Cryptum
97
97
 
98
98
  ticker_event = event_history.ticker_event = event_history.event if event_history.event_type == :ticker
99
99
  ticker_event = event_history.ticker_event if terminal_win.ticker_ui_resize
100
- Cryptum::UI::Ticker.refresh(
100
+ event_history = Cryptum::UI::Ticker.refresh(
101
101
  option_choice: option_choice,
102
102
  start_time: event_history.start_time,
103
103
  ticker_win: terminal_win.ticker_section,
104
104
  key_press_event: terminal_win.key_press_event,
105
- order_book: event_history.order_book,
105
+ event_history: event_history,
106
106
  event: ticker_event
107
107
  )
108
108
  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.326
4
+ version: 0.0.327
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.