microsoft_kiota_faraday 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e495d3f30d8ef58a1a31e2787ad95509b109500396eb2b580f395bac2f9784ff
|
|
4
|
+
data.tar.gz: 9acc9b363e8457ec63b40c6af2656f9909e2e50f4bd10c2e4e3e2c67824a9793
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 198e7a6cac9b93d55798dcea8a99b0ae7024dfbe0eb6f83396a1d9d4c0a3ac4f04d74b803bf696b7aa845bbda882f820921fa9f27f2f48e7f5e8a10714becb94
|
|
7
|
+
data.tar.gz: 2d41d23959e218efb689d1d36cedf7a507162cee0a6f948d15c604251e1c08f6ad8b9e6f50160c04c1761abca5a60863aadd81e63542d93d2f6ecb6c9b5b018a
|
|
@@ -34,6 +34,13 @@ module MicrosoftKiotaFaraday
|
|
|
34
34
|
@base_url = ''
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
def enable_backing_store(backing_store_factory = nil)
|
|
38
|
+
@parse_node_factory = MicrosoftKiotaAbstractions::ApiClientBuilder.enable_backing_store_for_parse_node_factory(@parse_node_factory)
|
|
39
|
+
@serialization_writer_factory =
|
|
40
|
+
MicrosoftKiotaAbstractions::ApiClientBuilder.enable_backing_store_for_serialization_writer_factory(@serialization_writer_factory)
|
|
41
|
+
MicrosoftKiotaAbstractions::BackingStoreFactorySingleton.instance = backing_store_factory if backing_store_factory
|
|
42
|
+
end
|
|
43
|
+
|
|
37
44
|
def set_base_url(base_url)
|
|
38
45
|
@base_url = base_url
|
|
39
46
|
end
|
|
@@ -141,11 +148,11 @@ module MicrosoftKiotaFaraday
|
|
|
141
148
|
return if status_code < 400
|
|
142
149
|
|
|
143
150
|
error_factory = errors_mapping[status_code.to_s] unless errors_mapping.nil?
|
|
144
|
-
error_factory = errors_mapping['4XX'] unless !error_factory.nil? || errors_mapping.nil? || status_code
|
|
145
|
-
unless !error_factory.nil? || errors_mapping.nil? || status_code < 500 || status_code
|
|
151
|
+
error_factory = errors_mapping['4XX'] unless !error_factory.nil? || errors_mapping.nil? || status_code >= 500
|
|
152
|
+
unless !error_factory.nil? || errors_mapping.nil? || status_code < 500 || status_code >= 600
|
|
146
153
|
error_factory = errors_mapping['5XX']
|
|
147
154
|
end
|
|
148
|
-
unless !error_factory.nil? || errors_mapping.nil? || status_code < 400 || status_code
|
|
155
|
+
unless !error_factory.nil? || errors_mapping.nil? || status_code < 400 || status_code >= 600
|
|
149
156
|
error_factory = errors_mapping['XXX']
|
|
150
157
|
end
|
|
151
158
|
if error_factory.nil?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: microsoft_kiota_faraday
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Microsoft Corporation
|
|
@@ -35,14 +35,14 @@ dependencies:
|
|
|
35
35
|
requirements:
|
|
36
36
|
- - '='
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 0.
|
|
38
|
+
version: 0.25.0
|
|
39
39
|
type: :runtime
|
|
40
40
|
prerelease: false
|
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
|
43
43
|
- - '='
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.
|
|
45
|
+
version: 0.25.0
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: rake
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|