patch_ruby 1.16.1 → 1.17.0
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 +3 -2
- data/lib/patch_ruby/api_client.rb +1 -1
- data/lib/patch_ruby/models/order.rb +1 -6
- data/lib/patch_ruby/models/project.rb +1 -1
- data/lib/patch_ruby/version.rb +1 -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: 9b155fa6ec075f760c3a917898b8e970995c500ff5b3d31488216e018d98418c
|
4
|
+
data.tar.gz: 212fccee52313135c68c8568df430d6bce2e41de56610c84c5badb2b5c7d13e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0af1c92005e56b3a1249cef852bf0cd6005d4e734c9a237bed90c1704f8ef676a725fad3c7d95daee0e83bfbfbaaefedebf7bcc71c69ad3cd7d6d89ae5917f6
|
7
|
+
data.tar.gz: 46bf38a886fd7c4767b3cd5a87794e55b683c0ffeaecd688700b2d9b028460608bff5d355aef0d591807e12208497d9b8cecb13e38c27aba7c81d79e7637fe37
|
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.17.0] - 2022-01-11
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- Set the order allocatations array as optional.
|
13
|
+
|
8
14
|
## [1.16.1] - 2022-01-07
|
9
15
|
|
10
16
|
### Changed
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
patch_ruby (1.
|
4
|
+
patch_ruby (1.17.0)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -22,7 +22,7 @@ GEM
|
|
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.5)
|
26
26
|
i18n (1.8.10)
|
27
27
|
concurrent-ruby (~> 1.0)
|
28
28
|
jaro_winkler (1.5.4)
|
@@ -71,6 +71,7 @@ GEM
|
|
71
71
|
|
72
72
|
PLATFORMS
|
73
73
|
arm64-darwin-20
|
74
|
+
arm64-darwin-21
|
74
75
|
x86_64-darwin-20
|
75
76
|
|
76
77
|
DEPENDENCIES
|
@@ -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.
|
34
|
+
@user_agent = "patch-ruby/1.17.0"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -39,7 +39,7 @@ module Patch
|
|
39
39
|
# The Patch Fee in cents USD for this order.
|
40
40
|
attr_accessor :patch_fee_cents_usd
|
41
41
|
|
42
|
-
# An array containing the inventory allocations for this order.
|
42
|
+
# DEPRECATED. An array containing the inventory allocations for this order.
|
43
43
|
attr_accessor :allocations
|
44
44
|
|
45
45
|
# The url of this order in the public registry.
|
@@ -223,10 +223,6 @@ module Patch
|
|
223
223
|
invalid_properties.push('invalid value for "allocation_state", allocation_state cannot be nil.')
|
224
224
|
end
|
225
225
|
|
226
|
-
if @allocations.nil?
|
227
|
-
invalid_properties.push('invalid value for "allocations", allocations cannot be nil.')
|
228
|
-
end
|
229
|
-
|
230
226
|
if @metadata.nil?
|
231
227
|
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
232
228
|
end
|
@@ -248,7 +244,6 @@ module Patch
|
|
248
244
|
return false if @allocation_state.nil?
|
249
245
|
allocation_state_validator = EnumAttributeValidator.new('String', ["pending", "allocated"])
|
250
246
|
return false unless allocation_state_validator.valid?(@allocation_state)
|
251
|
-
return false if @allocations.nil?
|
252
247
|
return false if @metadata.nil?
|
253
248
|
true
|
254
249
|
end
|
@@ -27,7 +27,7 @@ module Patch
|
|
27
27
|
# The description of the project.
|
28
28
|
attr_accessor :description
|
29
29
|
|
30
|
-
#
|
30
|
+
# DEPRECATED. Favor the technology_type field instead.
|
31
31
|
attr_accessor :type
|
32
32
|
|
33
33
|
# The mechanism of the project. Either removal or avoidance.
|
data/lib/patch_ruby/version.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.
|
4
|
+
version: 1.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patch Technology
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|