bitflyer-cli 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4517d41ea9957027f8f65b7d83fda6ab832e4e00
4
- data.tar.gz: 1ea5b15973f8967710962f809ef1bc2cb366b20d
3
+ metadata.gz: c87d0bb42182f50def7b6ee6c86f1c7e4d053d3a
4
+ data.tar.gz: d0f07f632316cd4810637c666a46770caf3619e2
5
5
  SHA512:
6
- metadata.gz: 2779b5949da62b10123265e86da3ce6d1553605fa1c185c9ff3a8fd48f6ddadadb36f90c6cf6160949e45ff3b92a078d0a023e4126bdc16c70575ef1b6b105cc
7
- data.tar.gz: 3b1765df4786e3075b978853bb0d8f53f138216fe577055276160eebea7a27b2bff4aa6da3b25222e5ff900be32243ea767c8963504c46c2e5b26ffe03770cb7
6
+ metadata.gz: 63f27db920c529440edc04db19aa2605e5712c8243a959f42520f43dbfbfde966db24e903cdfba9024295d3a25aab5e6c6c39db4727b202436020a524edd91a5
7
+ data.tar.gz: 01de1e7d93ef10472eb0ad696fbadb2f6397f2701290d042e9bb592e6d211d04e270f133aa15a18439c8c6e7c7f977d3a872b6dc89667f11c38fae970ef0b5e2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bitflyer-cli (0.4.0)
4
+ bitflyer-cli (0.4.1)
5
5
  bitflyer (~> 0.1.0)
6
6
  colorize (~> 0.8.1)
7
7
  thor (~> 0.19.4)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'bitflyer-cli'
7
- spec.version = '0.4.0'
7
+ spec.version = '0.4.1'
8
8
  spec.authors = ['Yuji Ueki']
9
9
  spec.email = ['unhappychoice@gmail.com']
10
10
 
@@ -30,11 +30,12 @@ class SummaryCommand
30
30
  end
31
31
 
32
32
  while true
33
- print "\e[3F\e[0J"
34
- print "Current: " + @current_price.to_i.to_s.split_by_comma
35
- print "\nPosition: " + "#{@position.average.to_s.split_by_comma} * #{@position.size.to_f}"
36
- print "\nSpread: " + spread.to_s.split_by_comma.color_with_number(spread)
37
- print "\nBalance: " + (@balance + profit).to_s.split_by_comma.ljust(15, ' ') + "(#{profit.to_s.split_by_comma.color_with_number(profit)})"
33
+ print <<-"EOS"
34
+ \e[4F\e[0JCurrent: #{@current_price.to_i.to_s.split_by_comma}
35
+ Position: #{@position.average.to_s.split_by_comma} * #{@position.size.to_f}
36
+ Spread: #{spread.to_s.split_by_comma.color_with_number(spread)}
37
+ Balance: #{(@balance + profit).to_s.split_by_comma.ljust(15, ' ')} (#{profit.to_s.split_by_comma.color_with_number(profit)})
38
+ EOS
38
39
  sleep 0.1
39
40
  end
40
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitflyer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Ueki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-12 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor