zold 0.21.1 → 0.21.2
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/.rubocop.yml +1 -1
- data/.rultor.yml +0 -16
- data/.simplecov +1 -1
- data/Gemfile +2 -2
- data/Rakefile +3 -2
- data/bin/zold +1 -1
- data/features/step_definitions/steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/fixtures/merge/asserts.rb +1 -1
- data/fixtures/merge/into-no-wallet/assert.rb +1 -1
- data/fixtures/merge/random-expenses/assert.rb +1 -1
- data/fixtures/merge/simple-case/assert.rb +1 -1
- data/lib/zold.rb +1 -1
- data/lib/zold/age.rb +1 -1
- data/lib/zold/amount.rb +1 -1
- data/lib/zold/cached_wallets.rb +1 -1
- data/lib/zold/commands/args.rb +1 -1
- data/lib/zold/commands/calculate.rb +1 -1
- data/lib/zold/commands/clean.rb +1 -1
- data/lib/zold/commands/create.rb +1 -1
- data/lib/zold/commands/diff.rb +1 -1
- data/lib/zold/commands/fetch.rb +1 -1
- data/lib/zold/commands/invoice.rb +1 -1
- data/lib/zold/commands/list.rb +1 -1
- data/lib/zold/commands/merge.rb +1 -1
- data/lib/zold/commands/next.rb +1 -1
- data/lib/zold/commands/node.rb +1 -1
- data/lib/zold/commands/pay.rb +1 -1
- data/lib/zold/commands/propagate.rb +1 -1
- data/lib/zold/commands/pull.rb +1 -1
- data/lib/zold/commands/push.rb +5 -5
- data/lib/zold/commands/remote.rb +1 -1
- data/lib/zold/commands/remove.rb +1 -1
- data/lib/zold/commands/routines/audit.rb +1 -1
- data/lib/zold/commands/routines/gc.rb +1 -1
- data/lib/zold/commands/routines/reconnect.rb +1 -1
- data/lib/zold/commands/show.rb +1 -1
- data/lib/zold/commands/taxes.rb +1 -1
- data/lib/zold/commands/thread_badge.rb +1 -1
- data/lib/zold/copies.rb +1 -1
- data/lib/zold/dir_items.rb +2 -2
- data/lib/zold/endless.rb +1 -1
- data/lib/zold/gem.rb +1 -1
- data/lib/zold/head.rb +1 -1
- data/lib/zold/hexnum.rb +1 -1
- data/lib/zold/http.rb +1 -1
- data/lib/zold/hungry_wallets.rb +1 -1
- data/lib/zold/id.rb +1 -1
- data/lib/zold/json_page.rb +1 -1
- data/lib/zold/key.rb +1 -1
- data/lib/zold/log.rb +1 -1
- data/lib/zold/metronome.rb +1 -1
- data/lib/zold/node/async_entrance.rb +1 -1
- data/lib/zold/node/emission.rb +1 -1
- data/lib/zold/node/entrance.rb +1 -1
- data/lib/zold/node/farm.rb +2 -2
- data/lib/zold/node/farmers.rb +1 -1
- data/lib/zold/node/front.rb +17 -1
- data/lib/zold/node/nodup_entrance.rb +1 -1
- data/lib/zold/node/nospam_entrance.rb +1 -1
- data/lib/zold/node/safe_entrance.rb +1 -1
- data/lib/zold/node/soft_error.rb +1 -1
- data/lib/zold/node/spread_entrance.rb +1 -1
- data/lib/zold/node/sync_entrance.rb +1 -1
- data/lib/zold/node/trace.rb +1 -1
- data/lib/zold/patch.rb +1 -1
- data/lib/zold/prefixes.rb +1 -1
- data/lib/zold/remotes.rb +1 -1
- data/lib/zold/signature.rb +1 -1
- data/lib/zold/size.rb +4 -3
- data/lib/zold/sync_wallets.rb +1 -1
- data/lib/zold/tax.rb +1 -1
- data/lib/zold/thread_pool.rb +2 -1
- data/lib/zold/tree_wallets.rb +1 -1
- data/lib/zold/txn.rb +11 -1
- data/lib/zold/txns.rb +1 -1
- data/lib/zold/upgrades.rb +1 -1
- data/lib/zold/verbose_thread.rb +1 -1
- data/lib/zold/version.rb +2 -2
- data/lib/zold/version_file.rb +1 -1
- data/lib/zold/wallet.rb +1 -1
- data/lib/zold/wallets.rb +1 -1
- data/resources/masters +0 -1
- data/test/commands/routines/test_audit.rb +1 -1
- data/test/commands/routines/test_gc.rb +1 -1
- data/test/commands/routines/test_reconnect.rb +1 -1
- data/test/commands/test_calculate.rb +1 -1
- data/test/commands/test_clean.rb +1 -1
- data/test/commands/test_create.rb +1 -1
- data/test/commands/test_diff.rb +1 -1
- data/test/commands/test_fetch.rb +1 -1
- data/test/commands/test_invoice.rb +1 -1
- data/test/commands/test_list.rb +1 -1
- data/test/commands/test_merge.rb +1 -1
- data/test/commands/test_node.rb +1 -1
- data/test/commands/test_pay.rb +1 -1
- data/test/commands/test_propagate.rb +1 -1
- data/test/commands/test_pull.rb +1 -1
- data/test/commands/test_push.rb +1 -1
- data/test/commands/test_remote.rb +1 -1
- data/test/commands/test_remove.rb +1 -1
- data/test/commands/test_show.rb +1 -1
- data/test/commands/test_taxes.rb +1 -1
- data/test/fake_home.rb +1 -1
- data/test/node/fake_entrance.rb +1 -1
- data/test/node/fake_node.rb +1 -1
- data/test/node/test_async_entrance.rb +1 -1
- data/test/node/test_emission.rb +1 -1
- data/test/node/test_entrance.rb +1 -1
- data/test/node/test_farm.rb +1 -1
- data/test/node/test_farmers.rb +1 -1
- data/test/node/test_front.rb +16 -1
- data/test/node/test_nodup_entrance.rb +1 -1
- data/test/node/test_nospam_entrance.rb +1 -1
- data/test/node/test_safe_entrance.rb +1 -1
- data/test/node/test_spread_entrance.rb +1 -1
- data/test/node/test_sync_entrance.rb +1 -1
- data/test/node/test_trace.rb +1 -1
- data/test/test__helper.rb +1 -1
- data/test/test_age.rb +1 -1
- data/test/test_amount.rb +1 -1
- data/test/test_cached_wallets.rb +1 -1
- data/test/test_copies.rb +1 -1
- data/test/test_dir_items.rb +1 -1
- data/test/test_hexnum.rb +1 -1
- data/test/test_http.rb +1 -1
- data/test/test_hungry_wallets.rb +1 -1
- data/test/test_id.rb +1 -1
- data/test/test_json_page.rb +1 -1
- data/test/test_key.rb +1 -1
- data/test/test_log.rb +1 -1
- data/test/test_metronome.rb +1 -1
- data/test/test_patch.rb +1 -1
- data/test/test_prefixes.rb +1 -1
- data/test/test_remotes.rb +2 -2
- data/test/test_signature.rb +1 -1
- data/test/test_size.rb +1 -1
- data/test/test_sync_wallets.rb +1 -1
- data/test/test_tax.rb +1 -1
- data/test/test_thread_pool.rb +1 -1
- data/test/test_tree_wallets.rb +1 -1
- data/test/test_txn.rb +1 -1
- data/test/test_upgrades.rb +1 -1
- data/test/test_verbose_thread.rb +1 -1
- data/test/test_wallet.rb +2 -1
- data/test/test_wallets.rb +1 -1
- data/test/test_zold.rb +1 -1
- data/test/upgrades/test_protocol_up.rb +1 -1
- data/upgrades/2.rb +1 -1
- data/upgrades/move_wallets_into_tree.rb +1 -1
- data/upgrades/protocol_up.rb +1 -1
- data/upgrades/rename_foreign_wallets.rb +1 -1
- data/zold.gemspec +10 -10
- metadata +79 -83
- data/Procfile +0 -1
- data/heroku-run.sh +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f59929d65212d37d32f1f98418735329e8194520b349f74c44dca7409ed610e4
|
4
|
+
data.tar.gz: 3d81af110e3e5835272484ee0a0b420e6f58bd87b9b035faba6a48f2d16f697c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e88d9c8d354a0181c054a21ddbab493bc8161463112b18436777fa814d714b9ada75c70fe6703f06bfec564a3cd26c6b149496cd33490ce9539a1b498f10d42
|
7
|
+
data.tar.gz: 7f85bacbe457dc46ee7ae4a46fba59211e16db5e35c951eef6a48e0500ee827c8deb78b91ee7e71c0f750bf335f62e3e2cf6460fc4afdd0772388063ab9b2c9c
|
data/.rubocop.yml
CHANGED
data/.rultor.yml
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
assets:
|
2
2
|
rubygems.yml: zerocracy/home#assets/rubygems.yml
|
3
|
-
id_rsa: zerocracy/home#assets/heroku-key
|
4
|
-
id_rsa.pub: zerocracy/home#assets/heroku-key.pub
|
5
3
|
install: |
|
6
4
|
export GEM_HOME=~/.ruby
|
7
5
|
export GEM_PATH=$GEM_HOME:$GEM_PATH
|
@@ -24,20 +22,6 @@ release:
|
|
24
22
|
gem build zold.gemspec
|
25
23
|
chmod 0600 ../rubygems.yml
|
26
24
|
gem push *.gem --config-file ../rubygems.yml
|
27
|
-
git remote add heroku git@heroku.com:zold.git
|
28
|
-
rm -rf ~/.ssh
|
29
|
-
mkdir ~/.ssh
|
30
|
-
mv ../id_rsa ../id_rsa.pub ~/.ssh
|
31
|
-
chmod -R 600 ~/.ssh/*
|
32
|
-
echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config
|
33
|
-
sed -i -s 's|Gemfile.lock||g' .gitignore
|
34
|
-
bundle update
|
35
|
-
trap 'git reset HEAD~1' EXIT
|
36
|
-
git add Gemfile.lock
|
37
|
-
git add .gitignore
|
38
|
-
git fetch
|
39
|
-
git commit -m 'config' && git push -f heroku $(git symbolic-ref --short HEAD):master
|
40
|
-
curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://b1.zold.io > /dev/null
|
41
25
|
architect:
|
42
26
|
- yegor256
|
43
27
|
merge:
|
data/.simplecov
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -21,5 +21,5 @@
|
|
21
21
|
# SOFTWARE.
|
22
22
|
|
23
23
|
source 'https://rubygems.org'
|
24
|
-
ruby '2.
|
24
|
+
ruby '2.6.0'
|
25
25
|
gemspec
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -22,6 +22,7 @@
|
|
22
22
|
|
23
23
|
require 'rubygems'
|
24
24
|
require 'rake'
|
25
|
+
require 'date'
|
25
26
|
require 'rdoc'
|
26
27
|
require 'rake/clean'
|
27
28
|
|
@@ -80,7 +81,7 @@ Xcop::RakeTask.new :xcop do |task|
|
|
80
81
|
end
|
81
82
|
|
82
83
|
task :copyright do
|
83
|
-
sh "grep -q -r '
|
84
|
+
sh "grep -q -r '2018-#{Date.today.strftime('%Y')}' \
|
84
85
|
--include '*.rb' \
|
85
86
|
--include '*.txt' \
|
86
87
|
--include 'Rakefile' \
|
data/bin/zold
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
#
|
4
|
-
# Copyright (c) 2018
|
4
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/features/support/env.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/fixtures/merge/asserts.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/age.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/amount.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/cached_wallets.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/args.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/clean.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/create.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/diff.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/fetch.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/list.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/merge.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/next.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/node.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/pay.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/pull.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/push.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -92,6 +92,9 @@ Available options:"
|
|
92
92
|
|
93
93
|
def push(id, opts)
|
94
94
|
raise "There are no remote nodes, run 'zold remote reset'" if @remotes.all.empty?
|
95
|
+
@wallets.acq(id) do |wallet|
|
96
|
+
raise "The wallet #{id} is absent at #{wallet.path}" unless wallet.exists?
|
97
|
+
end
|
95
98
|
start = Time.now
|
96
99
|
total = Concurrent::AtomicFixnum.new
|
97
100
|
nodes = Concurrent::AtomicFixnum.new
|
@@ -127,10 +130,7 @@ out of #{nodes.value} in #{Age.new(start)}, total score for #{id} is #{total.val
|
|
127
130
|
start = Time.now
|
128
131
|
uri = "/wallet/#{id}"
|
129
132
|
response = Tempfile.open do |f|
|
130
|
-
@wallets.acq(id)
|
131
|
-
raise "The wallet #{id} is absent" unless wallet.exists?
|
132
|
-
FileUtils.copy_file(wallet.path, f.path)
|
133
|
-
end
|
133
|
+
@wallets.acq(id) { |w| FileUtils.copy_file(w.path, f.path) }
|
134
134
|
r.http(uri).put(f)
|
135
135
|
end
|
136
136
|
@wallets.acq(id) do |wallet|
|
data/lib/zold/commands/remote.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/remove.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/show.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/taxes.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/copies.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018
|
3
|
+
# Copyright (c) 2018-2019 Zerocracy, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|