zold-ruby-sdk 0.2.2 → 0.3.0
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/.github/workflows/codecov.yml +20 -0
- data/.github/workflows/pdd.yml +11 -0
- data/.github/workflows/rake.yml +23 -0
- data/.github/workflows/xcop.yml +11 -0
- data/.rubocop.yml +3 -1
- data/.rultor.yml +7 -7
- data/.simplecov +15 -19
- data/Gemfile +11 -2
- data/LICENSE.txt +1 -1
- data/README.md +2 -6
- data/Rakefile +1 -1
- data/lib/zold/wts.rb +13 -10
- data/renovate.json +6 -0
- data/test/test__helper.rb +2 -6
- data/test/zold/test_wts.rb +7 -2
- data/zold-ruby-sdk.gemspec +6 -19
- metadata +16 -139
- data/.travis.yml +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca878657bdb8aa574e3de4df967d94b20cd9de47b6cbd8db9159ddda384ff84e
|
|
4
|
+
data.tar.gz: 9333f406e79f4d6189dccfe1952376c69fdaaba8d83849d9699e7834a82fb87d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41400d225dacb2cf858130d31ab3205fdd6963e0429724f761755414e3afc620b7a0328e7fc410546d40c3f706c09ef7d169cfd621f70197f475c8e072954405
|
|
7
|
+
data.tar.gz: fd8a803f35b45541919b5056e64bb30e7b96eed70956df9326ceae01971573fb3b1817f5bb480dc20343ea1a29ee42dd6e211447c5cf4d8208cd53324e5ad832
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codecov
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
jobs:
|
|
8
|
+
codecov:
|
|
9
|
+
runs-on: ubuntu-20.04
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
|
+
- uses: ruby/setup-ruby@v1
|
|
13
|
+
with:
|
|
14
|
+
ruby-version: 2.7
|
|
15
|
+
- run: bundle update
|
|
16
|
+
- run: bundle exec rake
|
|
17
|
+
- uses: codecov/codecov-action@v3
|
|
18
|
+
with:
|
|
19
|
+
file: coverage/.resultset.json
|
|
20
|
+
fail_ci_if_error: true
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rake
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
os: [ubuntu-20.04]
|
|
15
|
+
ruby: ['2.7', '3.0']
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v3
|
|
19
|
+
- uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
|
22
|
+
- run: bundle update
|
|
23
|
+
- run: bundle exec rake
|
data/.rubocop.yml
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
AllCops:
|
|
2
2
|
DisplayCopNames: true
|
|
3
3
|
TargetRubyVersion: 2.5
|
|
4
|
+
SuggestExtensions: false
|
|
5
|
+
NewCops: enable
|
|
4
6
|
|
|
5
7
|
Layout/EmptyLineAfterGuardClause:
|
|
6
8
|
Enabled: false
|
|
@@ -18,7 +20,7 @@ Metrics/ClassLength:
|
|
|
18
20
|
Max: 180
|
|
19
21
|
Metrics/ParameterLists:
|
|
20
22
|
Max: 7
|
|
21
|
-
Layout/
|
|
23
|
+
Layout/ParameterAlignment:
|
|
22
24
|
Enabled: false
|
|
23
25
|
Metrics/CyclomaticComplexity:
|
|
24
26
|
Max: 20
|
data/.rultor.yml
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
architect:
|
|
2
|
+
- yegor256
|
|
3
|
+
- davvd
|
|
4
|
+
docker:
|
|
5
|
+
image: yegor256/rultor-image:1.20.0
|
|
1
6
|
assets:
|
|
2
7
|
rubygems.yml: zerocracy/home#assets/rubygems.yml
|
|
3
8
|
install: |-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
bundle install
|
|
9
|
+
sudo apt-get install -y libcurl4-gnutls-dev
|
|
10
|
+
sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
|
|
7
11
|
release:
|
|
8
12
|
script: |-
|
|
9
13
|
bundle exec rake
|
|
@@ -17,7 +21,3 @@ release:
|
|
|
17
21
|
merge:
|
|
18
22
|
script: |-
|
|
19
23
|
bundle exec rake
|
|
20
|
-
deploy:
|
|
21
|
-
script: |-
|
|
22
|
-
echo 'There is nothing to deploy'
|
|
23
|
-
exit -1
|
data/.simplecov
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
#
|
|
3
|
-
# Copyright (c) 2018-
|
|
4
|
+
# Copyright (c) 2018-2023 Yegor Bugayenko
|
|
4
5
|
#
|
|
5
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -20,21 +21,16 @@
|
|
|
20
21
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
22
|
# SOFTWARE.
|
|
22
23
|
|
|
23
|
-
if Gem.win_platform?
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
SimpleCov.start do
|
|
36
|
-
add_filter "/test/"
|
|
37
|
-
add_filter "/features/"
|
|
38
|
-
# minimum_coverage 30
|
|
39
|
-
end
|
|
24
|
+
SimpleCov.formatter = if Gem.win_platform?
|
|
25
|
+
SimpleCov::Formatter::MultiFormatter[
|
|
26
|
+
SimpleCov::Formatter::HTMLFormatter
|
|
27
|
+
]
|
|
28
|
+
else
|
|
29
|
+
SimpleCov::Formatter::MultiFormatter.new(
|
|
30
|
+
[SimpleCov::Formatter::HTMLFormatter]
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
SimpleCov.start do
|
|
34
|
+
add_filter '/test/'
|
|
35
|
+
add_filter '/features/'
|
|
40
36
|
end
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-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,14 @@
|
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
|
|
23
23
|
source 'https://rubygems.org'
|
|
24
|
-
ruby '2.6.0'
|
|
25
24
|
gemspec
|
|
25
|
+
|
|
26
|
+
gem 'minitest', '5.18.1', require: false
|
|
27
|
+
gem 'minitest-hooks', '1.5.0', require: false
|
|
28
|
+
gem 'rake-compiler', '1.2.3', require: false
|
|
29
|
+
gem 'rdoc', '6.5.0', require: false
|
|
30
|
+
gem 'rspec-rails', '6.0.3', require: false
|
|
31
|
+
gem 'rubocop', '1.53.1', require: false
|
|
32
|
+
gem 'rubocop-rspec', '2.22.0', require: false
|
|
33
|
+
gem 'simplecov', '0.22.0', require: false
|
|
34
|
+
gem 'webmock', '3.18.1', require: false
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
<img src="
|
|
2
|
-
|
|
3
|
-
[](https://www.0crat.com/contrib/CAZPZR9FS)
|
|
1
|
+
<img src="https://www.zold.io/logo.svg" width="92px" height="92px"/>
|
|
4
2
|
|
|
5
3
|
[](http://www.elegantobjects.org)
|
|
6
|
-
[](https://www.0crat.com/p/CAZPZR9FS)
|
|
7
4
|
[](http://www.rultor.com/p/yegor256/zold)
|
|
8
5
|
[](https://www.jetbrains.com/ruby/)
|
|
9
6
|
|
|
10
|
-
[](https://github.com/zold-io/zold-ruby-sdk/actions/workflows/rake.yml)
|
|
11
8
|
[](http://www.0pdd.com/p?name=zold-io/zold-ruby-sdk)
|
|
12
9
|
[](http://badge.fury.io/rb/zold-ruby-sdk)
|
|
13
10
|
[](https://codecov.io/github/zold-io/zold-ruby-sdk?branch=master)
|
|
14
11
|
[](http://rubydoc.info/github/zold-io/zold-ruby-sdk/master/frames)
|
|
15
|
-
|
|
16
12
|
[](https://github.com/yegor256/takes/blob/master/LICENSE.txt)
|
|
17
13
|
[](https://hitsofcode.com/view/github/zold-io/zold-ruby-sdk)
|
|
18
14
|
|
data/Rakefile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-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/zold/wts.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-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 'zold/txn'
|
|
|
31
31
|
# WTS gateway.
|
|
32
32
|
#
|
|
33
33
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
34
|
-
# Copyright:: Copyright (c) 2018-
|
|
34
|
+
# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
|
|
35
35
|
# License:: MIT
|
|
36
36
|
class Zold::WTS
|
|
37
37
|
# Fake implementation.
|
|
@@ -52,6 +52,10 @@ class Zold::WTS
|
|
|
52
52
|
'job-id'
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
def usd_rate
|
|
56
|
+
5_000
|
|
57
|
+
end
|
|
58
|
+
|
|
55
59
|
def find(_query)
|
|
56
60
|
[]
|
|
57
61
|
end
|
|
@@ -160,11 +164,12 @@ class Zold::WTS
|
|
|
160
164
|
# The method returns an array of Zold::Txn objects.
|
|
161
165
|
def find(query)
|
|
162
166
|
start = Time.now
|
|
167
|
+
tail = query.map do |k, v|
|
|
168
|
+
"#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"
|
|
169
|
+
end.join('&')
|
|
163
170
|
http = clean(
|
|
164
171
|
Typhoeus::Request.get(
|
|
165
|
-
|
|
166
|
-
"#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"
|
|
167
|
-
end.join('&'),
|
|
172
|
+
"https://wts.zold.io/find?#{tail}",
|
|
168
173
|
headers: headers
|
|
169
174
|
)
|
|
170
175
|
)
|
|
@@ -179,11 +184,9 @@ class Zold::WTS
|
|
|
179
184
|
def wait(job, time: 5 * 60)
|
|
180
185
|
start = Time.now
|
|
181
186
|
loop do
|
|
182
|
-
if Time.now - start > time
|
|
183
|
-
raise "Can't wait any longer for the job #{job} to complete"
|
|
184
|
-
end
|
|
187
|
+
raise "Can't wait any longer for the job #{job} to complete" if Time.now - start > time
|
|
185
188
|
http = Typhoeus::Request.get(
|
|
186
|
-
|
|
189
|
+
"https://wts.zold.io/job?id=#{job}",
|
|
187
190
|
headers: headers
|
|
188
191
|
)
|
|
189
192
|
raise "Job #{job} not found on the server" if http.code == 404
|
|
@@ -220,7 +223,7 @@ class Zold::WTS
|
|
|
220
223
|
error = (http.headers || {})['X-Zold-Error']
|
|
221
224
|
raise error unless error.nil?
|
|
222
225
|
unless http.code == 200 || http.code == 302
|
|
223
|
-
@log.debug(http.body)
|
|
226
|
+
@log.debug("HTTP response body: #{http.body}")
|
|
224
227
|
raise "Unexpected response code #{http.code}"
|
|
225
228
|
end
|
|
226
229
|
http
|
data/renovate.json
ADDED
data/test/test__helper.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-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
|
|
@@ -20,13 +20,9 @@
|
|
|
20
20
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
$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'
|
data/test/zold/test_wts.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-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/zold/wts'
|
|
|
27
27
|
|
|
28
28
|
# WTS test.
|
|
29
29
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
30
|
-
# Copyright:: Copyright (c) 2018-
|
|
30
|
+
# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
|
|
31
31
|
# License:: MIT
|
|
32
32
|
class TestWTS < Minitest::Test
|
|
33
33
|
KEY = '0000000000000000-b416493aefae4ca487c4739050aaec15'
|
|
@@ -54,6 +54,11 @@ class TestWTS < Minitest::Test
|
|
|
54
54
|
assert(!wts.id.nil?)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
def test_retrieves_fake_usd_rate
|
|
58
|
+
wts = Zold::WTS::Fake.new
|
|
59
|
+
assert(!wts.usd_rate.nil?)
|
|
60
|
+
end
|
|
61
|
+
|
|
57
62
|
def test_retrieves_balance
|
|
58
63
|
WebMock.allow_net_connect!
|
|
59
64
|
wts = Zold::WTS.new(KEY, log: Loog::VERBOSE)
|
data/zold-ruby-sdk.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-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,14 +22,10 @@
|
|
|
22
22
|
|
|
23
23
|
require 'English'
|
|
24
24
|
Gem::Specification.new do |s|
|
|
25
|
-
s.
|
|
26
|
-
if s.respond_to? :required_rubygems_version=
|
|
27
|
-
s.required_rubygems_version = Gem::Requirement.new('>= 0')
|
|
28
|
-
end
|
|
29
|
-
s.rubygems_version = '2.2'
|
|
25
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
|
30
26
|
s.required_ruby_version = '>=2.5'
|
|
31
27
|
s.name = 'zold-ruby-sdk'
|
|
32
|
-
s.version = '0.
|
|
28
|
+
s.version = '0.3.0'
|
|
33
29
|
s.license = 'MIT'
|
|
34
30
|
s.summary = 'Zold score'
|
|
35
31
|
s.description = 'Ruby SDK for Zold online wallets management system (WTS)'
|
|
@@ -38,19 +34,10 @@ Gem::Specification.new do |s|
|
|
|
38
34
|
s.homepage = 'http://github.com/zold-io/zold-ruby-sdk'
|
|
39
35
|
s.files = `git ls-files`.split($RS)
|
|
40
36
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
41
|
-
s.test_files = s.files.grep(%r{^(test|features)/})
|
|
42
37
|
s.rdoc_options = ['--charset=UTF-8']
|
|
43
38
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
|
44
39
|
s.add_runtime_dependency 'loog', '~>0.2'
|
|
45
|
-
s.add_runtime_dependency 'typhoeus', '1.
|
|
46
|
-
s.add_runtime_dependency 'zold', '~>0.
|
|
47
|
-
s.
|
|
48
|
-
s.add_development_dependency 'minitest', '5.11.3'
|
|
49
|
-
s.add_development_dependency 'minitest-hooks', '1.5.0'
|
|
50
|
-
s.add_development_dependency 'rake-compiler', '1.0.4'
|
|
51
|
-
s.add_development_dependency 'rdoc', '4.3.0'
|
|
52
|
-
s.add_development_dependency 'rspec-rails', '3.8.1'
|
|
53
|
-
s.add_development_dependency 'rubocop', '0.62.0'
|
|
54
|
-
s.add_development_dependency 'rubocop-rspec', '1.31.0'
|
|
55
|
-
s.add_development_dependency 'webmock', '3.5.1'
|
|
40
|
+
s.add_runtime_dependency 'typhoeus', '1.4.0'
|
|
41
|
+
s.add_runtime_dependency 'zold', '~>0.31'
|
|
42
|
+
s.metadata['rubygems_mfa_required'] = 'true'
|
|
56
43
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zold-ruby-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.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:
|
|
11
|
+
date: 2023-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: loog
|
|
@@ -30,154 +30,28 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 1.
|
|
33
|
+
version: 1.4.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 1.
|
|
40
|
+
version: 1.4.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: zold
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0.
|
|
47
|
+
version: '0.31'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0.
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: codecov
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - '='
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.1.14
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - '='
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.1.14
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: minitest
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - '='
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 5.11.3
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - '='
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 5.11.3
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: minitest-hooks
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - '='
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 1.5.0
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - '='
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 1.5.0
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rake-compiler
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - '='
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: 1.0.4
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - '='
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: 1.0.4
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rdoc
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - '='
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: 4.3.0
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - '='
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: 4.3.0
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: rspec-rails
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - '='
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: 3.8.1
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - '='
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: 3.8.1
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: rubocop
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - '='
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: 0.62.0
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - '='
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: 0.62.0
|
|
153
|
-
- !ruby/object:Gem::Dependency
|
|
154
|
-
name: rubocop-rspec
|
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
|
156
|
-
requirements:
|
|
157
|
-
- - '='
|
|
158
|
-
- !ruby/object:Gem::Version
|
|
159
|
-
version: 1.31.0
|
|
160
|
-
type: :development
|
|
161
|
-
prerelease: false
|
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
-
requirements:
|
|
164
|
-
- - '='
|
|
165
|
-
- !ruby/object:Gem::Version
|
|
166
|
-
version: 1.31.0
|
|
167
|
-
- !ruby/object:Gem::Dependency
|
|
168
|
-
name: webmock
|
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
|
170
|
-
requirements:
|
|
171
|
-
- - '='
|
|
172
|
-
- !ruby/object:Gem::Version
|
|
173
|
-
version: 3.5.1
|
|
174
|
-
type: :development
|
|
175
|
-
prerelease: false
|
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
-
requirements:
|
|
178
|
-
- - '='
|
|
179
|
-
- !ruby/object:Gem::Version
|
|
180
|
-
version: 3.5.1
|
|
54
|
+
version: '0.31'
|
|
181
55
|
description: Ruby SDK for Zold online wallets management system (WTS)
|
|
182
56
|
email: yegor256@gmail.com
|
|
183
57
|
executables: []
|
|
@@ -188,24 +62,29 @@ extra_rdoc_files:
|
|
|
188
62
|
files:
|
|
189
63
|
- ".0pdd.yml"
|
|
190
64
|
- ".gitattributes"
|
|
65
|
+
- ".github/workflows/codecov.yml"
|
|
66
|
+
- ".github/workflows/pdd.yml"
|
|
67
|
+
- ".github/workflows/rake.yml"
|
|
68
|
+
- ".github/workflows/xcop.yml"
|
|
191
69
|
- ".gitignore"
|
|
192
70
|
- ".pdd"
|
|
193
71
|
- ".rubocop.yml"
|
|
194
72
|
- ".rultor.yml"
|
|
195
73
|
- ".simplecov"
|
|
196
|
-
- ".travis.yml"
|
|
197
74
|
- Gemfile
|
|
198
75
|
- LICENSE.txt
|
|
199
76
|
- README.md
|
|
200
77
|
- Rakefile
|
|
201
78
|
- lib/zold/wts.rb
|
|
79
|
+
- renovate.json
|
|
202
80
|
- test/test__helper.rb
|
|
203
81
|
- test/zold/test_wts.rb
|
|
204
82
|
- zold-ruby-sdk.gemspec
|
|
205
83
|
homepage: http://github.com/zold-io/zold-ruby-sdk
|
|
206
84
|
licenses:
|
|
207
85
|
- MIT
|
|
208
|
-
metadata:
|
|
86
|
+
metadata:
|
|
87
|
+
rubygems_mfa_required: 'true'
|
|
209
88
|
post_install_message:
|
|
210
89
|
rdoc_options:
|
|
211
90
|
- "--charset=UTF-8"
|
|
@@ -222,10 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
222
101
|
- !ruby/object:Gem::Version
|
|
223
102
|
version: '0'
|
|
224
103
|
requirements: []
|
|
225
|
-
rubygems_version: 3.
|
|
104
|
+
rubygems_version: 3.2.15
|
|
226
105
|
signing_key:
|
|
227
|
-
specification_version:
|
|
106
|
+
specification_version: 4
|
|
228
107
|
summary: Zold score
|
|
229
|
-
test_files:
|
|
230
|
-
- test/test__helper.rb
|
|
231
|
-
- test/zold/test_wts.rb
|
|
108
|
+
test_files: []
|
data/.travis.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.6.0
|
|
4
|
-
cache: bundler
|
|
5
|
-
branches:
|
|
6
|
-
only:
|
|
7
|
-
- master
|
|
8
|
-
install:
|
|
9
|
-
- travis_retry bundle update
|
|
10
|
-
- gem install pdd -v 0.20.5
|
|
11
|
-
script:
|
|
12
|
-
- pdd -f /dev/null
|
|
13
|
-
- export RUBYOPT="-W0"
|
|
14
|
-
- bundle exec rake --quiet
|
|
15
|
-
after_success:
|
|
16
|
-
- "bash <(curl -s https://codecov.io/bash)"
|