zold 0.11.12 → 0.11.13
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/lib/zold/commands/invoice.rb +1 -1
- data/lib/zold/commands/merge.rb +4 -1
- data/lib/zold/commands/pay.rb +1 -1
- data/lib/zold/version.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: 734d97457d4cc18d8b84d6371904086aef0c7019
|
4
|
+
data.tar.gz: df98902e71751e659730fd4cee9dcff8e8ddaba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c2a79df0c7e6df4b31787fb4a726e7a56cc91f32227c83ac2d78fbf91f651ef3f17f82a5be6c64d6d590d2a72c00cf20cba203817d758418c6ac601caf8be85
|
7
|
+
data.tar.gz: 150bbcb1df2950d67628c6452cb84ae5d5ba15c175f25ef97b8f4493cacbb6c95541216796a507220006f9546b0a2ef38d3286819965e2f403296fec8e8e401f
|
@@ -50,7 +50,7 @@ Available options:"
|
|
50
50
|
raise 'Receiver wallet ID is required' if mine[0].nil?
|
51
51
|
id = Zold::Id.new(mine[0])
|
52
52
|
wallet = @wallets.find(id)
|
53
|
-
raise "Wallet #{id} doesn\'t exist in #{@wallets}, do 'pull' first" unless wallet.exists?
|
53
|
+
raise "Wallet #{id} doesn\'t exist in #{@wallets}, do 'zold pull' first" unless wallet.exists?
|
54
54
|
invoice(wallet, opts)
|
55
55
|
end
|
56
56
|
|
data/lib/zold/commands/merge.rb
CHANGED
@@ -61,7 +61,10 @@ Available options:"
|
|
61
61
|
private
|
62
62
|
|
63
63
|
def merge(id, cps, _)
|
64
|
-
|
64
|
+
if cps.all.empty?
|
65
|
+
@log.error("There are no remote copies of #{id}, try 'zold fetch' first")
|
66
|
+
return
|
67
|
+
end
|
65
68
|
wallet = @wallets.find(id)
|
66
69
|
cps = cps.all.sort_by { |c| c[:score] }.reverse
|
67
70
|
patch = Patch.new
|
data/lib/zold/commands/pay.rb
CHANGED
@@ -61,7 +61,7 @@ Available options:"
|
|
61
61
|
raise 'Payer wallet ID is required as the first argument' if mine[0].nil?
|
62
62
|
id = Id.new(mine[0])
|
63
63
|
from = @wallets.find(id)
|
64
|
-
raise "Wallet #{id} doesn't exist, do 'pull' first" unless from.exists?
|
64
|
+
raise "Wallet #{id} doesn't exist, do 'zold pull' first" unless from.exists?
|
65
65
|
raise 'Recepient\'s invoice or wallet ID is required as the second argument' if mine[1].nil?
|
66
66
|
invoice = mine[1]
|
67
67
|
unless invoice.include?('@')
|
data/lib/zold/version.rb
CHANGED