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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pipe_drive/send_request.rb +10 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64249eecbf21b3bf2973f99ef047721e7dc4a9544ae626b9d0bb96f59aaa1aac
4
- data.tar.gz: 401a712b0dc1ec016df7848794391fb6c68928858b1bc7add7f5cebaa960fbdf
3
+ metadata.gz: 2da6b7652b267abc3ac5d5b36d64eb90b7c98bb9aee6371808c5f38240114be1
4
+ data.tar.gz: 1bd01062516cc6617b8101dd5a23468b53a49ad6ba8eb5709c1424f6185a3d53
5
5
  SHA512:
6
- metadata.gz: 8c6d0c1823fc39276e1246ffe36f9f43ce45f74cf3b3da46b97ea6cb5d7ff52fc3a8c3c1c6b74fde5a0cd09cfc61970b4332bd8ed0ef736f46d4860398eb88ca
7
- data.tar.gz: 1a647dcd66a7ed751a4babc8b036f98cb4a6a169153df7126ce44d2490de3c4f6a421bb82288cd668485c8ed2b9c5135cad51c447551e0aae0832146c7d19ec5
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
- new_data = {}
89
- data.each_pair do |key, value|
90
- if value.is_a?(Hash)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipe_drive_ruby_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee