sibit 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sibit +2 -0
  3. data/lib/sibit/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45ecd94da9a09da7f98b1997ec5a4bc809586fd0df18ffc5e83f3868fb57cf1d
4
- data.tar.gz: bc0cbf54e5606685cf7c6729c49b5eadbc6b5590d7942cd880e4fd82daa5c1d6
3
+ metadata.gz: '048a38f261e97782ba518f01532bf16277f6902279220bef3dcf2fdcbcd30a02'
4
+ data.tar.gz: 0ba3b10db4ec304019a79d9ca95330b6935560cf8f77d7247f8219f6d0a6934b
5
5
  SHA512:
6
- metadata.gz: 2049ad467b90e2b87d7f4149aa5d79d86810fc3b0fa56b278e17a7de3c9e3613c38eb53fb82fe3f5d8a68184921fadc04c9d3e3433c912034afe411e3509cd22
7
- data.tar.gz: 3e15a316137cb4d01c8b9a1dd3339865920fe7006fdd52e31bf79ea284160eaeda73283414f75eeaad6805d27933b3b1538cdf71eda4566e7233da92ccf7ec6a
6
+ metadata.gz: f42c926db24b050b6e0425c030e62695c42a48b002eb1d89555fda8c5f7f8fdff983fc0e5a1321b04bf507989a2fcc4ad207fde5951212cb5a3b209af474d9f3
7
+ data.tar.gz: 54aca991f7aded45ea28726156b732f2a42ddff0f44a633791bd672c5b82a24d0f43d4d0c856c718f92009a706d04a2a014ce064b370db65d82b57b739a778fb
data/bin/sibit CHANGED
@@ -67,8 +67,10 @@ Options are:"
67
67
  when 'pay'
68
68
  amount = opts.arguments[1]
69
69
  raise 'Amount argument is required' if amount.nil?
70
+ amount = amount.to_i if /^[0-9]+$/.match?(amount)
70
71
  fee = opts.arguments[2]
71
72
  raise 'Miners fee argument is required' if fee.nil?
73
+ fee = fee.to_i if /^[0-9]+$/.match?(fee)
72
74
  sources = opts.arguments[3]
73
75
  raise 'Addresses argument is required' if sources.nil?
74
76
  target = opts.arguments[4]
data/lib/sibit/version.rb CHANGED
@@ -26,5 +26,5 @@
26
26
  # License:: MIT
27
27
  class Sibit
28
28
  # Current version of the library.
29
- VERSION = '0.7.6'
29
+ VERSION = '0.7.7'
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko