nice_http 1.9.6 → 1.9.7

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: ce4cd39e55a49ccb27dd1d8fb39e6eef8ce0b0b22e5f9c40c8e176b6ab72ab22
4
- data.tar.gz: 6ff7b6521a902ebb23013d87a9c89267fb487fea816e6776da6365ea3408c50a
3
+ metadata.gz: 41cdb6573d61a197be54a860cf866552f7601ec2b51767d094cf9187d6cf2946
4
+ data.tar.gz: 90d6bbecf158d8c00ca4f73917eb4e4a35a1a00fedf80f31ccbd42fdcd030678
5
5
  SHA512:
6
- metadata.gz: a7ca0da07cd6c0ddf6806a41c6348829dd7e3956f2bf2240f467f318138824e91e80feb3f686d7ea330295a6b3fea160157606ade7e02b6d8530369e845fbe0a
7
- data.tar.gz: 2d80c98e41f9f7369064d197a1df8fbc7f8fbde942cd053cdc2b1c4b523d9588c6064d3562de75844a6758cbe30fca3fe22e5dd9151275257f8264a5ca9fd415
6
+ metadata.gz: e6377a24a67e092ca8f7dec56424097df3b17f4b9e75dc4f0ff33085e77fd93d5e312be0753d696aba08cf796e371eaa2f15d59554c19b628906b0f9cc4223ed
7
+ data.tar.gz: 3d7640eb70c81dc3a795816720b98a451c709ebd4ac28a6665c131c578e15e113d6e7e09762890795b2edf502f1a54c28b7b45fdf77f5c008d361f30627c0c1c
data/README.md CHANGED
@@ -3,6 +3,10 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/nice_http.svg)](https://rubygems.org/gems/nice_http)
4
4
  [![Build Status](https://travis-ci.com/MarioRuiz/nice_http.svg?branch=master)](https://github.com/MarioRuiz/nice_http)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/MarioRuiz/nice_http/badge.svg?branch=master)](https://coveralls.io/github/MarioRuiz/nice_http?branch=master)
6
+ ![Gem](https://img.shields.io/gem/dt/nice_http)
7
+ ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/MarioRuiz/nice_http)
8
+ ![GitHub last commit](https://img.shields.io/github/last-commit/MarioRuiz/nice_http)
9
+ ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/MarioRuiz/nice_http)
6
10
 
7
11
  NiceHttp the simplest library for accessing and testing HTTP and REST resources.
8
12
 
@@ -19,6 +19,9 @@ module NiceHttpUtils
19
19
  end
20
20
  elsif v.is_a?(Hash)
21
21
  data[k] = set_lambdas(v, data_orig[k])
22
+ unless data_orig.is_a?(Hash) and data_orig.key?(k)
23
+ data.delete(k) if data[k].empty?
24
+ end
22
25
  elsif v.is_a?(Array)
23
26
  v.each.with_index do |v2, i|
24
27
  if data_orig.key?(k) and data_orig[k].is_a?(Array) and data_orig[k].size > i
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nice_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6
4
+ version: 1.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nice_hash