xe_client 1.1.0 → 1.1.1

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: d57a5857429d30d7aa2ab687b7a5d4fc467e18ee1ab10ebf415c914d27f149a9
4
- data.tar.gz: d0cb8810a53660ac5a45d55d14be341aa8a0876ce6dff1381521a8b9f21af367
3
+ metadata.gz: 20f681f8c0e2ed2fbb1e238ecdd5930c295508acc1df25858108de4a84ccd3de
4
+ data.tar.gz: 373c0dd0b1438adce69db45b03e77536db60a51a5e9d03a5d585bce10436a6f3
5
5
  SHA512:
6
- metadata.gz: 55a0a14eee2432daca0c88c9e404453f22c738b6ff6a08d5e44218c349b6536d9fbdf04dbf9ac42a00c65b2a5ba91dd2eaf41bc6a782a9931b08d9f5607da75d
7
- data.tar.gz: 9868ff4f6350dfed96c509be481595ef17867a9eaa8db0d63399d46a7da3a23610acbc3b069f60afbb2d08470deeb6e895f07666ca032be6ba27be306a95fd5d
6
+ metadata.gz: 82b7195d5cae90ea703c1a20d8de2728534b66245d2024fb7759a33283b70f0e6a6895499de12a6cf0a2063fb86d53f1e5aebff4c6a2061388a8caef26770b59
7
+ data.tar.gz: c3f9406539b6866f28699370798328ac0e6bf658c7fbdcf21a3b30af4a475f3391b158a1a77c200893fbfcc03c682f025d50231b9914754acd797e6a36fe3b17
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  strategy:
21
21
  matrix:
22
- ruby-version: ['2.6', '2.7']
22
+ ruby-version: ['2.7']
23
23
 
24
24
  steps:
25
25
  - uses: actions/checkout@v2
@@ -33,5 +33,7 @@ jobs:
33
33
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34
34
  - name: Setup spec config
35
35
  run: cp spec/config.yml{.sample,}
36
+ - name: Bundle appraisal
37
+ run: bundle exec appraisal install
36
38
  - name: Run tests
37
- run: bundle exec rspec
39
+ run: bundle exec appraisal rspec
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "dry-validation-0.13.x" do
2
+ gem "dry-validation", "~> 0.13.0"
3
+ end
4
+
5
+ appraise "dry-validation-1.x" do
6
+ gem "dry-validation", "~> 1.0"
7
+ end
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [1.1.1] - 2022-04-06
6
+ ### Fixed
7
+ - undefined method 'size' for nil when running with dry-validation 0.13 (allow 0.13 to be installed)
8
+
5
9
  ## [1.1.0] - 2021-06-15
6
10
  ### Added
7
11
  - Update `dry-validation` to 1.x
data/Gemfile CHANGED
@@ -5,3 +5,5 @@ gemspec
5
5
 
6
6
  gem "virtus-matchers", github: "g5/virtus-matchers"
7
7
  gem "pry"
8
+
9
+ gem "appraisal", github: "thoughtbot/appraisal", ref: "97079f000840338edde73ded08ed6687e0b5223a"
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "virtus-matchers", github: "g5/virtus-matchers"
6
+ gem "pry"
7
+ gem "dry-validation", "~> 0.13.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,154 @@
1
+ GIT
2
+ remote: https://github.com/g5/virtus-matchers.git
3
+ revision: d4a2d4b68ac938e7fa3c19bccd67bf2e854d21f5
4
+ specs:
5
+ virtus-matchers (0.4.0)
6
+ virtus (~> 1.0.0)
7
+
8
+ PATH
9
+ remote: ..
10
+ specs:
11
+ xe_client (1.1.0)
12
+ activemodel (>= 3.0)
13
+ activesupport (>= 3.0)
14
+ api_client_base (~> 1.9)
15
+ dry-validation (>= 0.13, < 2)
16
+ httparty
17
+ typhoeus (~> 1.0)
18
+ virtus (~> 1.0)
19
+
20
+ GEM
21
+ remote: https://rubygems.org/
22
+ specs:
23
+ activemodel (7.0.2.3)
24
+ activesupport (= 7.0.2.3)
25
+ activesupport (7.0.2.3)
26
+ concurrent-ruby (~> 1.0, >= 1.0.2)
27
+ i18n (>= 1.6, < 2)
28
+ minitest (>= 5.1)
29
+ tzinfo (~> 2.0)
30
+ addressable (2.8.0)
31
+ public_suffix (>= 2.0.2, < 5.0)
32
+ api_client_base (1.11.0)
33
+ activesupport (>= 3.0)
34
+ gem_config (>= 0.3.1)
35
+ virtus (>= 1.0)
36
+ appraisal (2.4.1)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ axiom-types (0.1.1)
41
+ descendants_tracker (~> 0.0.4)
42
+ ice_nine (~> 0.11.0)
43
+ thread_safe (~> 0.3, >= 0.3.1)
44
+ coderay (1.1.3)
45
+ coercible (1.0.0)
46
+ descendants_tracker (~> 0.0.1)
47
+ concurrent-ruby (1.1.10)
48
+ crack (0.4.5)
49
+ rexml
50
+ descendants_tracker (0.0.4)
51
+ thread_safe (~> 0.3, >= 0.3.1)
52
+ diff-lcs (1.5.0)
53
+ dry-configurable (0.14.0)
54
+ concurrent-ruby (~> 1.0)
55
+ dry-core (~> 0.6)
56
+ dry-container (0.9.0)
57
+ concurrent-ruby (~> 1.0)
58
+ dry-configurable (~> 0.13, >= 0.13.0)
59
+ dry-core (0.7.1)
60
+ concurrent-ruby (~> 1.0)
61
+ dry-equalizer (0.3.0)
62
+ dry-inflector (0.2.1)
63
+ dry-logic (0.6.1)
64
+ concurrent-ruby (~> 1.0)
65
+ dry-core (~> 0.2)
66
+ dry-equalizer (~> 0.2)
67
+ dry-types (0.14.1)
68
+ concurrent-ruby (~> 1.0)
69
+ dry-container (~> 0.3)
70
+ dry-core (~> 0.4, >= 0.4.4)
71
+ dry-equalizer (~> 0.2)
72
+ dry-inflector (~> 0.1, >= 0.1.2)
73
+ dry-logic (~> 0.5, >= 0.5)
74
+ dry-validation (0.13.3)
75
+ concurrent-ruby (~> 1.0)
76
+ dry-configurable (~> 0.1, >= 0.1.3)
77
+ dry-core (~> 0.2, >= 0.2.1)
78
+ dry-equalizer (~> 0.2)
79
+ dry-logic (~> 0.5, >= 0.5.0)
80
+ dry-types (~> 0.14.0)
81
+ equalizer (0.0.11)
82
+ ethon (0.15.0)
83
+ ffi (>= 1.15.0)
84
+ ffi (1.15.5)
85
+ gem_config (0.3.2)
86
+ hashdiff (1.0.1)
87
+ httparty (0.20.0)
88
+ mime-types (~> 3.0)
89
+ multi_xml (>= 0.5.2)
90
+ i18n (1.10.0)
91
+ concurrent-ruby (~> 1.0)
92
+ ice_nine (0.11.2)
93
+ method_source (1.0.0)
94
+ mime-types (3.4.1)
95
+ mime-types-data (~> 3.2015)
96
+ mime-types-data (3.2022.0105)
97
+ minitest (5.15.0)
98
+ multi_xml (0.6.0)
99
+ pry (0.14.1)
100
+ coderay (~> 1.1)
101
+ method_source (~> 1.0)
102
+ public_suffix (4.0.6)
103
+ rake (10.5.0)
104
+ rexml (3.2.5)
105
+ rspec (3.11.0)
106
+ rspec-core (~> 3.11.0)
107
+ rspec-expectations (~> 3.11.0)
108
+ rspec-mocks (~> 3.11.0)
109
+ rspec-core (3.11.0)
110
+ rspec-support (~> 3.11.0)
111
+ rspec-expectations (3.11.0)
112
+ diff-lcs (>= 1.2.0, < 2.0)
113
+ rspec-support (~> 3.11.0)
114
+ rspec-mocks (3.11.1)
115
+ diff-lcs (>= 1.2.0, < 2.0)
116
+ rspec-support (~> 3.11.0)
117
+ rspec-support (3.11.0)
118
+ shoulda-matchers (3.1.3)
119
+ activesupport (>= 4.0.0)
120
+ thor (1.2.1)
121
+ thread_safe (0.3.6)
122
+ typhoeus (1.4.0)
123
+ ethon (>= 0.9.0)
124
+ tzinfo (2.0.4)
125
+ concurrent-ruby (~> 1.0)
126
+ vcr (3.0.3)
127
+ virtus (1.0.5)
128
+ axiom-types (~> 0.1)
129
+ coercible (~> 1.0)
130
+ descendants_tracker (~> 0.0, >= 0.0.3)
131
+ equalizer (~> 0.0, >= 0.0.9)
132
+ webmock (2.3.2)
133
+ addressable (>= 2.3.6)
134
+ crack (>= 0.3.2)
135
+ hashdiff
136
+
137
+ PLATFORMS
138
+ ruby
139
+
140
+ DEPENDENCIES
141
+ appraisal (~> 2.4)
142
+ bundler (~> 2.0)
143
+ dry-validation (~> 0.13.0)
144
+ pry
145
+ rake (~> 10.0)
146
+ rspec (~> 3.0)
147
+ shoulda-matchers (~> 3.0)
148
+ vcr (~> 3.0)
149
+ virtus-matchers!
150
+ webmock (~> 2.0)
151
+ xe_client!
152
+
153
+ BUNDLED WITH
154
+ 2.2.28
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "virtus-matchers", github: "g5/virtus-matchers"
6
+ gem "pry"
7
+ gem "dry-validation", "~> 1.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,158 @@
1
+ GIT
2
+ remote: https://github.com/g5/virtus-matchers.git
3
+ revision: d4a2d4b68ac938e7fa3c19bccd67bf2e854d21f5
4
+ specs:
5
+ virtus-matchers (0.4.0)
6
+ virtus (~> 1.0.0)
7
+
8
+ PATH
9
+ remote: ..
10
+ specs:
11
+ xe_client (1.1.0)
12
+ activemodel (>= 3.0)
13
+ activesupport (>= 3.0)
14
+ api_client_base (~> 1.9)
15
+ dry-validation (>= 0.13, < 2)
16
+ httparty
17
+ typhoeus (~> 1.0)
18
+ virtus (~> 1.0)
19
+
20
+ GEM
21
+ remote: https://rubygems.org/
22
+ specs:
23
+ activemodel (7.0.2.3)
24
+ activesupport (= 7.0.2.3)
25
+ activesupport (7.0.2.3)
26
+ concurrent-ruby (~> 1.0, >= 1.0.2)
27
+ i18n (>= 1.6, < 2)
28
+ minitest (>= 5.1)
29
+ tzinfo (~> 2.0)
30
+ addressable (2.8.0)
31
+ public_suffix (>= 2.0.2, < 5.0)
32
+ api_client_base (1.11.0)
33
+ activesupport (>= 3.0)
34
+ gem_config (>= 0.3.1)
35
+ virtus (>= 1.0)
36
+ appraisal (2.4.1)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ axiom-types (0.1.1)
41
+ descendants_tracker (~> 0.0.4)
42
+ ice_nine (~> 0.11.0)
43
+ thread_safe (~> 0.3, >= 0.3.1)
44
+ coderay (1.1.3)
45
+ coercible (1.0.0)
46
+ descendants_tracker (~> 0.0.1)
47
+ concurrent-ruby (1.1.10)
48
+ crack (0.4.5)
49
+ rexml
50
+ descendants_tracker (0.0.4)
51
+ thread_safe (~> 0.3, >= 0.3.1)
52
+ diff-lcs (1.5.0)
53
+ dry-configurable (0.14.0)
54
+ concurrent-ruby (~> 1.0)
55
+ dry-core (~> 0.6)
56
+ dry-container (0.9.0)
57
+ concurrent-ruby (~> 1.0)
58
+ dry-configurable (~> 0.13, >= 0.13.0)
59
+ dry-core (0.7.1)
60
+ concurrent-ruby (~> 1.0)
61
+ dry-inflector (0.2.1)
62
+ dry-initializer (3.1.1)
63
+ dry-logic (1.2.0)
64
+ concurrent-ruby (~> 1.0)
65
+ dry-core (~> 0.5, >= 0.5)
66
+ dry-schema (1.9.1)
67
+ concurrent-ruby (~> 1.0)
68
+ dry-configurable (~> 0.13, >= 0.13.0)
69
+ dry-core (~> 0.5, >= 0.5)
70
+ dry-initializer (~> 3.0)
71
+ dry-logic (~> 1.0)
72
+ dry-types (~> 1.5)
73
+ dry-types (1.5.1)
74
+ concurrent-ruby (~> 1.0)
75
+ dry-container (~> 0.3)
76
+ dry-core (~> 0.5, >= 0.5)
77
+ dry-inflector (~> 0.1, >= 0.1.2)
78
+ dry-logic (~> 1.0, >= 1.0.2)
79
+ dry-validation (1.8.0)
80
+ concurrent-ruby (~> 1.0)
81
+ dry-container (~> 0.7, >= 0.7.1)
82
+ dry-core (~> 0.5, >= 0.5)
83
+ dry-initializer (~> 3.0)
84
+ dry-schema (~> 1.9, >= 1.9.1)
85
+ equalizer (0.0.11)
86
+ ethon (0.15.0)
87
+ ffi (>= 1.15.0)
88
+ ffi (1.15.5)
89
+ gem_config (0.3.2)
90
+ hashdiff (1.0.1)
91
+ httparty (0.20.0)
92
+ mime-types (~> 3.0)
93
+ multi_xml (>= 0.5.2)
94
+ i18n (1.10.0)
95
+ concurrent-ruby (~> 1.0)
96
+ ice_nine (0.11.2)
97
+ method_source (1.0.0)
98
+ mime-types (3.4.1)
99
+ mime-types-data (~> 3.2015)
100
+ mime-types-data (3.2022.0105)
101
+ minitest (5.15.0)
102
+ multi_xml (0.6.0)
103
+ pry (0.14.1)
104
+ coderay (~> 1.1)
105
+ method_source (~> 1.0)
106
+ public_suffix (4.0.6)
107
+ rake (10.5.0)
108
+ rexml (3.2.5)
109
+ rspec (3.11.0)
110
+ rspec-core (~> 3.11.0)
111
+ rspec-expectations (~> 3.11.0)
112
+ rspec-mocks (~> 3.11.0)
113
+ rspec-core (3.11.0)
114
+ rspec-support (~> 3.11.0)
115
+ rspec-expectations (3.11.0)
116
+ diff-lcs (>= 1.2.0, < 2.0)
117
+ rspec-support (~> 3.11.0)
118
+ rspec-mocks (3.11.1)
119
+ diff-lcs (>= 1.2.0, < 2.0)
120
+ rspec-support (~> 3.11.0)
121
+ rspec-support (3.11.0)
122
+ shoulda-matchers (3.1.3)
123
+ activesupport (>= 4.0.0)
124
+ thor (1.2.1)
125
+ thread_safe (0.3.6)
126
+ typhoeus (1.4.0)
127
+ ethon (>= 0.9.0)
128
+ tzinfo (2.0.4)
129
+ concurrent-ruby (~> 1.0)
130
+ vcr (3.0.3)
131
+ virtus (1.0.5)
132
+ axiom-types (~> 0.1)
133
+ coercible (~> 1.0)
134
+ descendants_tracker (~> 0.0, >= 0.0.3)
135
+ equalizer (~> 0.0, >= 0.0.9)
136
+ webmock (2.3.2)
137
+ addressable (>= 2.3.6)
138
+ crack (>= 0.3.2)
139
+ hashdiff
140
+
141
+ PLATFORMS
142
+ ruby
143
+
144
+ DEPENDENCIES
145
+ appraisal (~> 2.4)
146
+ bundler (~> 2.0)
147
+ dry-validation (~> 1.0)
148
+ pry
149
+ rake (~> 10.0)
150
+ rspec (~> 3.0)
151
+ shoulda-matchers (~> 3.0)
152
+ vcr (~> 3.0)
153
+ virtus-matchers!
154
+ webmock (~> 2.0)
155
+ xe_client!
156
+
157
+ BUNDLED WITH
158
+ 2.2.28
@@ -1,11 +1,11 @@
1
- module MyGem
2
- class ConvertFromRequestSchema < Dry::Validation::Contract
3
-
4
- params do
5
- required(:account_id).filled(:str?)
6
- required(:api_key).filled(:str?)
7
- required(:host).filled(:str?)
1
+ module XeClient
2
+ if not Dry::Validation.const_defined?("Schema")
3
+ class ConvertFromRequestSchema < Dry::Validation::Contract
4
+ params do
5
+ required(:account_id).filled(:str?)
6
+ required(:api_key).filled(:str?)
7
+ required(:host).filled(:str?)
8
+ end
8
9
  end
9
-
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module XEClient
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
data/xe_client.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "virtus", "~> 1.0"
32
32
  spec.add_dependency "httparty"
33
33
  spec.add_dependency "api_client_base", "~> 1.9"
34
- spec.add_dependency "dry-validation", "~> 1.0", "< 2"
34
+ spec.add_dependency "dry-validation", ">= 0.13", "< 2"
35
35
  spec.add_dependency "typhoeus", "~> 1.0"
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 2.0"
@@ -40,4 +40,5 @@ Gem::Specification.new do |spec|
40
40
  spec.add_development_dependency "shoulda-matchers", "~> 3.0"
41
41
  spec.add_development_dependency "vcr", "~> 3.0"
42
42
  spec.add_development_dependency "webmock", "~> 2.0"
43
+ spec.add_development_dependency "appraisal"
43
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xe_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -84,9 +84,9 @@ dependencies:
84
84
  name: dry-validation
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: '0.13'
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '2'
@@ -94,9 +94,9 @@ dependencies:
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - "~>"
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: '1.0'
99
+ version: '0.13'
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '2'
@@ -198,6 +198,20 @@ dependencies:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
200
  version: '2.0'
201
+ - !ruby/object:Gem::Dependency
202
+ name: appraisal
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ type: :development
209
+ prerelease: false
210
+ version_requirements: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
201
215
  description:
202
216
  email:
203
217
  - ramon.tayag@gmail.com
@@ -209,6 +223,7 @@ files:
209
223
  - ".github/workflows/ruby.yml"
210
224
  - ".gitignore"
211
225
  - ".rspec"
226
+ - Appraisals
212
227
  - CHANGELOG.md
213
228
  - CODE_OF_CONDUCT.md
214
229
  - Gemfile
@@ -217,6 +232,11 @@ files:
217
232
  - Rakefile
218
233
  - bin/console
219
234
  - bin/setup
235
+ - gemfiles/.bundle/config
236
+ - gemfiles/dry_validation_0.13.x.gemfile
237
+ - gemfiles/dry_validation_0.13.x.gemfile.lock
238
+ - gemfiles/dry_validation_1.x.gemfile
239
+ - gemfiles/dry_validation_1.x.gemfile.lock
220
240
  - lib/xe_client.rb
221
241
  - lib/xe_client/client.rb
222
242
  - lib/xe_client/errors/authentication_error.rb