zold 0.13.39 → 0.13.40

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: 47d9dcf9ec8a2a32dffe47e6e2c9d5edc94d3d09
4
- data.tar.gz: 1ed5c3c3dd87b804bd7cdfff3e489d37ef39faee
3
+ metadata.gz: 578bc522cfcaed922a3440d80d38f95a69af7977
4
+ data.tar.gz: 2e23c53f4812f19e33d0c4120c79c1361b2f9c9b
5
5
  SHA512:
6
- metadata.gz: 8d457fc55f2647038d922b1d047d952b75282650fc6744ce70d6a476ddcc1d744f54ea861d59fc70e289b9e8cf4ad8f283ea17d19cbd710b12db195527a165ab
7
- data.tar.gz: 2fc54011ff8fe3b23b05839f73ee4b7ec1f5281424a6c5d5f9b785a8319b328a3f6acde934cd703dd6e441a1e0e80628189f4d8113117452f4505fc48160aecb
6
+ metadata.gz: 661e61e5f36b391b0c1815a3fa9032aacb8f52ab173b71e079bbc011e89b8abc7a38b9223b57ecbd30d517abd34ea6621c5faa7cbb4ae8ffbf9bf6ac7fc9b6d1
7
+ data.tar.gz: 75d126c26de193a5b7e3646db1f9922602be31536acfeab6e46f24f869e4d398041bb340d0c541148c602478988f2d08dde9e433ccbc8ed02bb1902f3444df4b
data/README.md CHANGED
@@ -109,6 +109,12 @@ $ zold node --nohup --invoice=5f96e731e48ae21f
109
109
  Now you can close the console;
110
110
  the software will work in the background, saving the output logs to `zold.log`.
111
111
  The software will update itself automatically to new versions.
112
+ The software will never stop, even if it crashes internally with any error.
113
+ In order to terminate it forcefully, do:
114
+
115
+ ```bash
116
+ $ killall -9 zold
117
+ ```
112
118
 
113
119
  Grateful users of the system will pay "taxes" to your wallet
114
120
  for the maintenance of their wallets, and the system will occasionally
@@ -157,8 +157,13 @@ module Zold
157
157
  Front.set(:reboot, !opts['never-reboot'])
158
158
  invoice = opts[:invoice]
159
159
  unless invoice.include?('@')
160
- require_relative 'pull'
161
- Pull.new(wallets: @wallets, remotes: @remotes, copies: @copies, log: @log).run(['pull', invoice])
160
+ if @wallets.find(Id.new(invoice)).exists?
161
+ @log.info("Wallet #{invoice} already exists locally, won't pull")
162
+ else
163
+ @log.info("The wallet #{invoice} is not available locally, will pull now...")
164
+ require_relative 'pull'
165
+ Pull.new(wallets: @wallets, remotes: @remotes, copies: @copies, log: @log).run(['pull', invoice])
166
+ end
162
167
  require_relative 'invoice'
163
168
  invoice = Invoice.new(wallets: @wallets, log: @log).run(['invoice', invoice])
164
169
  end
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.13.39'.freeze
26
+ VERSION = '0.13.40'.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.13.39
4
+ version: 0.13.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko