zold 0.31.10 → 0.32.1

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.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +11 -27
  3. data/Gemfile +21 -33
  4. data/Gemfile.lock +181 -126
  5. data/Guardfile +0 -0
  6. data/INSTALL.md +80 -59
  7. data/LICENSE.txt +1 -1
  8. data/LICENSES/MIT.txt +21 -0
  9. data/README.md +183 -154
  10. data/REUSE.toml +40 -0
  11. data/Rakefile +4 -38
  12. data/bin/zold +7 -37
  13. data/deploy.sh +4 -22
  14. data/lib/zold/age.rb +3 -20
  15. data/lib/zold/amount.rb +3 -20
  16. data/lib/zold/cached_wallets.rb +3 -20
  17. data/lib/zold/commands/alias.rb +4 -21
  18. data/lib/zold/commands/args.rb +4 -21
  19. data/lib/zold/commands/calculate.rb +5 -22
  20. data/lib/zold/commands/clean.rb +6 -23
  21. data/lib/zold/commands/create.rb +5 -22
  22. data/lib/zold/commands/diff.rb +5 -22
  23. data/lib/zold/commands/fetch.rb +6 -23
  24. data/lib/zold/commands/invoice.rb +5 -22
  25. data/lib/zold/commands/list.rb +5 -22
  26. data/lib/zold/commands/merge.rb +7 -24
  27. data/lib/zold/commands/next.rb +5 -22
  28. data/lib/zold/commands/node.rb +4 -21
  29. data/lib/zold/commands/pay.rb +6 -23
  30. data/lib/zold/commands/propagate.rb +5 -22
  31. data/lib/zold/commands/pull.rb +5 -22
  32. data/lib/zold/commands/push.rb +5 -22
  33. data/lib/zold/commands/remote.rb +7 -24
  34. data/lib/zold/commands/remove.rb +5 -22
  35. data/lib/zold/commands/routines/audit.rb +4 -21
  36. data/lib/zold/commands/routines/gc.rb +6 -23
  37. data/lib/zold/commands/routines/reconcile.rb +5 -22
  38. data/lib/zold/commands/routines/reconnect.rb +4 -21
  39. data/lib/zold/commands/routines/retire.rb +4 -21
  40. data/lib/zold/commands/routines/spread.rb +5 -22
  41. data/lib/zold/commands/routines.rb +3 -20
  42. data/lib/zold/commands/show.rb +5 -22
  43. data/lib/zold/commands/taxes.rb +5 -22
  44. data/lib/zold/commands/thread_badge.rb +3 -20
  45. data/lib/zold/copies.rb +6 -25
  46. data/lib/zold/dir_items.rb +3 -20
  47. data/lib/zold/endless.rb +5 -22
  48. data/lib/zold/gem.rb +3 -20
  49. data/lib/zold/hands.rb +6 -23
  50. data/lib/zold/head.rb +4 -21
  51. data/lib/zold/hexnum.rb +3 -20
  52. data/lib/zold/http.rb +3 -20
  53. data/lib/zold/hungry_wallets.rb +6 -23
  54. data/lib/zold/id.rb +3 -20
  55. data/lib/zold/json_page.rb +5 -22
  56. data/lib/zold/key.rb +3 -20
  57. data/lib/zold/metronome.rb +5 -22
  58. data/lib/zold/node/async_entrance.rb +6 -23
  59. data/lib/zold/node/entrance.rb +7 -24
  60. data/lib/zold/node/farm.rb +5 -22
  61. data/lib/zold/node/farmers.rb +15 -32
  62. data/lib/zold/node/front.rb +6 -23
  63. data/lib/zold/node/journaled_pipeline.rb +8 -25
  64. data/lib/zold/node/nodup_entrance.rb +6 -23
  65. data/lib/zold/node/nospam_entrance.rb +6 -23
  66. data/lib/zold/node/pipeline.rb +6 -23
  67. data/lib/zold/node/safe_entrance.rb +4 -22
  68. data/lib/zold/node/soft_error.rb +3 -20
  69. data/lib/zold/node/spread_entrance.rb +5 -22
  70. data/lib/zold/node/sync_entrance.rb +5 -22
  71. data/lib/zold/node/trace.rb +3 -20
  72. data/lib/zold/patch.rb +6 -23
  73. data/lib/zold/prefixes.rb +3 -20
  74. data/lib/zold/remotes.rb +5 -22
  75. data/lib/zold/signature.rb +3 -20
  76. data/lib/zold/size.rb +3 -20
  77. data/lib/zold/sync_wallets.rb +5 -22
  78. data/lib/zold/tax.rb +4 -21
  79. data/lib/zold/thread_pool.rb +4 -21
  80. data/lib/zold/tree_wallets.rb +3 -20
  81. data/lib/zold/txn.rb +4 -21
  82. data/lib/zold/txns.rb +4 -21
  83. data/lib/zold/upgrades.rb +4 -21
  84. data/lib/zold/verbose_thread.rb +5 -22
  85. data/lib/zold/version.rb +4 -21
  86. data/lib/zold/version_file.rb +4 -21
  87. data/lib/zold/wallet.rb +6 -23
  88. data/lib/zold/wallets.rb +5 -23
  89. data/lib/zold.rb +3 -21
  90. data/resources/banned-wallets.log +6 -6
  91. data/upgrades/2.rb +3 -20
  92. data/upgrades/delete_banned_wallets.rb +3 -20
  93. data/upgrades/move_wallets_into_tree.rb +3 -20
  94. data/upgrades/protocol_up.rb +3 -20
  95. data/upgrades/rename_foreign_wallets.rb +3 -20
  96. data/views/journal.haml +25 -0
  97. data/views/layout.haml +25 -0
  98. data/views/wallet.haml +25 -0
  99. data/zold.gemspec +6 -22
  100. metadata +26 -174
  101. data/.0pdd.yml +0 -29
  102. data/.gitattributes +0 -9
  103. data/.github/workflows/actionlint.yml +0 -41
  104. data/.github/workflows/codecov.yml +0 -40
  105. data/.github/workflows/copyrights.yml +0 -30
  106. data/.github/workflows/pdd.yml +0 -34
  107. data/.github/workflows/rake.yml +0 -45
  108. data/.github/workflows/xcop.yml +0 -30
  109. data/.github/workflows/yamllint.yml +0 -34
  110. data/.gitignore +0 -12
  111. data/.pdd +0 -7
  112. data/.rubocop.yml +0 -70
  113. data/.ruby-version +0 -1
  114. data/.rultor.yml +0 -57
  115. data/.simplecov +0 -36
  116. data/cucumber.yml +0 -23
  117. data/features/cli.feature +0 -16
  118. data/features/gem_package.feature +0 -26
  119. data/features/step_definitions/steps.rb +0 -84
  120. data/features/support/env.rb +0 -26
  121. data/fixtures/448b451bc62e8e16.z +0 -1005
  122. data/fixtures/id_rsa +0 -51
  123. data/fixtures/id_rsa-2 +0 -51
  124. data/fixtures/id_rsa-2.pub +0 -1
  125. data/fixtures/id_rsa.pub +0 -1
  126. data/fixtures/keys/1.pub +0 -1
  127. data/fixtures/keys/2 +0 -51
  128. data/fixtures/keys/2.pub +0 -1
  129. data/fixtures/merge/asserts.rb +0 -36
  130. data/fixtures/merge/id_rsa +0 -51
  131. data/fixtures/merge/id_rsa.pub +0 -1
  132. data/fixtures/merge/into_no_wallet/assert.rb +0 -25
  133. data/fixtures/merge/into_no_wallet/copies/0123456789abcdef/1.zc +0 -6
  134. data/fixtures/merge/into_no_wallet/copies/0123456789abcdef/scores.zc +0 -1
  135. data/fixtures/merge/into_no_wallet/opts +0 -1
  136. data/fixtures/merge/legacy_negatives_stay/0123456789abcdef.z +0 -6
  137. data/fixtures/merge/legacy_negatives_stay/assert.rb +0 -25
  138. data/fixtures/merge/legacy_negatives_stay/copies/0123456789abcdef/1.zc +0 -6
  139. data/fixtures/merge/legacy_negatives_stay/copies/0123456789abcdef/scores.zc +0 -1
  140. data/fixtures/merge/legacy_negatives_stay/opts +0 -2
  141. data/fixtures/merge/missed_wallets/0000000000000000.z +0 -6
  142. data/fixtures/merge/missed_wallets/0123456789abcdef.z +0 -6
  143. data/fixtures/merge/missed_wallets/assert.rb +0 -25
  144. data/fixtures/merge/missed_wallets/copies/0123456789abcdef/1.zc +0 -8
  145. data/fixtures/merge/missed_wallets/copies/0123456789abcdef/scores.zc +0 -1
  146. data/fixtures/merge/missed_wallets/opts +0 -3
  147. data/fixtures/merge/negative_overwriting/0123456789abcdef.z +0 -6
  148. data/fixtures/merge/negative_overwriting/146b852f2d9ad984.z +0 -6
  149. data/fixtures/merge/negative_overwriting/assert.rb +0 -25
  150. data/fixtures/merge/negative_overwriting/copies/0123456789abcdef/1.zc +0 -6
  151. data/fixtures/merge/negative_overwriting/copies/0123456789abcdef/scores.zc +0 -1
  152. data/fixtures/merge/negative_overwriting/opts +0 -2
  153. data/fixtures/merge/negatives_in_between/0000000000000000.z +0 -6
  154. data/fixtures/merge/negatives_in_between/0123456789abcdef.z +0 -5
  155. data/fixtures/merge/negatives_in_between/assert.rb +0 -25
  156. data/fixtures/merge/negatives_in_between/copies/0123456789abcdef/1.zc +0 -6
  157. data/fixtures/merge/negatives_in_between/copies/0123456789abcdef/2.zc +0 -7
  158. data/fixtures/merge/negatives_in_between/copies/0123456789abcdef/3.zc +0 -6
  159. data/fixtures/merge/negatives_in_between/copies/0123456789abcdef/scores.zc +0 -3
  160. data/fixtures/merge/negatives_in_between/opts +0 -1
  161. data/fixtures/merge/random_expenses/0000000000000000.z +0 -6
  162. data/fixtures/merge/random_expenses/0123456789abcdef.z +0 -6
  163. data/fixtures/merge/random_expenses/assert.rb +0 -25
  164. data/fixtures/merge/random_expenses/copies/0123456789abcdef/1.zc +0 -7
  165. data/fixtures/merge/random_expenses/copies/0123456789abcdef/2.zc +0 -7
  166. data/fixtures/merge/random_expenses/copies/0123456789abcdef/3.zc +0 -7
  167. data/fixtures/merge/random_expenses/copies/0123456789abcdef/4.zc +0 -7
  168. data/fixtures/merge/random_expenses/copies/0123456789abcdef/5.zc +0 -7
  169. data/fixtures/merge/random_expenses/copies/0123456789abcdef/scores.zc +0 -5
  170. data/fixtures/merge/random_expenses/opts +0 -1
  171. data/fixtures/merge/simple_case/0000000000000000.z +0 -6
  172. data/fixtures/merge/simple_case/0123456789abcdef.z +0 -4
  173. data/fixtures/merge/simple_case/assert.rb +0 -25
  174. data/fixtures/merge/simple_case/copies/0123456789abcdef/1.zc +0 -6
  175. data/fixtures/merge/simple_case/copies/0123456789abcdef/scores.zc +0 -1
  176. data/fixtures/merge/simple_case/opts +0 -1
  177. data/fixtures/merge/unconfirmed_income/0123456789abcdef.z +0 -4
  178. data/fixtures/merge/unconfirmed_income/assert.rb +0 -25
  179. data/fixtures/merge/unconfirmed_income/copies/0123456789abcdef/1.zc +0 -6
  180. data/fixtures/merge/unconfirmed_income/copies/0123456789abcdef/scores.zc +0 -1
  181. data/fixtures/merge/unconfirmed_income/opts +0 -3
  182. data/fixtures/scripts/_head.sh +0 -89
  183. data/fixtures/scripts/calculate-scores.sh +0 -22
  184. data/fixtures/scripts/distribute-wallet.sh +0 -105
  185. data/fixtures/scripts/print-helps.sh +0 -27
  186. data/fixtures/scripts/pull-on-start.sh +0 -52
  187. data/fixtures/scripts/push-and-pull.sh +0 -63
  188. data/fixtures/scripts/redeploy-on-upgrade.sh +0 -56
  189. data/fixtures/scripts/spread-wallets.sh +0 -72
  190. data/lib/zold/log.rb +0 -139
  191. data/renovate.json +0 -6
  192. data/test/commands/routines/test_audit.rb +0 -41
  193. data/test/commands/routines/test_gc.rb +0 -70
  194. data/test/commands/routines/test_reconcile.rb +0 -51
  195. data/test/commands/routines/test_reconnect.rb +0 -46
  196. data/test/commands/routines/test_retire.rb +0 -40
  197. data/test/commands/test_alias.rb +0 -76
  198. data/test/commands/test_calculate.rb +0 -40
  199. data/test/commands/test_clean.rb +0 -73
  200. data/test/commands/test_create.rb +0 -50
  201. data/test/commands/test_diff.rb +0 -61
  202. data/test/commands/test_fetch.rb +0 -162
  203. data/test/commands/test_invoice.rb +0 -50
  204. data/test/commands/test_list.rb +0 -47
  205. data/test/commands/test_merge.rb +0 -129
  206. data/test/commands/test_node.rb +0 -68
  207. data/test/commands/test_pay.rb +0 -221
  208. data/test/commands/test_propagate.rb +0 -51
  209. data/test/commands/test_pull.rb +0 -70
  210. data/test/commands/test_push.rb +0 -93
  211. data/test/commands/test_remote.rb +0 -265
  212. data/test/commands/test_remove.rb +0 -66
  213. data/test/commands/test_show.rb +0 -48
  214. data/test/commands/test_taxes.rb +0 -76
  215. data/test/fake_home.rb +0 -104
  216. data/test/node/fake_entrance.rb +0 -43
  217. data/test/node/fake_node.rb +0 -105
  218. data/test/node/test_async_entrance.rb +0 -103
  219. data/test/node/test_entrance.rb +0 -82
  220. data/test/node/test_farm.rb +0 -177
  221. data/test/node/test_farmers.rb +0 -76
  222. data/test/node/test_front.rb +0 -399
  223. data/test/node/test_nodup_entrance.rb +0 -49
  224. data/test/node/test_nospam_entrance.rb +0 -49
  225. data/test/node/test_safe_entrance.rb +0 -59
  226. data/test/node/test_spread_entrance.rb +0 -67
  227. data/test/node/test_sync_entrance.rb +0 -41
  228. data/test/node/test_trace.rb +0 -36
  229. data/test/test__helper.rb +0 -112
  230. data/test/test_age.rb +0 -55
  231. data/test/test_amount.rb +0 -81
  232. data/test/test_cached_wallets.rb +0 -73
  233. data/test/test_copies.rb +0 -145
  234. data/test/test_dir_items.rb +0 -90
  235. data/test/test_gem.rb +0 -41
  236. data/test/test_hands.rb +0 -69
  237. data/test/test_hexnum.rb +0 -36
  238. data/test/test_http.rb +0 -225
  239. data/test/test_hungry_wallets.rb +0 -90
  240. data/test/test_id.rb +0 -79
  241. data/test/test_json_page.rb +0 -47
  242. data/test/test_key.rb +0 -99
  243. data/test/test_log.rb +0 -49
  244. data/test/test_metronome.rb +0 -89
  245. data/test/test_patch.rb +0 -178
  246. data/test/test_prefixes.rb +0 -49
  247. data/test/test_remotes.rb +0 -319
  248. data/test/test_signature.rb +0 -49
  249. data/test/test_size.rb +0 -39
  250. data/test/test_sync_wallets.rb +0 -57
  251. data/test/test_tax.rb +0 -171
  252. data/test/test_thread_pool.rb +0 -89
  253. data/test/test_tree_wallets.rb +0 -83
  254. data/test/test_txn.rb +0 -89
  255. data/test/test_upgrades.rb +0 -99
  256. data/test/test_verbose_thread.rb +0 -55
  257. data/test/test_version.rb +0 -35
  258. data/test/test_wallet.rb +0 -318
  259. data/test/test_wallets.rb +0 -85
  260. data/test/test_zold.rb +0 -99
  261. data/test/upgrades/test_delete_banned_wallets.rb +0 -47
  262. data/test/upgrades/test_protocol_up.rb +0 -42
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018-2024 Zerocracy
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require_relative '../lib/zold/version'
24
7
  require_relative '../lib/zold/wallet'
@@ -33,7 +16,7 @@ module Zold
33
16
 
34
17
  def exec
35
18
  Dir.new(@home).each do |path|
36
- next unless path =~ /^[a-f0-9]{16}#{Wallet::EXT}$/
19
+ next unless /^[a-f0-9]{16}#{Wallet::EXT}$/o.match?(path)
37
20
  f = File.join(@home, path)
38
21
  lines = File.read(f).split("\n")
39
22
  next if lines[1].to_i == Zold::PROTOCOL
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018-2024 Zerocracy
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'rainbow'
24
7
  require_relative '../lib/zold/version'
@@ -35,7 +18,7 @@ module Zold
35
18
 
36
19
  def exec
37
20
  Dir.new(@home).each do |path|
38
- next unless path =~ /^[a-f0-9]{16}#{Wallet::EXT}$/
21
+ next unless /^[a-f0-9]{16}#{Wallet::EXT}$/o.match?(path)
39
22
  f = File.join(@home, path)
40
23
  wallet = Wallet.new(f)
41
24
  next if wallet.network == @network
data/views/journal.haml CHANGED
@@ -1,3 +1,28 @@
1
+ -# SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
2
+ -# SPDX-License-Identifier: MIT
3
+
4
+ - # (The MIT License)
5
+ - #
6
+ - # Copyright (c) 2018-2025 Zerocracy
7
+ - #
8
+ - # Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ - # of this software and associated documentation files (the 'Software'), to deal
10
+ - # in the Software without restriction, including without limitation the rights
11
+ - # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ - # copies of the Software, and to permit persons to whom the Software is
13
+ - # furnished to do so, subject to the following conditions:
14
+ - #
15
+ - # The above copyright notice and this permission notice shall be included in all
16
+ - # copies or substantial portions of the Software.
17
+ - #
18
+ - # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ - # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ - # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ - # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ - # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ - # SOFTWARE.
25
+
1
26
  - if id
2
27
  %p
3
28
  Showing only wallet
data/views/layout.haml CHANGED
@@ -1,3 +1,28 @@
1
+ -# SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
2
+ -# SPDX-License-Identifier: MIT
3
+
4
+ - # (The MIT License)
5
+ - #
6
+ - # Copyright (c) 2018-2025 Zerocracy
7
+ - #
8
+ - # Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ - # of this software and associated documentation files (the 'Software'), to deal
10
+ - # in the Software without restriction, including without limitation the rights
11
+ - # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ - # copies of the Software, and to permit persons to whom the Software is
13
+ - # furnished to do so, subject to the following conditions:
14
+ - #
15
+ - # The above copyright notice and this permission notice shall be included in all
16
+ - # copies or substantial portions of the Software.
17
+ - #
18
+ - # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ - # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ - # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ - # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ - # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ - # SOFTWARE.
25
+
1
26
  !!! 5
2
27
  %html
3
28
  %head
data/views/wallet.haml CHANGED
@@ -1,3 +1,28 @@
1
+ -# SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
2
+ -# SPDX-License-Identifier: MIT
3
+
4
+ - # (The MIT License)
5
+ - #
6
+ - # Copyright (c) 2018-2025 Zerocracy
7
+ - #
8
+ - # Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ - # of this software and associated documentation files (the 'Software'), to deal
10
+ - # in the Software without restriction, including without limitation the rights
11
+ - # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ - # copies of the Software, and to permit persons to whom the Software is
13
+ - # furnished to do so, subject to the following conditions:
14
+ - #
15
+ - # The above copyright notice and this permission notice shall be included in all
16
+ - # copies or substantial portions of the Software.
17
+ - #
18
+ - # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ - # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ - # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ - # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ - # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ - # SOFTWARE.
25
+
1
26
  %p
2
27
  = wallet.network
3
28
  %br
data/zold.gemspec CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018-2024 Zerocracy
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'English'
24
7
 
@@ -46,7 +29,7 @@ It borrows the proof-of-work principle from Bitcoin, \
46
29
  and suggests a different architecture for digital wallet maintenance."
47
30
  s.authors = ['Yegor Bugayenko']
48
31
  s.email = 'yegor256@gmail.com'
49
- s.homepage = 'http://github.com/zold-io/zold'
32
+ s.homepage = 'https://github.com/zold-io/zold'
50
33
  s.post_install_message = "Thanks for installing Zold #{Zold::VERSION}!
51
34
  Study our White Paper: https://papers.zold.io/wp.pdf
52
35
  Read our blog posts: https://blog.zold.io
@@ -54,7 +37,7 @@ and suggests a different architecture for digital wallet maintenance."
54
37
  Stay in touch with the community in Telegram: https://t.me/zold_io
55
38
  Follow us on Twitter: https://twitter.com/0crat
56
39
  If you have any issues, report to our GitHub repo: https://github.com/zold-io/zold"
57
- s.files = `git ls-files`.split($RS)
40
+ s.files = `git ls-files | grep -v -E '^(test/|\\.|renovate|fixtures/|features/|cucumber\\.yml)'`.split($RS)
58
41
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
59
42
  s.rdoc_options = ['--charset=UTF-8']
60
43
  s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
@@ -65,6 +48,7 @@ and suggests a different architecture for digital wallet maintenance."
65
48
  s.add_dependency 'get_process_mem', '~>0.2'
66
49
  s.add_dependency 'haml', '~>5.0'
67
50
  s.add_dependency 'json', '~>2.2'
51
+ s.add_dependency 'loog', '>0'
68
52
  s.add_dependency 'memory_profiler', '~>1.0'
69
53
  s.add_dependency 'mimic', '~>0.4'
70
54
  s.add_dependency 'openssl', '>=1.0'
@@ -79,5 +63,5 @@ and suggests a different architecture for digital wallet maintenance."
79
63
  s.add_dependency 'typhoeus', '~>1.3'
80
64
  s.add_dependency 'usagewatch_ext', '~>0.2'
81
65
  s.add_dependency 'zache', '~>0.12'
82
- s.add_dependency 'zold-score', '~>0.5'
66
+ s.add_dependency 'zold-score', '>0'
83
67
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.10
4
+ version: 0.32.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: backtrace
@@ -108,6 +107,20 @@ dependencies:
108
107
  - - "~>"
109
108
  - !ruby/object:Gem::Version
110
109
  version: '2.2'
110
+ - !ruby/object:Gem::Dependency
111
+ name: loog
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">"
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ type: :runtime
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">"
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
111
124
  - !ruby/object:Gem::Dependency
112
125
  name: memory_profiler
113
126
  requirement: !ruby/object:Gem::Requirement
@@ -308,16 +321,16 @@ dependencies:
308
321
  name: zold-score
309
322
  requirement: !ruby/object:Gem::Requirement
310
323
  requirements:
311
- - - "~>"
324
+ - - ">"
312
325
  - !ruby/object:Gem::Version
313
- version: '0.5'
326
+ version: '0'
314
327
  type: :runtime
315
328
  prerelease: false
316
329
  version_requirements: !ruby/object:Gem::Requirement
317
330
  requirements:
318
- - - "~>"
331
+ - - ">"
319
332
  - !ruby/object:Gem::Version
320
- version: '0.5'
333
+ version: '0'
321
334
  description: In the last few years digital currencies have successfully demonstrated
322
335
  their ability to become an alternative financial instrument in many different markets.
323
336
  Most of the technologies available at the moment are based on the principles of
@@ -332,108 +345,21 @@ executables:
332
345
  - zold
333
346
  extensions: []
334
347
  extra_rdoc_files:
335
- - README.md
336
348
  - LICENSE.txt
349
+ - README.md
337
350
  files:
338
- - ".0pdd.yml"
339
- - ".gitattributes"
340
- - ".github/workflows/actionlint.yml"
341
- - ".github/workflows/codecov.yml"
342
- - ".github/workflows/copyrights.yml"
343
- - ".github/workflows/pdd.yml"
344
- - ".github/workflows/rake.yml"
345
- - ".github/workflows/xcop.yml"
346
- - ".github/workflows/yamllint.yml"
347
- - ".gitignore"
348
- - ".pdd"
349
- - ".rubocop.yml"
350
- - ".ruby-version"
351
- - ".rultor.yml"
352
- - ".simplecov"
353
351
  - Dockerfile
354
352
  - Gemfile
355
353
  - Gemfile.lock
356
354
  - Guardfile
357
355
  - INSTALL.md
358
356
  - LICENSE.txt
357
+ - LICENSES/MIT.txt
359
358
  - README.md
359
+ - REUSE.toml
360
360
  - Rakefile
361
361
  - bin/zold
362
- - cucumber.yml
363
362
  - deploy.sh
364
- - features/cli.feature
365
- - features/gem_package.feature
366
- - features/step_definitions/steps.rb
367
- - features/support/env.rb
368
- - fixtures/448b451bc62e8e16.z
369
- - fixtures/id_rsa
370
- - fixtures/id_rsa-2
371
- - fixtures/id_rsa-2.pub
372
- - fixtures/id_rsa.pub
373
- - fixtures/keys/1.pub
374
- - fixtures/keys/2
375
- - fixtures/keys/2.pub
376
- - fixtures/merge/asserts.rb
377
- - fixtures/merge/id_rsa
378
- - fixtures/merge/id_rsa.pub
379
- - fixtures/merge/into_no_wallet/assert.rb
380
- - fixtures/merge/into_no_wallet/copies/0123456789abcdef/1.zc
381
- - fixtures/merge/into_no_wallet/copies/0123456789abcdef/scores.zc
382
- - fixtures/merge/into_no_wallet/opts
383
- - fixtures/merge/legacy_negatives_stay/0123456789abcdef.z
384
- - fixtures/merge/legacy_negatives_stay/assert.rb
385
- - fixtures/merge/legacy_negatives_stay/copies/0123456789abcdef/1.zc
386
- - fixtures/merge/legacy_negatives_stay/copies/0123456789abcdef/scores.zc
387
- - fixtures/merge/legacy_negatives_stay/opts
388
- - fixtures/merge/missed_wallets/0000000000000000.z
389
- - fixtures/merge/missed_wallets/0123456789abcdef.z
390
- - fixtures/merge/missed_wallets/assert.rb
391
- - fixtures/merge/missed_wallets/copies/0123456789abcdef/1.zc
392
- - fixtures/merge/missed_wallets/copies/0123456789abcdef/scores.zc
393
- - fixtures/merge/missed_wallets/opts
394
- - fixtures/merge/negative_overwriting/0123456789abcdef.z
395
- - fixtures/merge/negative_overwriting/146b852f2d9ad984.z
396
- - fixtures/merge/negative_overwriting/assert.rb
397
- - fixtures/merge/negative_overwriting/copies/0123456789abcdef/1.zc
398
- - fixtures/merge/negative_overwriting/copies/0123456789abcdef/scores.zc
399
- - fixtures/merge/negative_overwriting/opts
400
- - fixtures/merge/negatives_in_between/0000000000000000.z
401
- - fixtures/merge/negatives_in_between/0123456789abcdef.z
402
- - fixtures/merge/negatives_in_between/assert.rb
403
- - fixtures/merge/negatives_in_between/copies/0123456789abcdef/1.zc
404
- - fixtures/merge/negatives_in_between/copies/0123456789abcdef/2.zc
405
- - fixtures/merge/negatives_in_between/copies/0123456789abcdef/3.zc
406
- - fixtures/merge/negatives_in_between/copies/0123456789abcdef/scores.zc
407
- - fixtures/merge/negatives_in_between/opts
408
- - fixtures/merge/random_expenses/0000000000000000.z
409
- - fixtures/merge/random_expenses/0123456789abcdef.z
410
- - fixtures/merge/random_expenses/assert.rb
411
- - fixtures/merge/random_expenses/copies/0123456789abcdef/1.zc
412
- - fixtures/merge/random_expenses/copies/0123456789abcdef/2.zc
413
- - fixtures/merge/random_expenses/copies/0123456789abcdef/3.zc
414
- - fixtures/merge/random_expenses/copies/0123456789abcdef/4.zc
415
- - fixtures/merge/random_expenses/copies/0123456789abcdef/5.zc
416
- - fixtures/merge/random_expenses/copies/0123456789abcdef/scores.zc
417
- - fixtures/merge/random_expenses/opts
418
- - fixtures/merge/simple_case/0000000000000000.z
419
- - fixtures/merge/simple_case/0123456789abcdef.z
420
- - fixtures/merge/simple_case/assert.rb
421
- - fixtures/merge/simple_case/copies/0123456789abcdef/1.zc
422
- - fixtures/merge/simple_case/copies/0123456789abcdef/scores.zc
423
- - fixtures/merge/simple_case/opts
424
- - fixtures/merge/unconfirmed_income/0123456789abcdef.z
425
- - fixtures/merge/unconfirmed_income/assert.rb
426
- - fixtures/merge/unconfirmed_income/copies/0123456789abcdef/1.zc
427
- - fixtures/merge/unconfirmed_income/copies/0123456789abcdef/scores.zc
428
- - fixtures/merge/unconfirmed_income/opts
429
- - fixtures/scripts/_head.sh
430
- - fixtures/scripts/calculate-scores.sh
431
- - fixtures/scripts/distribute-wallet.sh
432
- - fixtures/scripts/print-helps.sh
433
- - fixtures/scripts/pull-on-start.sh
434
- - fixtures/scripts/push-and-pull.sh
435
- - fixtures/scripts/redeploy-on-upgrade.sh
436
- - fixtures/scripts/spread-wallets.sh
437
363
  - lib/zold.rb
438
364
  - lib/zold/age.rb
439
365
  - lib/zold/amount.rb
@@ -478,7 +404,6 @@ files:
478
404
  - lib/zold/id.rb
479
405
  - lib/zold/json_page.rb
480
406
  - lib/zold/key.rb
481
- - lib/zold/log.rb
482
407
  - lib/zold/metronome.rb
483
408
  - lib/zold/node/async_entrance.rb
484
409
  - lib/zold/node/entrance.rb
@@ -511,82 +436,10 @@ files:
511
436
  - lib/zold/version_file.rb
512
437
  - lib/zold/wallet.rb
513
438
  - lib/zold/wallets.rb
514
- - renovate.json
515
439
  - resources/banned-wallets.csv
516
440
  - resources/banned-wallets.log
517
441
  - resources/masters
518
442
  - resources/root.pub
519
- - test/commands/routines/test_audit.rb
520
- - test/commands/routines/test_gc.rb
521
- - test/commands/routines/test_reconcile.rb
522
- - test/commands/routines/test_reconnect.rb
523
- - test/commands/routines/test_retire.rb
524
- - test/commands/test_alias.rb
525
- - test/commands/test_calculate.rb
526
- - test/commands/test_clean.rb
527
- - test/commands/test_create.rb
528
- - test/commands/test_diff.rb
529
- - test/commands/test_fetch.rb
530
- - test/commands/test_invoice.rb
531
- - test/commands/test_list.rb
532
- - test/commands/test_merge.rb
533
- - test/commands/test_node.rb
534
- - test/commands/test_pay.rb
535
- - test/commands/test_propagate.rb
536
- - test/commands/test_pull.rb
537
- - test/commands/test_push.rb
538
- - test/commands/test_remote.rb
539
- - test/commands/test_remove.rb
540
- - test/commands/test_show.rb
541
- - test/commands/test_taxes.rb
542
- - test/fake_home.rb
543
- - test/node/fake_entrance.rb
544
- - test/node/fake_node.rb
545
- - test/node/test_async_entrance.rb
546
- - test/node/test_entrance.rb
547
- - test/node/test_farm.rb
548
- - test/node/test_farmers.rb
549
- - test/node/test_front.rb
550
- - test/node/test_nodup_entrance.rb
551
- - test/node/test_nospam_entrance.rb
552
- - test/node/test_safe_entrance.rb
553
- - test/node/test_spread_entrance.rb
554
- - test/node/test_sync_entrance.rb
555
- - test/node/test_trace.rb
556
- - test/test__helper.rb
557
- - test/test_age.rb
558
- - test/test_amount.rb
559
- - test/test_cached_wallets.rb
560
- - test/test_copies.rb
561
- - test/test_dir_items.rb
562
- - test/test_gem.rb
563
- - test/test_hands.rb
564
- - test/test_hexnum.rb
565
- - test/test_http.rb
566
- - test/test_hungry_wallets.rb
567
- - test/test_id.rb
568
- - test/test_json_page.rb
569
- - test/test_key.rb
570
- - test/test_log.rb
571
- - test/test_metronome.rb
572
- - test/test_patch.rb
573
- - test/test_prefixes.rb
574
- - test/test_remotes.rb
575
- - test/test_signature.rb
576
- - test/test_size.rb
577
- - test/test_sync_wallets.rb
578
- - test/test_tax.rb
579
- - test/test_thread_pool.rb
580
- - test/test_tree_wallets.rb
581
- - test/test_txn.rb
582
- - test/test_upgrades.rb
583
- - test/test_verbose_thread.rb
584
- - test/test_version.rb
585
- - test/test_wallet.rb
586
- - test/test_wallets.rb
587
- - test/test_zold.rb
588
- - test/upgrades/test_delete_banned_wallets.rb
589
- - test/upgrades/test_protocol_up.rb
590
443
  - upgrades/2.rb
591
444
  - upgrades/delete_banned_wallets.rb
592
445
  - upgrades/move_wallets_into_tree.rb
@@ -596,12 +449,12 @@ files:
596
449
  - views/layout.haml
597
450
  - views/wallet.haml
598
451
  - zold.gemspec
599
- homepage: http://github.com/zold-io/zold
452
+ homepage: https://github.com/zold-io/zold
600
453
  licenses:
601
454
  - MIT
602
455
  metadata: {}
603
456
  post_install_message: |-
604
- Thanks for installing Zold 0.31.10!
457
+ Thanks for installing Zold 0.32.1!
605
458
  Study our White Paper: https://papers.zold.io/wp.pdf
606
459
  Read our blog posts: https://blog.zold.io
607
460
  Try ZLD online wallet at: https://wts.zold.io
@@ -623,8 +476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
623
476
  - !ruby/object:Gem::Version
624
477
  version: '0'
625
478
  requirements: []
626
- rubygems_version: 3.4.10
627
- signing_key:
479
+ rubygems_version: 3.6.9
628
480
  specification_version: 4
629
481
  summary: A fast cryptocurrency for micro payments
630
482
  test_files: []
data/.0pdd.yml DELETED
@@ -1,29 +0,0 @@
1
- # Copyright (c) 2018-2024 Zerocracy
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the 'Software'), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in all
11
- # copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- # SOFTWARE.
20
- ---
21
- errors:
22
- - yegor256@gmail.com
23
- # alerts:
24
- # github:
25
- # - yegor256
26
-
27
- tags:
28
- - pdd
29
- - bug
data/.gitattributes DELETED
@@ -1,9 +0,0 @@
1
- # Check out all text files in UNIX format, with LF as end of line
2
- # Don't change this file. If you have any ideas about it, please
3
- # submit a separate issue about it and we'll discuss.
4
-
5
- * text=auto eol=lf
6
- *.rb ident
7
- *.xml ident
8
- *.png binary
9
- *.pdf binary
@@ -1,41 +0,0 @@
1
- # Copyright (c) 2018-2024 Zerocracy
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the 'Software'), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in all
11
- # copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- # SOFTWARE.
20
- ---
21
- name: actionlint
22
- 'on':
23
- push:
24
- branches:
25
- - master
26
- pull_request:
27
- branches:
28
- - master
29
- jobs:
30
- actionlint:
31
- runs-on: ubuntu-22.04
32
- steps:
33
- - uses: actions/checkout@v4
34
- - name: Download actionlint
35
- id: get_actionlint
36
- # yamllint disable-line rule:line-length
37
- run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
38
- shell: bash
39
- - name: Check workflow files
40
- run: ${{ steps.get_actionlint.outputs.executable }} -color
41
- shell: bash
@@ -1,40 +0,0 @@
1
- # Copyright (c) 2018-2024 Zerocracy
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the 'Software'), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in all
11
- # copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- # SOFTWARE.
20
- ---
21
- name: codecov
22
- 'on':
23
- push:
24
- branches:
25
- - master
26
- jobs:
27
- codecov:
28
- runs-on: ubuntu-22.04
29
- steps:
30
- - uses: actions/checkout@v4
31
- - uses: ruby/setup-ruby@v1
32
- with:
33
- ruby-version: 3.2
34
- - run: bundle update
35
- - run: bundle exec rake --quiet
36
- - uses: codecov/codecov-action@v4
37
- with:
38
- token: ${{ secrets.CODECOV_TOKEN }}
39
- file: coverage/.resultset.json
40
- fail_ci_if_error: true
@@ -1,30 +0,0 @@
1
- # Copyright (c) 2018-2024 Zerocracy
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the 'Software'), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in all
11
- # copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- # SOFTWARE.
20
- ---
21
- name: copyrights
22
- 'on':
23
- push:
24
- pull_request:
25
- jobs:
26
- copyrights:
27
- runs-on: ubuntu-22.04
28
- steps:
29
- - uses: actions/checkout@v4
30
- - uses: yegor256/copyrights-action@0.0.5