crypto_cold_store_client 1.1.0 → 1.2.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: c537bf24df3a31541926875e671fff79d48a81ddfa38eb9563ad449c0809d484
4
- data.tar.gz: f98c345eb32410eb910f8ee3d24c51abb8b46a734bca19989d68307b7f7a28f3
3
+ metadata.gz: 6f7f5cfbfec30720e7beda6a0268fb48585b827fdf3259780ecedfcefd977b2d
4
+ data.tar.gz: 0c323b3e7ebba82816f336c65bc2f83e6ec2c3953b2f94ef4747e7027984919b
5
5
  SHA512:
6
- metadata.gz: d772951890ad87e6df9ce51e01df3bafee1f74bacbcbf8f5285dbc93c51f00a7c7260b71d86fbf0c10216c3fa21dfc1dcb35e963bf6406b0402a1d7844da1621
7
- data.tar.gz: d406775564d3eaa2975b3348dd7169fd25af3f2fdd0d033570599ae51286f4ad4f04d933f888b98e721cd8bcaab9c7e0e268d7256a4185d3421304adf9b6d695
6
+ metadata.gz: 90dad95e9d94f887bd4b93ae623dedcfdf90127058490cca657f7bcf98929738daa2172918919fd5ab418e4794b5e4865a5302c12efcd328b3f1ba5157b7968a
7
+ data.tar.gz: df78ace81d980400d1711830685b921ed1020ba479f69dea9b128bea048c8119ff93799c859888e7c068d9a9d538ee163d3eabdda24d5fc8690ad9c12111c0f1
@@ -0,0 +1,35 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.6', '2.7']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
+ # uses: ruby/setup-ruby@v1
30
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
31
+ with:
32
+ ruby-version: ${{ matrix.ruby-version }}
33
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34
+ - name: Run tests
35
+ run: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [1.2.0] - 2021-06-15
8
+ ### Added
9
+ - Update dry-validation to 1.x
10
+ - Loosen Virtus to allow 2.x as well as 1.x
11
+
7
12
  ## [1.1.0] - 2020-02-05
8
13
  ### Added
9
14
  - Loosen dry-validation constraint to be >= 0.12.2
data/Gemfile.lock CHANGED
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crypto_cold_store_client (1.1.0)
4
+ crypto_cold_store_client (1.2.0)
5
5
  activesupport (>= 5.0.0)
6
6
  api_client_base (~> 1.4)
7
- dry-validation (>= 0.12.2, < 1.0)
7
+ dry-validation (~> 1.0, < 2)
8
8
  gem_config (~> 0.3.1)
9
9
  typhoeus (~> 1.3)
10
- virtus (~> 1.0)
10
+ virtus (>= 1.0, < 3)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (6.1.1)
15
+ activesupport (6.1.3.2)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
@@ -20,7 +20,7 @@ GEM
20
20
  zeitwerk (~> 2.3)
21
21
  addressable (2.7.0)
22
22
  public_suffix (>= 2.0.2, < 5.0)
23
- api_client_base (1.9.0)
23
+ api_client_base (1.10.0)
24
24
  activesupport (>= 3.0)
25
25
  gem_config (>= 0.3.1)
26
26
  virtus (>= 1.0)
@@ -32,52 +32,57 @@ GEM
32
32
  coderay (1.1.3)
33
33
  coercible (1.0.0)
34
34
  descendants_tracker (~> 0.0.1)
35
- concurrent-ruby (1.1.8)
35
+ concurrent-ruby (1.1.9)
36
36
  crack (0.4.5)
37
37
  rexml
38
38
  descendants_tracker (0.0.4)
39
39
  thread_safe (~> 0.3, >= 0.3.1)
40
40
  diff-lcs (1.4.4)
41
41
  dotenv (2.7.6)
42
- dry-configurable (0.12.0)
42
+ dry-configurable (0.12.1)
43
43
  concurrent-ruby (~> 1.0)
44
44
  dry-core (~> 0.5, >= 0.5.0)
45
- dry-container (0.7.2)
45
+ dry-container (0.8.0)
46
46
  concurrent-ruby (~> 1.0)
47
47
  dry-configurable (~> 0.1, >= 0.1.3)
48
- dry-core (0.5.0)
48
+ dry-core (0.6.0)
49
49
  concurrent-ruby (~> 1.0)
50
50
  dry-equalizer (0.3.0)
51
51
  dry-inflector (0.2.0)
52
- dry-logic (0.6.1)
52
+ dry-initializer (3.0.4)
53
+ dry-logic (1.2.0)
53
54
  concurrent-ruby (~> 1.0)
54
- dry-core (~> 0.2)
55
- dry-equalizer (~> 0.2)
56
- dry-types (0.14.1)
55
+ dry-core (~> 0.5, >= 0.5)
56
+ dry-schema (1.6.2)
57
+ concurrent-ruby (~> 1.0)
58
+ dry-configurable (~> 0.8, >= 0.8.3)
59
+ dry-core (~> 0.5, >= 0.5)
60
+ dry-initializer (~> 3.0)
61
+ dry-logic (~> 1.0)
62
+ dry-types (~> 1.5)
63
+ dry-types (1.5.1)
57
64
  concurrent-ruby (~> 1.0)
58
65
  dry-container (~> 0.3)
59
- dry-core (~> 0.4, >= 0.4.4)
60
- dry-equalizer (~> 0.2)
66
+ dry-core (~> 0.5, >= 0.5)
61
67
  dry-inflector (~> 0.1, >= 0.1.2)
62
- dry-logic (~> 0.5, >= 0.5)
63
- dry-validation (0.13.3)
68
+ dry-logic (~> 1.0, >= 1.0.2)
69
+ dry-validation (1.6.0)
64
70
  concurrent-ruby (~> 1.0)
65
- dry-configurable (~> 0.1, >= 0.1.3)
66
- dry-core (~> 0.2, >= 0.2.1)
71
+ dry-container (~> 0.7, >= 0.7.1)
72
+ dry-core (~> 0.4)
67
73
  dry-equalizer (~> 0.2)
68
- dry-logic (~> 0.5, >= 0.5.0)
69
- dry-types (~> 0.14.0)
70
- equalizer (0.0.11)
71
- ethon (0.12.0)
72
- ffi (>= 1.3.0)
73
- ffi (1.14.2)
74
+ dry-initializer (~> 3.0)
75
+ dry-schema (~> 1.5, >= 1.5.2)
76
+ ethon (0.14.0)
77
+ ffi (>= 1.15.0)
78
+ ffi (1.15.1)
74
79
  gem_config (0.3.2)
75
80
  hashdiff (1.0.1)
76
- i18n (1.8.8)
81
+ i18n (1.8.10)
77
82
  concurrent-ruby (~> 1.0)
78
83
  ice_nine (0.11.2)
79
84
  method_source (1.0.0)
80
- minitest (5.14.3)
85
+ minitest (5.14.4)
81
86
  pry (0.13.1)
82
87
  coderay (~> 1.1)
83
88
  method_source (~> 1.0)
@@ -106,11 +111,10 @@ GEM
106
111
  tzinfo (2.0.4)
107
112
  concurrent-ruby (~> 1.0)
108
113
  vcr (4.0.0)
109
- virtus (1.0.5)
114
+ virtus (2.0.0)
110
115
  axiom-types (~> 0.1)
111
116
  coercible (~> 1.0)
112
117
  descendants_tracker (~> 0.0, >= 0.0.3)
113
- equalizer (~> 0.0, >= 0.0.9)
114
118
  webmock (3.11.2)
115
119
  addressable (>= 2.3.6)
116
120
  crack (>= 0.3.2)
@@ -131,4 +135,4 @@ DEPENDENCIES
131
135
  webmock (~> 3.4)
132
136
 
133
137
  BUNDLED WITH
134
- 2.2.8
138
+ 2.2.20
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "api_client_base", "~> 1.4"
27
27
  spec.add_dependency "gem_config", "~> 0.3.1"
28
28
  spec.add_dependency "typhoeus", "~> 1.3"
29
- spec.add_dependency "virtus", "~> 1.0"
30
- spec.add_dependency "dry-validation", ">= 0.12.2", "< 1.0"
29
+ spec.add_dependency "virtus", ">= 1.0", "< 3"
30
+ spec.add_dependency "dry-validation", "~> 1.0", "< 2"
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 2.2"
33
33
  spec.add_development_dependency "rake", "~> 12.3"
@@ -1,8 +1,12 @@
1
1
  module CryptoColdStoreClient
2
2
  COINS = %w[btc eth]
3
3
 
4
- GetAddressRequestSchema = Dry::Validation.Schema do
5
- required(:coin).filled(:str?, included_in?: COINS)
6
- required(:code).filled(:str?)
4
+ class GetAddressRequestSchema < Dry::Validation::Contract
5
+
6
+ params do
7
+ required(:coin).filled(:str?, included_in?: COINS)
8
+ required(:code).filled(:str?)
9
+ end
10
+
7
11
  end
8
12
  end
@@ -1,3 +1,3 @@
1
1
  module CryptoColdStoreClient
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypto_cold_store_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Subido
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-05 00:00:00.000000000 Z
11
+ date: 2021-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -70,36 +70,42 @@ dependencies:
70
70
  name: virtus
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.0'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '3'
76
79
  type: :runtime
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
- - - "~>"
83
+ - - ">="
81
84
  - !ruby/object:Gem::Version
82
85
  version: '1.0'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '3'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: dry-validation
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - ">="
93
+ - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: 0.12.2
95
+ version: '1.0'
90
96
  - - "<"
91
97
  - !ruby/object:Gem::Version
92
- version: '1.0'
98
+ version: '2'
93
99
  type: :runtime
94
100
  prerelease: false
95
101
  version_requirements: !ruby/object:Gem::Requirement
96
102
  requirements:
97
- - - ">="
103
+ - - "~>"
98
104
  - !ruby/object:Gem::Version
99
- version: 0.12.2
105
+ version: '1.0'
100
106
  - - "<"
101
107
  - !ruby/object:Gem::Version
102
- version: '1.0'
108
+ version: '2'
103
109
  - !ruby/object:Gem::Dependency
104
110
  name: bundler
105
111
  requirement: !ruby/object:Gem::Requirement
@@ -193,6 +199,7 @@ extra_rdoc_files: []
193
199
  files:
194
200
  - ".env"
195
201
  - ".github/workflows/push.yml"
202
+ - ".github/workflows/ruby.yml"
196
203
  - ".gitignore"
197
204
  - ".rspec"
198
205
  - CHANGELOG.md
@@ -231,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
238
  - !ruby/object:Gem::Version
232
239
  version: '0'
233
240
  requirements: []
234
- rubygems_version: 3.0.8
241
+ rubygems_version: 3.1.6
235
242
  signing_key:
236
243
  specification_version: 4
237
244
  summary: Ruby client for crypto-cold-store