sibit 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0b1d304380fca1fef9eb7355697118372c870183984850abb5216ea4b7c095b
4
- data.tar.gz: a7ee0b6936f3f09e8a0f4b94b9255860cc06f8b872d2771ac52cb496daf122eb
3
+ metadata.gz: 22f82f7d81735f064b2368018ecd6217d449f358ac5b34eb5bcaec17afae5210
4
+ data.tar.gz: da0948041205caecfe3f7b76df8bbafb869b937449036098064e2253ee9312bf
5
5
  SHA512:
6
- metadata.gz: 839be690c43d141de6d4ccd186cf7c6a995fd83327a4d87da0cb7fed9e4ef36201bc6e2c153cddcdd26a01eeaa4dd9dc240f37aa65f5057295709c58ba494d76
7
- data.tar.gz: 6b4a2a5cc576f013af4a420397cc6fc281a778ad45e31668976d7fd3719917accc643f13a929b44ec7273b04a95ebc2df1a82e00839eec204af869589ecb66e8
6
+ metadata.gz: 91960b55ab78e02649609176a6c9e6325617af58b0340cacee0a79960fca3b4a919c2ef991477286443e9e7489d75b027f9dc47360e89aed171bd406795be1b9
7
+ data.tar.gz: e40b1f7f3955f334d465b9def40e5572f6b0f1bc66cbef988d7f4c0d21b06d3e741aea567e7e0586d401a6630f3f00e3b80ce387caf9b8d8021409d85b339427
@@ -8,13 +8,13 @@ jobs:
8
8
  codecov:
9
9
  runs-on: ubuntu-20.04
10
10
  steps:
11
- - uses: actions/checkout@v2
11
+ - uses: actions/checkout@v3
12
12
  - uses: actions/setup-ruby@v1
13
13
  with:
14
14
  ruby-version: 2.7
15
15
  - run: bundle update
16
16
  - run: bundle exec rake
17
- - uses: codecov/codecov-action@v1
17
+ - uses: codecov/codecov-action@v3
18
18
  with:
19
19
  file: coverage/.resultset.json
20
20
  fail_ci_if_error: true
@@ -11,5 +11,5 @@ jobs:
11
11
  pdd:
12
12
  runs-on: ubuntu-20.04
13
13
  steps:
14
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v3
15
15
  - uses: g4s8/pdd-action@master
@@ -12,12 +12,12 @@ jobs:
12
12
  name: test
13
13
  strategy:
14
14
  matrix:
15
- os: [ubuntu-20.04, macos-12, windows-2022]
16
- ruby: [2.7, 3.0]
15
+ os: [ubuntu-20.04]
16
+ ruby: [2.6]
17
17
  runs-on: ${{ matrix.os }}
18
18
  steps:
19
- - uses: actions/checkout@v2
20
- - uses: actions/setup-ruby@v1
19
+ - uses: actions/checkout@v3
20
+ - uses: ruby/setup-ruby@v1
21
21
  with:
22
22
  ruby-version: ${{ matrix.ruby }}
23
23
  - run: bundle update
@@ -11,7 +11,7 @@ jobs:
11
11
  xcop:
12
12
  runs-on: ubuntu-20.04
13
13
  steps:
14
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v3
15
15
  - uses: g4s8/xcop-action@master
16
16
  with:
17
17
  files: '**/*.xml'
data/.rubocop.yml CHANGED
@@ -32,3 +32,5 @@ Style/MultilineTernaryOperator:
32
32
  Enabled: false
33
33
  Layout/EmptyLineAfterGuardClause:
34
34
  Enabled: false
35
+ Lint/OrAssignmentToConstant:
36
+ Enabled: false
data/.rultor.yml CHANGED
@@ -1,12 +1,15 @@
1
+ docker:
2
+ image: yegor256/rultor-image:1.21.0
1
3
  assets:
2
4
  rubygems.yml: yegor256/home#assets/rubygems.yml
3
5
  install: |
6
+ sudo gem install openssl -- --with-openssl-dir=/usr/local/rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/openssl
4
7
  pdd -f /dev/null
5
8
  sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
6
9
  release:
7
10
  script: |-
8
11
  bundle exec rake clean test rubocop copyright
9
- sed -i "s/1\.0\.snapshot/${tag}/g" lib/sibit/version.rb
12
+ sed -i "s/0\.0\.0/${tag}/g" lib/sibit/version.rb
10
13
  git add lib/sibit/version.rb
11
14
  git commit -m "version set to ${tag}"
12
15
  gem build sibit.gemspec
@@ -15,7 +18,3 @@ release:
15
18
  merge:
16
19
  script: |-
17
20
  bundle exec rake clean test rubocop copyright
18
- deploy:
19
- script: |-
20
- echo "There is nothing to deploy"
21
- exit -1
data/.simplecov CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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,15 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  source 'https://rubygems.org'
24
- ruby '~>2.5'
25
24
  gemspec
25
+
26
+ gem 'aruba', '2.1.0', require: false
27
+ gem 'cucumber', '8.0.0', require: false
28
+ # gem 'debase', '0.2.4.1', require: false
29
+ gem 'minitest', '5.16.2', require: false
30
+ gem 'rake', '13.0.6', require: false
31
+ gem 'rspec-rails', '5.1.2', require: false
32
+ gem 'rubocop', '1.32.0', require: false
33
+ gem 'rubocop-rspec', '2.12.1', require: false
34
+ gem 'simplecov', '0.22.0', require: false
35
+ gem 'webmock', '3.18.0', require: false
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2019-2022 Yegor Bugayenko
3
+ Copyright (c) 2019-2023 Yegor Bugayenko
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/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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/bin/sibit CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- # Copyright (c) 2019-2022 Yegor Bugayenko
4
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -23,6 +23,10 @@
23
23
 
24
24
  $stdout.sync = true
25
25
 
26
+ # see https://stackoverflow.com/a/6048451/187141
27
+ require 'openssl'
28
+ OpenSSL::SSL::VERIFY_PEER ||= OpenSSL::SSL::VERIFY_NONE
29
+
26
30
  require 'slop'
27
31
  require 'backtrace'
28
32
  require 'retriable_proxy'
data/features/cli.feature CHANGED
@@ -14,10 +14,6 @@ Feature: Command Line Processing
14
14
  When I run bin/sibit with "latest --api=blockchain"
15
15
  Then Exit code is zero
16
16
 
17
- Scenario: Bitcoin latest block hash can be retrieved via Btc
18
- When I run bin/sibit with "latest --api=bitcoinchain"
19
- Then Exit code is zero
20
-
21
17
  Scenario: Bitcoin private key can be generated
22
18
  When I run bin/sibit with "generate"
23
19
  Then Exit code is zero
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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/sibit/bestof.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -27,7 +27,7 @@ require_relative 'log'
27
27
  # API best of.
28
28
  #
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class Sibit
33
33
  # Best of API.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -32,7 +32,7 @@ require_relative 'version'
32
32
  # Bitcoinchain.com API.
33
33
  #
34
34
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
35
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
35
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
36
36
  # License:: MIT
37
37
  class Sibit
38
38
  # Btc.com API.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -35,7 +35,7 @@ require_relative 'version'
35
35
  # https://www.blockchain.com/api/blockchain_api
36
36
  #
37
37
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
38
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
38
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
39
39
  # License:: MIT
40
40
  class Sibit
41
41
  # Blockchain.info API.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -33,7 +33,7 @@ require_relative 'version'
33
33
  # Blockchair.com API.
34
34
  #
35
35
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
36
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
36
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
37
37
  # License:: MIT
38
38
  class Sibit
39
39
  # Btc.com API.
data/lib/sibit/btc.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -34,7 +34,7 @@ require_relative 'version'
34
34
  # Here: https://btc.com/api-doc
35
35
  #
36
36
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
37
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
37
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
38
38
  # License:: MIT
39
39
  class Sibit
40
40
  # Btc.com API.
data/lib/sibit/cex.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -30,7 +30,7 @@ require_relative 'json'
30
30
  # Cex.io API.
31
31
  #
32
32
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
33
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
33
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
34
34
  # License:: MIT
35
35
  class Sibit
36
36
  # Btc.com API.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -32,7 +32,7 @@ require_relative 'version'
32
32
  # Cryptoapis.io API.
33
33
  #
34
34
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
35
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
35
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
36
36
  # License:: MIT
37
37
  class Sibit
38
38
  # Btc.com API.
data/lib/sibit/earn.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -31,7 +31,7 @@ require_relative 'version'
31
31
  # Earn.com API.
32
32
  #
33
33
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
34
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
34
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
35
35
  # License:: MIT
36
36
  class Sibit
37
37
  # Blockchain.info API.
data/lib/sibit/error.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -23,7 +23,7 @@
23
23
  # The error.
24
24
  #
25
25
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
26
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
26
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  class Sibit
29
29
  # The error.
data/lib/sibit/fake.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -25,7 +25,7 @@ require_relative 'version'
25
25
  # Fake API.
26
26
  #
27
27
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
28
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
28
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
29
29
  # License:: MIT
30
30
  class Sibit
31
31
  # Fake API
data/lib/sibit/firstof.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -27,7 +27,7 @@ require_relative 'log'
27
27
  # API first of.
28
28
  #
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class Sibit
33
33
  # First of API.
data/lib/sibit/http.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -25,7 +25,7 @@ require 'net/http'
25
25
  # HTTP interface.
26
26
  #
27
27
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
28
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
28
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
29
29
  # License:: MIT
30
30
  class Sibit
31
31
  # This HTTP client will be used by default.
data/lib/sibit/json.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -34,7 +34,7 @@ require_relative 'log'
34
34
  # https://www.blockchain.com/api/blockchain_api
35
35
  #
36
36
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
37
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
37
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
38
38
  # License:: MIT
39
39
  class Sibit
40
40
  # JSON processing.
data/lib/sibit/log.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -23,7 +23,7 @@
23
23
  # The log.
24
24
  #
25
25
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
26
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
26
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  class Sibit
29
29
  # Log.
data/lib/sibit/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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,9 +22,9 @@
22
22
 
23
23
  # Sibit main class.
24
24
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
25
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
25
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  class Sibit
28
28
  # Current version of the library.
29
- VERSION = '0.22.0'
29
+ VERSION = '0.23.0'
30
30
  end
data/lib/sibit.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -27,7 +27,7 @@ require_relative 'sibit/blockchain'
27
27
  # Sibit main class.
28
28
  #
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class Sibit
33
33
  # Constructor.
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
data/sibit.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -51,15 +51,5 @@ and Ruby 2.3+.'
51
51
  s.add_runtime_dependency 'json', '~> 2'
52
52
  s.add_runtime_dependency 'retriable_proxy', '~> 1.0'
53
53
  s.add_runtime_dependency 'slop', '~> 4.6'
54
- s.add_development_dependency 'aruba', '2.1.0'
55
- s.add_development_dependency 'codecov', '0.6.0'
56
- s.add_development_dependency 'cucumber', '8.0.0'
57
- s.add_development_dependency 'debase', '0.2.4.1'
58
- s.add_development_dependency 'minitest', '5.16.2'
59
- s.add_development_dependency 'rake', '13.0.6'
60
- s.add_development_dependency 'rspec-rails', '5.1.2'
61
- s.add_development_dependency 'rubocop', '1.32.0'
62
- s.add_development_dependency 'rubocop-rspec', '2.12.1'
63
- s.add_development_dependency 'webmock', '3.15.0'
64
54
  s.metadata['rubygems_mfa_required'] = 'true'
65
55
  end
data/test/test__helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -24,10 +24,6 @@ $stdout.sync = true
24
24
 
25
25
  require 'simplecov'
26
26
  SimpleCov.start
27
- if ENV['CI'] == 'true'
28
- require 'codecov'
29
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
30
- end
31
27
 
32
28
  require 'minitest/autorun'
33
29
  require_relative '../lib/sibit'
data/test/test_bestof.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -27,7 +27,7 @@ require_relative '../lib/sibit/bestof'
27
27
 
28
28
  # Sibit::BestOf test.
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TestBestOf < Minitest::Test
33
33
  def test_not_array
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -28,7 +28,7 @@ require_relative '../lib/sibit/bitcoinchain'
28
28
 
29
29
  # Sibit::Bitcoinchain test.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestBitcoinchain < Minitest::Test
34
34
  def test_fetch_hash
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -28,7 +28,7 @@ require_relative '../lib/sibit/blockchain'
28
28
 
29
29
  # Sibit::Blockchain test.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestBlockchain < Minitest::Test
34
34
  def test_fetch_block
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -28,7 +28,7 @@ require_relative '../lib/sibit/blockchair'
28
28
 
29
29
  # Sibit::Blockchair test.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestBlockchair < Minitest::Test
34
34
  def test_fetch_balance
data/test/test_btc.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -28,7 +28,7 @@ require_relative '../lib/sibit/btc'
28
28
 
29
29
  # Sibit::Btc test.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestBtc < Minitest::Test
34
34
  def test_get_zero_balance
data/test/test_cex.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -28,7 +28,7 @@ require_relative '../lib/sibit/cex'
28
28
 
29
29
  # Sibit::Cex test.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestBtc < Minitest::Test
34
34
  def test_get_price
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -28,7 +28,7 @@ require_relative '../lib/sibit/cryptoapis'
28
28
 
29
29
  # Sibit::Cryptoapis test.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestCryptoapis < Minitest::Test
34
34
  def test_fetch_block
data/test/test_fake.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -27,7 +27,7 @@ require_relative '../lib/sibit/fake'
27
27
 
28
28
  # Sibit::Fake test.
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TestFake < Minitest::Test
33
33
  def test_fake_object_works
data/test/test_firstof.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -27,7 +27,7 @@ require_relative '../lib/sibit/firstof'
27
27
 
28
28
  # Sibit::FirstOf test.
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TestFirstOf < Minitest::Test
33
33
  def test_not_array
data/test/test_json.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -27,7 +27,7 @@ require_relative '../lib/sibit/json'
27
27
 
28
28
  # Sibit::Json test.
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TestJson < Minitest::Test
33
33
  def test_loads_hash
data/test/test_live.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -28,7 +28,7 @@ require_relative '../lib/sibit'
28
28
 
29
29
  # Live tests.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestLive < Minitest::Test
34
34
  def test_block
data/test/test_sibit.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2022 Yegor Bugayenko
3
+ # Copyright (c) 2019-2023 Yegor Bugayenko
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
@@ -32,7 +32,7 @@ require_relative '../lib/sibit/bestof'
32
32
 
33
33
  # Sibit.
34
34
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
35
- # Copyright:: Copyright (c) 2019-2022 Yegor Bugayenko
35
+ # Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
36
36
  # License:: MIT
37
37
  class TestSibit < Minitest::Test
38
38
  def test_loads_fees
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-02 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace
@@ -94,146 +94,6 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '4.6'
97
- - !ruby/object:Gem::Dependency
98
- name: aruba
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 2.1.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 2.1.0
111
- - !ruby/object:Gem::Dependency
112
- name: codecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '='
116
- - !ruby/object:Gem::Version
117
- version: 0.6.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 0.6.0
125
- - !ruby/object:Gem::Dependency
126
- name: cucumber
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 8.0.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 8.0.0
139
- - !ruby/object:Gem::Dependency
140
- name: debase
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - '='
144
- - !ruby/object:Gem::Version
145
- version: 0.2.4.1
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '='
151
- - !ruby/object:Gem::Version
152
- version: 0.2.4.1
153
- - !ruby/object:Gem::Dependency
154
- name: minitest
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '='
158
- - !ruby/object:Gem::Version
159
- version: 5.16.2
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '='
165
- - !ruby/object:Gem::Version
166
- version: 5.16.2
167
- - !ruby/object:Gem::Dependency
168
- name: rake
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - '='
172
- - !ruby/object:Gem::Version
173
- version: 13.0.6
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '='
179
- - !ruby/object:Gem::Version
180
- version: 13.0.6
181
- - !ruby/object:Gem::Dependency
182
- name: rspec-rails
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - '='
186
- - !ruby/object:Gem::Version
187
- version: 5.1.2
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - '='
193
- - !ruby/object:Gem::Version
194
- version: 5.1.2
195
- - !ruby/object:Gem::Dependency
196
- name: rubocop
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - '='
200
- - !ruby/object:Gem::Version
201
- version: 1.32.0
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - '='
207
- - !ruby/object:Gem::Version
208
- version: 1.32.0
209
- - !ruby/object:Gem::Dependency
210
- name: rubocop-rspec
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - '='
214
- - !ruby/object:Gem::Version
215
- version: 2.12.1
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - '='
221
- - !ruby/object:Gem::Version
222
- version: 2.12.1
223
- - !ruby/object:Gem::Dependency
224
- name: webmock
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - '='
228
- - !ruby/object:Gem::Version
229
- version: 3.15.0
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - '='
235
- - !ruby/object:Gem::Version
236
- version: 3.15.0
237
97
  description: |-
238
98
  This is a simple Bitcoin client, to use from command line
239
99
  or from your Ruby app. You don't need to run any Bitcoin software,
@@ -258,12 +118,10 @@ files:
258
118
  - ".rubocop.yml"
259
119
  - ".rultor.yml"
260
120
  - ".simplecov"
261
- - ".travis.yml"
262
121
  - Gemfile
263
122
  - LICENSE.txt
264
123
  - README.md
265
124
  - Rakefile
266
- - appveyor.yml
267
125
  - bin/sibit
268
126
  - cucumber.yml
269
127
  - features/cli.feature
@@ -287,6 +145,7 @@ files:
287
145
  - lib/sibit/log.rb
288
146
  - lib/sibit/version.rb
289
147
  - logo.svg
148
+ - renovate.json
290
149
  - sibit.gemspec
291
150
  - test/test__helper.rb
292
151
  - test/test_bestof.rb
@@ -322,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
322
181
  - !ruby/object:Gem::Version
323
182
  version: '0'
324
183
  requirements: []
325
- rubygems_version: 3.1.2
184
+ rubygems_version: 3.2.15
326
185
  signing_key:
327
186
  specification_version: 4
328
187
  summary: Simple Bitcoin Client
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.0
4
- cache: bundler
5
- branches:
6
- only:
7
- - master
8
- install:
9
- - gem install pdd -v 0.20.5
10
- - travis_retry bundle update
11
- script:
12
- - pdd -f /dev/null
13
- - bundle exec rake
14
- after_success:
15
- - "bash <(curl -s https://codecov.io/bash)"
data/appveyor.yml DELETED
@@ -1,22 +0,0 @@
1
- version: '{build}'
2
- skip_tags: true
3
- clone_depth: 10
4
- branches:
5
- only:
6
- - master
7
- except:
8
- - gh-pages
9
- os: Windows Server 2012
10
- install:
11
- - cmd: set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem
12
- - cmd: SET PATH=C:\Ruby24-x64\bin;%PATH%
13
- - cmd: ruby --version
14
- - cmd: git --version
15
- build_script:
16
- - bundle update
17
- - bundle install
18
- test_script:
19
- - bundle exec rake
20
- cache:
21
- - C:\Ruby200\bin -> sibit.gemspec
22
- - C:\Ruby200\lib\ruby\gems\2.0.0 -> sibit.gemspec