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 +4 -4
- data/gtmtech-crypto.gemspec +1 -1
- data/lib/gtmtech/crypto/data.rb +9 -1
- data/lib/gtmtech/crypto.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5afd9afeeee2a816f846d8b605e7b5cf723eedc4
|
4
|
+
data.tar.gz: 15309f5c7d554a39d6e4ac59ddefc1dc61239875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f0eeb75050a948182edee7cbd4ab255d1ee11b93505a8956d782e9f0e9621d0786905c4e12e09e64e4035d1169a0b0df1bd8a76990756bee8e9e847817f528f
|
7
|
+
data.tar.gz: 56ee761e325f1bfeaf1a76e2d49d49732a24761e400fac348b99843cb12835174300da5c63a18f9d93c9658513bd1fe0ee238cac257643cb72c3a1896acdf1d3
|
data/gtmtech-crypto.gemspec
CHANGED
@@ -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
|
+
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"
|
data/lib/gtmtech/crypto/data.rb
CHANGED
@@ -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
|
data/lib/gtmtech/crypto.rb
CHANGED