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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90832b265cac310c342302076196ba278cb95a61
4
- data.tar.gz: 6dfa38e0c58cf822e932e02f6069d320bb27ea3c
3
+ metadata.gz: 734d97457d4cc18d8b84d6371904086aef0c7019
4
+ data.tar.gz: df98902e71751e659730fd4cee9dcff8e8ddaba4
5
5
  SHA512:
6
- metadata.gz: b9bad4cfcf2359824214fceb42944f835864fd6beac8603f63862d9a0311b0a9a64cc4dc016bfe96db5043416a51e29cce4d449a6090e968aa301ad80b5a4e8c
7
- data.tar.gz: be26c9b2ff2d1afaafbfb96d3074b32fe31633d28430e9d9d62d46c8a089e6a77c0aee107bd7404b17904fa8d2d62d41cbfbf4222ff365a8c218968d3c9b03cf
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
 
@@ -61,7 +61,10 @@ Available options:"
61
61
  private
62
62
 
63
63
  def merge(id, cps, _)
64
- raise "There are no remote copies of #{id}, try FETCH first" if cps.all.empty?
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
@@ -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
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Zold
26
- VERSION = '0.11.12'.freeze
26
+ VERSION = '0.11.13'.freeze
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.12
4
+ version: 0.11.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko