patch_ruby 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +21 -20
- data/Makefile +2 -2
- data/lib/patch_ruby/api_client.rb +1 -1
- data/lib/patch_ruby/version.rb +1 -1
- data/patch_ruby.gemspec +1 -0
- data/spec/integration/estimates_spec.rb +2 -1
- data/spec/spec_helper.rb +1 -0
- metadata +43 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a60adf45e55eff1cdd9f715a79b10a05af5d026e7212b995539bbe5fd26c916
|
4
|
+
data.tar.gz: 1c1a51872910096ed517d3b2ca0d4c68f3630beaccc00ca72ca63907d7ad7f29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d46157e9bf930d3f5ef9a94c796d605abd4292f5332e9ff599a9837c3ff5d8427d6f5fcb8a5655e9751eaf64086da8018e4b765960b78ab3f26f7d266958689
|
7
|
+
data.tar.gz: 0b47e26dab2ccacd96e016745d73a4c87aa24121102af2c8983fcc98f1ce2ea4194a1deb4443ac24da99a4f8fc1b4d2cfaa1b74bd8a7325be168414e067837c2
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.10.2] - 2021-09-01
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
- Allows methods to be called with no parameters
|
13
|
+
|
8
14
|
## [1.10.0] - 2021-08-27
|
9
15
|
|
10
16
|
### Added
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
patch_ruby (1.10.
|
4
|
+
patch_ruby (1.10.2)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -17,12 +17,12 @@ GEM
|
|
17
17
|
byebug (11.1.3)
|
18
18
|
coderay (1.1.3)
|
19
19
|
concurrent-ruby (1.1.9)
|
20
|
-
diff-lcs (1.4.
|
20
|
+
diff-lcs (1.4.4)
|
21
21
|
ethon (0.14.0)
|
22
22
|
ffi (>= 1.15.0)
|
23
23
|
factory_bot (6.2.0)
|
24
24
|
activesupport (>= 5.0.0)
|
25
|
-
ffi (1.15.
|
25
|
+
ffi (1.15.4)
|
26
26
|
i18n (1.8.10)
|
27
27
|
concurrent-ruby (~> 1.0)
|
28
28
|
jaro_winkler (1.5.4)
|
@@ -31,28 +31,28 @@ GEM
|
|
31
31
|
parallel (1.20.1)
|
32
32
|
parser (3.0.2.0)
|
33
33
|
ast (~> 2.4.1)
|
34
|
-
pry (0.
|
34
|
+
pry (0.14.1)
|
35
35
|
coderay (~> 1.1)
|
36
36
|
method_source (~> 1.0)
|
37
|
-
pry-byebug (3.
|
37
|
+
pry-byebug (3.8.0)
|
38
38
|
byebug (~> 11.0)
|
39
|
-
pry (~> 0.
|
39
|
+
pry (~> 0.10)
|
40
40
|
psych (4.0.1)
|
41
41
|
rainbow (3.0.0)
|
42
|
-
rake (13.0.
|
43
|
-
rspec (3.
|
44
|
-
rspec-core (~> 3.
|
45
|
-
rspec-expectations (~> 3.
|
46
|
-
rspec-mocks (~> 3.
|
47
|
-
rspec-core (3.
|
48
|
-
rspec-support (~> 3.
|
49
|
-
rspec-expectations (3.
|
42
|
+
rake (13.0.6)
|
43
|
+
rspec (3.10.0)
|
44
|
+
rspec-core (~> 3.10.0)
|
45
|
+
rspec-expectations (~> 3.10.0)
|
46
|
+
rspec-mocks (~> 3.10.0)
|
47
|
+
rspec-core (3.10.1)
|
48
|
+
rspec-support (~> 3.10.0)
|
49
|
+
rspec-expectations (3.10.1)
|
50
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.
|
52
|
-
rspec-mocks (3.
|
51
|
+
rspec-support (~> 3.10.0)
|
52
|
+
rspec-mocks (3.10.2)
|
53
53
|
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
-
rspec-support (~> 3.
|
55
|
-
rspec-support (3.
|
54
|
+
rspec-support (~> 3.10.0)
|
55
|
+
rspec-support (3.10.2)
|
56
56
|
rubocop (0.66.0)
|
57
57
|
jaro_winkler (~> 1.5.1)
|
58
58
|
parallel (~> 1.10)
|
@@ -70,15 +70,16 @@ GEM
|
|
70
70
|
zeitwerk (2.4.2)
|
71
71
|
|
72
72
|
PLATFORMS
|
73
|
-
|
73
|
+
x86_64-darwin-20
|
74
74
|
|
75
75
|
DEPENDENCIES
|
76
76
|
factory_bot (~> 6.2)
|
77
77
|
patch_ruby!
|
78
|
+
pry
|
78
79
|
pry-byebug
|
79
80
|
rake (~> 13.0.1)
|
80
81
|
rspec (~> 3.6, >= 3.6.0)
|
81
82
|
rubocop (~> 0.66.0)
|
82
83
|
|
83
84
|
BUNDLED WITH
|
84
|
-
2.2.
|
85
|
+
2.2.22
|
data/Makefile
CHANGED
@@ -31,7 +31,7 @@ module Patch
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "patch-ruby/1.10.
|
34
|
+
@user_agent = "patch-ruby/1.10.2"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
data/lib/patch_ruby/version.rb
CHANGED
data/patch_ruby.gemspec
CHANGED
@@ -74,8 +74,9 @@ RSpec.describe 'Estimates Integration' do
|
|
74
74
|
expect(create_estimate_response.data.mass_g).to eq 12_431
|
75
75
|
end
|
76
76
|
|
77
|
+
|
77
78
|
it 'supports creating bitcoin estimates with partial information' do
|
78
|
-
bitcoin_estimate = Patch::Estimate.create_bitcoin_estimate({
|
79
|
+
bitcoin_estimate = Patch::Estimate.create_bitcoin_estimate({})
|
79
80
|
|
80
81
|
expect(bitcoin_estimate.data.type).to eq 'bitcoin'
|
81
82
|
expect(bitcoin_estimate.data.mass_g).to be >= 2_000
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patch_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patch Technology
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -64,6 +64,20 @@ dependencies:
|
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '6.2'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: pry
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
67
81
|
description: Ruby wrapper for the Patch API
|
68
82
|
email:
|
69
83
|
- developers@usepatch.com
|
@@ -190,52 +204,52 @@ specification_version: 4
|
|
190
204
|
summary: Ruby wrapper for the Patch API
|
191
205
|
test_files:
|
192
206
|
- spec/api/orders_api_spec.rb
|
193
|
-
- spec/api/preferences_api_spec.rb
|
194
207
|
- spec/api/projects_api_spec.rb
|
208
|
+
- spec/api/preferences_api_spec.rb
|
195
209
|
- spec/api/estimates_api_spec.rb
|
196
210
|
- spec/api_client_spec.rb
|
197
211
|
- spec/configuration_spec.rb
|
198
212
|
- spec/constants.rb
|
199
|
-
- spec/factories/
|
200
|
-
- spec/factories/allocations.rb
|
213
|
+
- spec/factories/preferences.rb
|
201
214
|
- spec/factories/create_order_requests.rb
|
202
|
-
- spec/factories/
|
203
|
-
- spec/factories/
|
215
|
+
- spec/factories/order_list_responses.rb
|
216
|
+
- spec/factories/projects.rb
|
217
|
+
- spec/factories/estimate_list_responses.rb
|
204
218
|
- spec/factories/create_preference_requests.rb
|
219
|
+
- spec/factories/preference_responses.rb
|
220
|
+
- spec/factories/error_responses.rb
|
205
221
|
- spec/factories/estimates.rb
|
206
|
-
- spec/factories/
|
222
|
+
- spec/factories/order_responses.rb
|
207
223
|
- spec/factories/create_mass_estimate_requests.rb
|
208
|
-
- spec/factories/project_list_responses.rb
|
209
|
-
- spec/factories/error_responses.rb
|
210
|
-
- spec/factories/orders.rb
|
211
|
-
- spec/factories/project_responses.rb
|
212
224
|
- spec/factories/preference_list_responses.rb
|
213
|
-
- spec/factories/order_list_responses.rb
|
214
|
-
- spec/factories/projects.rb
|
215
|
-
- spec/factories/order_responses.rb
|
216
225
|
- spec/factories/estimate_responses.rb
|
217
|
-
- spec/
|
218
|
-
- spec/
|
226
|
+
- spec/factories/meta_index_objects.rb
|
227
|
+
- spec/factories/project_responses.rb
|
228
|
+
- spec/factories/orders.rb
|
229
|
+
- spec/factories/project_list_responses.rb
|
230
|
+
- spec/factories/allocations.rb
|
219
231
|
- spec/integration/projects_spec.rb
|
220
232
|
- spec/integration/preferences_spec.rb
|
221
|
-
- spec/
|
222
|
-
- spec/
|
223
|
-
- spec/models/
|
224
|
-
- spec/models/
|
233
|
+
- spec/integration/estimates_spec.rb
|
234
|
+
- spec/integration/orders_spec.rb
|
235
|
+
- spec/models/error_response_spec.rb
|
236
|
+
- spec/models/create_order_request_spec.rb
|
225
237
|
- spec/models/create_mass_estimate_request_spec.rb
|
226
|
-
- spec/models/preference_spec.rb
|
227
|
-
- spec/models/order_response_spec.rb
|
228
238
|
- spec/models/preference_list_response_spec.rb
|
229
|
-
- spec/models/estimate_spec.rb
|
230
239
|
- spec/models/project_response_spec.rb
|
240
|
+
- spec/models/estimate_spec.rb
|
241
|
+
- spec/models/project_list_response_spec.rb
|
242
|
+
- spec/models/preference_spec.rb
|
243
|
+
- spec/models/order_response_spec.rb
|
244
|
+
- spec/models/estimate_list_response_spec.rb
|
245
|
+
- spec/models/order_list_response_spec.rb
|
246
|
+
- spec/models/create_preference_request_spec.rb
|
247
|
+
- spec/models/meta_index_object_spec.rb
|
248
|
+
- spec/models/order_spec.rb
|
249
|
+
- spec/models/preference_response_spec.rb
|
231
250
|
- spec/models/estimate_response_spec.rb
|
232
|
-
- spec/models/error_response_spec.rb
|
233
251
|
- spec/models/project_spec.rb
|
234
|
-
- spec/models/preference_response_spec.rb
|
235
|
-
- spec/models/create_order_request_spec.rb
|
236
|
-
- spec/models/order_spec.rb
|
237
252
|
- spec/models/allocation_spec.rb
|
238
|
-
- spec/models/estimate_list_response_spec.rb
|
239
253
|
- spec/patch_ruby_spec.rb
|
240
254
|
- spec/spec_helper.rb
|
241
255
|
- spec/support/shared/generated_classes.rb
|