client-api-builder 0.4.0 → 0.4.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: c22eb6c8362909af90380e2513875c7a82c4bd67028e5a601694c1d604fc599d
4
- data.tar.gz: e6ad4f872b67a07563b88f3880bbd1f3375ed2d628a4c15cdedb0734fc9723a3
3
+ metadata.gz: 18d5c21ea26d8fe90872cc0beb09ba60dde91a1236633f9fd7786278128002cf
4
+ data.tar.gz: a36757d14041a9be6478d3425e7fb8392deeec56131dd002b98e921e17961440
5
5
  SHA512:
6
- metadata.gz: 5bbe4fe12d3ea5ca240b445630360346a0a1628c340c9ce602efbacfb185ad23c7215233dcb84cb245ff5d3961b0695e8d177a15c39f87e9f6f6b4c0d030e60c
7
- data.tar.gz: 44c82d195b80ad34205af3fa256523fa0a3a1e7249bd857ac7cc0cece431d9d75906f26a5714914075e0b9291d84ad5649704add740c099d960ad2e60ad3e2ee
6
+ metadata.gz: 2458e8f80908c9b1fcb3070626bf40d6fc1e639aa3dc994514dc6c6dbacbfffbd960a1be57f45cc3d8c79f46e5b4da42184918cf764635a46ef1ae89b815af84
7
+ data.tar.gz: 62fcc2ea271b0ec346283215ce454baa1804c910afc2e6744dfa90c19d5ba812093ef83f9e8ff56c1c3f41d780e00d84f5743a626dc44c8a2ca94b3736e3df1c
@@ -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.0'
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.0
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-08-26 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inheritance-helper