tangany 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -3
- data/Gemfile +3 -3
- data/Gemfile.lock +33 -28
- data/README.md +1 -1
- data/bin/console +1 -0
- data/bin/test-live +1 -0
- data/lib/tangany/config.rb +1 -1
- data/lib/tangany/customers/client.rb +2 -1
- data/lib/tangany/customers/resource.rb +4 -1
- data/lib/tangany/version.rb +1 -1
- data/lib/tangany.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a550ac4ad0ee694839dfc485b08ac2fc4c725424e5c5f5ee4c8b147fcfbb6f51
|
4
|
+
data.tar.gz: 1b9691bdd989ef0da04589592667fdfbefb3745ceccc584b079a52cb549a9914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7243f013407ffbf5f7a4ffaec0313c50c7a541965002c4c265d00da0390a22eb0d904efcebf865794206d111e192cb883a698ae713d3b5838117ffc859f715ba
|
7
|
+
data.tar.gz: caf92195b2c5e85a0b5b41a85a0504a8f8c8487cadd8b20d3d8c47d8343eed1a623a1725e89606cd6b44ff03ef30cc39fba46b4f2d63d9d82b1c394f41e4f600
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,24 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.0.5 - 2023-01-16
|
4
|
+
|
5
|
+
## What's Changed
|
6
|
+
|
7
|
+
- Customers client version header by [@panteo](https://github.com/panteo) in https://github.com/bitbond/tangany-ruby/pull/7
|
8
|
+
|
9
|
+
**Full Changelog**: https://github.com/bitbond/tangany-ruby/compare/v0.0.4...v0.0.5
|
10
|
+
|
11
|
+
## 0.0.4 - 2023-01-16
|
12
|
+
|
13
|
+
### What's Changed
|
14
|
+
|
15
|
+
**Full Changelog**: https://github.com/bitbond/tangany-ruby/compare/v0.0.3...v0.0.4
|
16
|
+
|
3
17
|
## 0.0.3 - 2023-01-16
|
4
18
|
|
5
19
|
## What's Changed
|
6
20
|
|
7
|
-
- Better logging in test live by @panteo in https://github.com/bitbond/tangany-ruby/pull/6
|
21
|
+
- Better logging in test live by [@panteo](https://github.com/panteo) in https://github.com/bitbond/tangany-ruby/pull/6
|
8
22
|
|
9
23
|
**Full Changelog**: https://github.com/bitbond/tangany-ruby/compare/v0.0.2...v0.0.3
|
10
24
|
|
@@ -12,7 +26,7 @@
|
|
12
26
|
|
13
27
|
### What's Changed
|
14
28
|
|
15
|
-
- README badges and gemspec links by @panteo in https://github.com/bitbond/tangany-ruby/pull/5
|
29
|
+
- README badges and gemspec links by [@panteo](https://github.com/panteo) in https://github.com/bitbond/tangany-ruby/pull/5
|
16
30
|
|
17
31
|
**Full Changelog**: https://github.com/bitbond/tangany-ruby/compare/v0.0.1...v0.0.2
|
18
32
|
|
@@ -50,6 +64,6 @@
|
|
50
64
|
|
51
65
|
### New Contributors
|
52
66
|
|
53
|
-
- @panteo made their first contribution in https://github.com/bitbond/tangany-ruby/pull/2
|
67
|
+
- [@panteo](https://github.com/panteo) made their first contribution in https://github.com/bitbond/tangany-ruby/pull/2
|
54
68
|
|
55
69
|
**Full Changelog**: https://github.com/bitbond/tangany-ruby/commits/v0.0.1
|
data/Gemfile
CHANGED
@@ -8,11 +8,11 @@ gem "factory_bot"
|
|
8
8
|
gem "faker"
|
9
9
|
gem "rake"
|
10
10
|
gem "rspec"
|
11
|
-
gem "rubocop", "~> 1.
|
11
|
+
gem "rubocop", "~> 1.42"
|
12
12
|
gem "rubocop-rake", "~> 0.6"
|
13
|
-
gem "rubocop-rspec", "~> 2.
|
13
|
+
gem "rubocop-rspec", "~> 2.18"
|
14
14
|
gem "rubycritic", require: false
|
15
|
-
gem "standard", "~> 1.
|
15
|
+
gem "standard", "~> 1.22"
|
16
16
|
|
17
17
|
group :test do
|
18
18
|
gem "simplecov", require: false
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tangany (0.0.
|
4
|
+
tangany (0.0.5)
|
5
5
|
activesupport (>= 6.0, < 8.0.0)
|
6
6
|
dry-struct (>= 1.6, < 2.0.0)
|
7
7
|
dry-validation (>= 1.10, < 2.0.0)
|
@@ -73,12 +73,12 @@ GEM
|
|
73
73
|
dry-schema (>= 1.12, < 2)
|
74
74
|
zeitwerk (~> 2.6)
|
75
75
|
equalizer (0.0.11)
|
76
|
-
erubi (1.
|
76
|
+
erubi (1.12.0)
|
77
77
|
factory_bot (6.2.1)
|
78
78
|
activesupport (>= 5.0.0)
|
79
|
-
faker (3.
|
79
|
+
faker (3.1.0)
|
80
80
|
i18n (>= 1.8.11, < 2)
|
81
|
-
faraday (2.7.
|
81
|
+
faraday (2.7.2)
|
82
82
|
faraday-net_http (>= 2.0, < 3.1)
|
83
83
|
ruby2_keywords (>= 0.0.4)
|
84
84
|
faraday-net_http (3.0.2)
|
@@ -95,21 +95,22 @@ GEM
|
|
95
95
|
i18n (1.12.0)
|
96
96
|
concurrent-ruby (~> 1.0)
|
97
97
|
ice_nine (0.11.2)
|
98
|
-
json (2.6.
|
98
|
+
json (2.6.3)
|
99
99
|
kwalify (0.7.2)
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
language_server-protocol (3.17.0.2)
|
101
|
+
launchy (2.5.2)
|
102
|
+
addressable (~> 2.8)
|
103
|
+
minitest (5.17.0)
|
103
104
|
parallel (1.22.1)
|
104
|
-
parser (3.
|
105
|
+
parser (3.2.0.0)
|
105
106
|
ast (~> 2.4.1)
|
106
107
|
path_expander (1.1.1)
|
107
|
-
public_suffix (5.0.
|
108
|
+
public_suffix (5.0.1)
|
108
109
|
rainbow (3.1.1)
|
109
110
|
rake (13.0.6)
|
110
|
-
reek (6.1.
|
111
|
+
reek (6.1.4)
|
111
112
|
kwalify (~> 0.7.0)
|
112
|
-
parser (~> 3.
|
113
|
+
parser (~> 3.2.0)
|
113
114
|
rainbow (>= 2.0, < 4.0)
|
114
115
|
regexp_parser (2.6.1)
|
115
116
|
rexml (3.2.5)
|
@@ -119,35 +120,38 @@ GEM
|
|
119
120
|
rspec-mocks (~> 3.12.0)
|
120
121
|
rspec-core (3.12.0)
|
121
122
|
rspec-support (~> 3.12.0)
|
122
|
-
rspec-expectations (3.12.
|
123
|
+
rspec-expectations (3.12.2)
|
123
124
|
diff-lcs (>= 1.2.0, < 2.0)
|
124
125
|
rspec-support (~> 3.12.0)
|
125
|
-
rspec-mocks (3.12.
|
126
|
+
rspec-mocks (3.12.2)
|
126
127
|
diff-lcs (>= 1.2.0, < 2.0)
|
127
128
|
rspec-support (~> 3.12.0)
|
128
129
|
rspec-support (3.12.0)
|
129
|
-
rubocop (1.
|
130
|
+
rubocop (1.42.0)
|
130
131
|
json (~> 2.3)
|
131
132
|
parallel (~> 1.10)
|
132
133
|
parser (>= 3.1.2.1)
|
133
134
|
rainbow (>= 2.2.2, < 4.0)
|
134
135
|
regexp_parser (>= 1.8, < 3.0)
|
135
136
|
rexml (>= 3.2.5, < 4.0)
|
136
|
-
rubocop-ast (>= 1.
|
137
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
137
138
|
ruby-progressbar (~> 1.7)
|
138
139
|
unicode-display_width (>= 1.4.0, < 3.0)
|
139
|
-
rubocop-ast (1.24.
|
140
|
+
rubocop-ast (1.24.1)
|
140
141
|
parser (>= 3.1.1.0)
|
141
|
-
rubocop-
|
142
|
+
rubocop-capybara (2.17.0)
|
143
|
+
rubocop (~> 1.41)
|
144
|
+
rubocop-performance (1.15.2)
|
142
145
|
rubocop (>= 1.7.0, < 2.0)
|
143
146
|
rubocop-ast (>= 0.4.0)
|
144
147
|
rubocop-rake (0.6.0)
|
145
148
|
rubocop (~> 1.0)
|
146
|
-
rubocop-rspec (2.
|
149
|
+
rubocop-rspec (2.18.0)
|
147
150
|
rubocop (~> 1.33)
|
151
|
+
rubocop-capybara
|
148
152
|
ruby-progressbar (1.11.0)
|
149
153
|
ruby2_keywords (0.0.5)
|
150
|
-
ruby_parser (3.19.
|
154
|
+
ruby_parser (3.19.2)
|
151
155
|
sexp_processor (~> 4.16)
|
152
156
|
rubycritic (4.7.0)
|
153
157
|
flay (~> 2.8)
|
@@ -161,21 +165,22 @@ GEM
|
|
161
165
|
tty-which (~> 0.4.0)
|
162
166
|
virtus (~> 1.0)
|
163
167
|
sexp_processor (4.16.1)
|
164
|
-
simplecov (0.
|
168
|
+
simplecov (0.22.0)
|
165
169
|
docile (~> 1.1)
|
166
170
|
simplecov-html (~> 0.11)
|
167
171
|
simplecov_json_formatter (~> 0.1)
|
168
172
|
simplecov-html (0.12.3)
|
169
173
|
simplecov_json_formatter (0.1.4)
|
170
|
-
standard (1.
|
171
|
-
|
172
|
-
rubocop
|
174
|
+
standard (1.22.0)
|
175
|
+
language_server-protocol (~> 3.17.0.2)
|
176
|
+
rubocop (= 1.42.0)
|
177
|
+
rubocop-performance (= 1.15.2)
|
173
178
|
thor (1.2.1)
|
174
179
|
thread_safe (0.3.6)
|
175
180
|
tty-which (0.4.2)
|
176
181
|
tzinfo (2.0.5)
|
177
182
|
concurrent-ruby (~> 1.0)
|
178
|
-
unicode-display_width (2.
|
183
|
+
unicode-display_width (2.4.2)
|
179
184
|
virtus (1.0.5)
|
180
185
|
axiom-types (~> 0.1)
|
181
186
|
coercible (~> 1.0)
|
@@ -197,12 +202,12 @@ DEPENDENCIES
|
|
197
202
|
faker
|
198
203
|
rake
|
199
204
|
rspec
|
200
|
-
rubocop (~> 1.
|
205
|
+
rubocop (~> 1.42)
|
201
206
|
rubocop-rake (~> 0.6)
|
202
|
-
rubocop-rspec (~> 2.
|
207
|
+
rubocop-rspec (~> 2.18)
|
203
208
|
rubycritic
|
204
209
|
simplecov
|
205
|
-
standard (~> 1.
|
210
|
+
standard (~> 1.22)
|
206
211
|
tangany!
|
207
212
|
webmock
|
208
213
|
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# Tangany Ruby Library
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/tangany.svg)](https://badge.fury.io/rb/tangany)
|
4
3
|
[![CI](https://github.com/bitbond/tangany-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/bitbond/tangany-ruby/actions/workflows/ci.yml)
|
5
4
|
![Test coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
|
6
5
|
![Code quality](https://img.shields.io/badge/quality-93%25-green)
|
@@ -54,6 +53,7 @@ Tangany.client_secret = "..."
|
|
54
53
|
Tangany.environment = "..." # mainnet or testnet
|
55
54
|
Tangany.subscription = "..."
|
56
55
|
Tangany.vault_url = "..."
|
56
|
+
Tangany.version = "..."
|
57
57
|
|
58
58
|
customers_client = Tangany::Customers::Client.new
|
59
59
|
custody_client = Tangany::Custody::Client.new
|
data/bin/console
CHANGED
@@ -17,6 +17,7 @@ Tangany.client_secret = ENV.fetch("TEST_TANGANY_CLIENT_SECRET", "test")
|
|
17
17
|
Tangany.environment = "testnet"
|
18
18
|
Tangany.subscription = ENV.fetch("TEST_TANGANY_SUBSCRIPTION", "test")
|
19
19
|
Tangany.vault_url = ENV.fetch("TEST_TANGANY_VAULT_URL", "test")
|
20
|
+
Tangany.version = ENV.fetch("TEST_TANGANY_VERSION", "1")
|
20
21
|
|
21
22
|
require "irb"
|
22
23
|
IRB.start(__FILE__)
|
data/bin/test-live
CHANGED
@@ -21,6 +21,7 @@ Tangany.client_secret = ENV.fetch("TEST_TANGANY_CLIENT_SECRET", "test")
|
|
21
21
|
Tangany.environment = "testnet"
|
22
22
|
Tangany.subscription = ENV.fetch("TEST_TANGANY_SUBSCRIPTION", "test")
|
23
23
|
Tangany.vault_url = ENV.fetch("TEST_TANGANY_VAULT_URL", "test")
|
24
|
+
Tangany.version = ENV.fetch("TEST_TANGANY_VERSION", "1")
|
24
25
|
|
25
26
|
def safe_not_found(&block)
|
26
27
|
yield
|
data/lib/tangany/config.rb
CHANGED
@@ -2,7 +2,7 @@ require "json"
|
|
2
2
|
|
3
3
|
module Tangany
|
4
4
|
class Config
|
5
|
-
attr_accessor :client_id, :client_secret, :environment, :chain, :subscription, :vault_url
|
5
|
+
attr_accessor :client_id, :client_secret, :environment, :chain, :subscription, :vault_url, :version
|
6
6
|
|
7
7
|
attr_reader :custody_base_url, :customers_base_url, :customers_version, :chains
|
8
8
|
|
@@ -3,11 +3,12 @@ require "faraday"
|
|
3
3
|
module Tangany
|
4
4
|
module Customers
|
5
5
|
class Client
|
6
|
-
attr_reader :adapter, :subscription
|
6
|
+
attr_reader :adapter, :subscription, :version
|
7
7
|
|
8
8
|
def initialize(adapter: Faraday.default_adapter, stubs: nil)
|
9
9
|
@adapter = adapter
|
10
10
|
@subscription = Tangany.subscription
|
11
|
+
@version = Tangany.version
|
11
12
|
|
12
13
|
@stubs = stubs
|
13
14
|
end
|
data/lib/tangany/version.rb
CHANGED
data/lib/tangany.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tangany
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bitbond
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
|
-
rubygems_version: 3.3
|
216
|
+
rubygems_version: 3.4.3
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: Ruby bindings for the Tangany APIs
|