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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 666f62b7fcb98a96d19bfdd61f882db3af5c53f4
4
- data.tar.gz: bf86844efd07b576b48b66d3d27de5c8491b4917
3
+ metadata.gz: 576dd96e2e2a1da6a83afa659711e29a8ce2a85f
4
+ data.tar.gz: 68c8d8d7831584e2445c2d44e9ed2005b34c1df3
5
5
  SHA512:
6
- metadata.gz: 1d36a2cac0f0d375c6d1c743058d756f3f86519867a4c5ac92be9591b13b9b49897410b301eba4ccb2cd030f933c879fbc9359081dad016a2e4c69ef1dfd2bac
7
- data.tar.gz: 6082adda14f0351d4610a34540fbedcd1ec849b4e979922016bc0a656d5b2b66f5f81938e2fb13d3275adf0488c5604a40f592a963314ae1a0047dad8fe1770d
6
+ metadata.gz: c2a91e0b3dd33aee886ec58ce7eb5cb61caf5ae4fe548625d34d8375df0d84ea13b2556e536839cb4491f4a99e54edb2d9b1f25c5f5c747355caa90b16c38818
7
+ data.tar.gz: 453c892da4fdcb7213392b6583379648e7e5552e32f2498cf7983afa917891e77be98a2ab41142c46ce672e662adf997450843691dc7fc154d4d5ee48da94e2f
@@ -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.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"
@@ -1,7 +1,7 @@
1
1
  module Gtmtech
2
2
  module Crypto
3
3
 
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  DESCRIPTION = "crypto is a cli tool for simple accounting of cryptocurrencies"
6
6
 
7
7
  end
@@ -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 = "%-36s %-20s %-14s %-15s %-15s %-15s %-12s %-14s %s"
77
+ cols = "%-10s %-20s %-14s %-15s %-15s %-15s %-12s %-14s %s"
78
78
  puts sprintf("#{cols}",
79
79
  "id",
80
80
  "date",
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Meakin