pipe_drive_ruby_wrapper 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pipe_drive/send_request.rb +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2da6b7652b267abc3ac5d5b36d64eb90b7c98bb9aee6371808c5f38240114be1
|
4
|
+
data.tar.gz: 1bd01062516cc6617b8101dd5a23468b53a49ad6ba8eb5709c1424f6185a3d53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 581e6214b2fa056956ac4cdda4590e7428d07470c695c1c0ba8ae00fe3e62f98c87497c1ce15a9da42ed011b5d72bfdc50a5f5dcfe517fa4e469a87e02184949
|
7
|
+
data.tar.gz: fc0970e889922f4489b4097bc7b3923e80b796705e64ae8476dd39150d5191561d579158fbf45fd191db558a4b9cba983de9ac02304aa615eecca649b577491d
|
@@ -85,19 +85,19 @@ module PipeDrive
|
|
85
85
|
end
|
86
86
|
|
87
87
|
def deep_symbolize_keys(data)
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
if data.is_a?(Hash)
|
89
|
+
new_data = {}
|
90
|
+
data.each_pair do |key, value|
|
91
91
|
new_data[key.to_sym] = deep_symbolize_keys(value)
|
92
|
-
elsif value.is_a?(Array)
|
93
|
-
new_data[key.to_sym] = value.map do |v|
|
94
|
-
deep_symbolize_keys(v)
|
95
|
-
end
|
96
|
-
else
|
97
|
-
new_data[key.to_sym] = value
|
98
92
|
end
|
93
|
+
new_data
|
94
|
+
elsif data.is_a?(Array)
|
95
|
+
data.map do |v|
|
96
|
+
deep_symbolize_keys(v)
|
97
|
+
end
|
98
|
+
else
|
99
|
+
data
|
99
100
|
end
|
100
|
-
new_data
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|