gtmtech-crypto 0.0.7 → 0.0.8

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: 9249ed0680a98415b65c2c8a4b0a2a09757c6f39
4
- data.tar.gz: fc6c53c8576ce6a614f9a8e4e47ff6b8a3b28280
3
+ metadata.gz: 5afd9afeeee2a816f846d8b605e7b5cf723eedc4
4
+ data.tar.gz: 15309f5c7d554a39d6e4ac59ddefc1dc61239875
5
5
  SHA512:
6
- metadata.gz: b169a5d180010831985fe0a5272f479ac5dc64d56a5018258fa46613e25617541c7b62f5435facef4a5aa15a167fc1e1cea545212471b6c83ff4d8f27bf85e4d
7
- data.tar.gz: 0666c0d29a85d7439032af75fa5d5e50520cae9a0af5b3b175692b9a3c57a978f86f8275fd8eddb034217a9b4e464e315da7322e91af31d6cd35066ada588907
6
+ metadata.gz: 8f0eeb75050a948182edee7cbd4ab255d1ee11b93505a8956d782e9f0e9621d0786905c4e12e09e64e4035d1169a0b0df1bd8a76990756bee8e9e847817f528f
7
+ data.tar.gz: 56ee761e325f1bfeaf1a76e2d49d49732a24761e400fac348b99843cb12835174300da5c63a18f9d93c9658513bd1fe0ee238cac257643cb72c3a1896acdf1d3
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "gtmtech-crypto"
7
- gem.version = "0.0.7"
7
+ gem.version = "0.0.8"
8
8
  gem.description = "Simple tool for accounting of cryptocurrencies"
9
9
  gem.summary = "Simple tool for accounting of cryptocurrencies"
10
10
  gem.author = "Geoff Meakin"
@@ -132,12 +132,20 @@ module Gtmtech
132
132
  unless currencies.key? currency
133
133
  currencies[ currency ] = "0.0"
134
134
  end
135
- currencies[ currency ] = Utils.decimal_add( currencies[ currency ], fees[ currency ] )
136
135
  printf( "%-20s %-10s %-20s\n", "**FEES**", currency, fees[ currency ] )
137
136
  end
137
+
138
138
  puts ""
139
139
  printf( "%-10s %-20s\n", "currency", "reconciliation" )
140
140
  puts "-" * 120
141
+ currencies.keys.sort.each do |currency|
142
+ currency_fees = fees[ currency ] || "0.0"
143
+ printf( "%-10s %-20s\n", currency, Utils.decimal_add( currencies[ currency ], currency_fees ) )
144
+ end
145
+
146
+ puts ""
147
+ printf( "%-10s %-20s\n", "currency", "totals" )
148
+ puts "-" * 120
141
149
  currencies.keys.sort.each do |currency|
142
150
  printf( "%-10s %-20s\n", currency, currencies[ currency ] )
143
151
  end
@@ -1,7 +1,7 @@
1
1
  module Gtmtech
2
2
  module Crypto
3
3
 
4
- VERSION = "0.0.7"
4
+ VERSION = "0.0.8"
5
5
  DESCRIPTION = "crypto is a cli tool for simple accounting of cryptocurrencies"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtmtech-crypto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Meakin