client-api-builder 0.4.0 → 0.4.1
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 +4 -4
- data/client-api-builder.gemspec +1 -1
- data/lib/client_api_builder/router.rb +1 -3
- 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: 18d5c21ea26d8fe90872cc0beb09ba60dde91a1236633f9fd7786278128002cf
|
|
4
|
+
data.tar.gz: a36757d14041a9be6478d3425e7fb8392deeec56131dd002b98e921e17961440
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2458e8f80908c9b1fcb3070626bf40d6fc1e639aa3dc994514dc6c6dbacbfffbd960a1be57f45cc3d8c79f46e5b4da42184918cf764635a46ef1ae89b815af84
|
|
7
|
+
data.tar.gz: 62fcc2ea271b0ec346283215ce454baa1804c910afc2e6744dfa90c19d5ba812093ef83f9e8ff56c1c3f41d780e00d84f5743a626dc44c8a2ca94b3736e3df1c
|
data/client-api-builder.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'client-api-builder'
|
|
5
|
-
s.version = '0.4.
|
|
5
|
+
s.version = '0.4.1'
|
|
6
6
|
s.licenses = ['MIT']
|
|
7
7
|
s.summary = 'Utility for creating API clients through configuration'
|
|
8
8
|
s.description = 'Create API clients through configuration with complete transparency'
|
|
@@ -380,8 +380,6 @@ module ClientApiBuilder
|
|
|
380
380
|
end
|
|
381
381
|
|
|
382
382
|
def build_query(query, options)
|
|
383
|
-
return nil if query.nil? && self.class.default_query_params.empty?
|
|
384
|
-
|
|
385
383
|
query_params = {}
|
|
386
384
|
|
|
387
385
|
add_query_param_proc = proc do |name, value|
|
|
@@ -399,7 +397,7 @@ module ClientApiBuilder
|
|
|
399
397
|
query && query.each(&add_query_param_proc)
|
|
400
398
|
options[:query] && options[:query].each(&add_query_param_proc)
|
|
401
399
|
|
|
402
|
-
self.class.build_query(self, query_params)
|
|
400
|
+
query_params.empty? ? nil : self.class.build_query(self, query_params)
|
|
403
401
|
end
|
|
404
402
|
|
|
405
403
|
def build_body(body, options)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: client-api-builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Doug Youch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: inheritance-helper
|