gtmtech-crypto 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gtmtech-crypto.gemspec +1 -1
- data/lib/gtmtech/crypto.rb +1 -1
- data/lib/gtmtech/crypto/data.rb +2 -2
- 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: 576dd96e2e2a1da6a83afa659711e29a8ce2a85f
|
4
|
+
data.tar.gz: 68c8d8d7831584e2445c2d44e9ed2005b34c1df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2a91e0b3dd33aee886ec58ce7eb5cb61caf5ae4fe548625d34d8375df0d84ea13b2556e536839cb4491f4a99e54edb2d9b1f25c5f5c747355caa90b16c38818
|
7
|
+
data.tar.gz: 453c892da4fdcb7213392b6583379648e7e5552e32f2498cf7983afa917891e77be98a2ab41142c46ce672e662adf997450843691dc7fc154d4d5ee48da94e2f
|
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.1.
|
7
|
+
gem.version = "0.1.2"
|
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.rb
CHANGED
data/lib/gtmtech/crypto/data.rb
CHANGED
@@ -55,7 +55,7 @@ module Gtmtech
|
|
55
55
|
source_amount = Utils.make_decimal source_amount
|
56
56
|
dest_amount = Utils.make_decimal dest_amount
|
57
57
|
|
58
|
-
id = SecureRandom.uuid.to_s
|
58
|
+
id = SecureRandom.uuid.to_s[0..7]
|
59
59
|
@@document[ "transactions" ][ id ] = { "date" => date,
|
60
60
|
"source_account" => source_account,
|
61
61
|
"source_currency" => source_currency,
|
@@ -74,7 +74,7 @@ module Gtmtech
|
|
74
74
|
outputs = []
|
75
75
|
|
76
76
|
puts "Transactions for profile \"#{ENV['CRYPTO_PROFILE'] || 'main'}\":\n".red
|
77
|
-
cols = "%-
|
77
|
+
cols = "%-10s %-20s %-14s %-15s %-15s %-15s %-12s %-14s %s"
|
78
78
|
puts sprintf("#{cols}",
|
79
79
|
"id",
|
80
80
|
"date",
|